Skip to content

Link error with incremental and impl trait #45800

@MaikKlein

Description

@MaikKlein

I was able to reproduce the link error reliably on my machine.

https://github.com/MaikKlein/spire-lang/tree/e0ca3221776f0ce35c1b49f7fdef413512efc656

CARGO_INCREMENTAL=1 cargo build --release

Then go and change this line from

many(ast_object.or(ast_data).skip(whitespace()))

to

many(ast_object.or(ast_data))

And do another CARGO_INCREMENTAL=1 cargo build --release

error gist

Os: Ubuntu 16.04 x64

rustc 1.23.0-nightly (3b82e4c74 2017-11-05)
binary: rustc
commit-hash: 3b82e4c74d43fc1273244532c3a90bf9912061cf
commit-date: 2017-11-05
host: x86_64-unknown-linux-gnu
release: 1.23.0-nightly
LLVM version: 4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.A-incr-compArea: Incremental compilationA-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions