Skip to content

Compilation never finishes #74916

@XopheD

Description

@XopheD

Project files (MCVE): bugreport.zip

Meta

rustc --version --verbose:

rustc 1.45.0 (5c1f21c3b 2020-07-13)
binary: rustc
commit-hash: 5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2
commit-date: 2020-07-13
host: x86_64-apple-darwin
release: 1.45.0
LLVM version: 10.0

Error description

In fact there is no visible error but the compilation never finishes in release mode
(also with the nightly channel).

cargo build runs fine.

cargo build --release seems to fall in an infinite loop.

Note: if I associated the release mode with -O2, it works (that’s my current workaround).

Additional notes

When I try to make this example as small as possible, I notice that (refer to the joined files):

  • if I move the contents of logic/for_each.rs directly inside logic.rs, it works
  • if I suppress some alternatives in the enum ExprContents, it works too

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LTOArea: Link-time optimization (LTO)C-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions