-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Compilation never finishes #74916
Copy link
Copy link
Open
Labels
A-LTOArea: Link-time optimization (LTO)Area: Link-time optimization (LTO)C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call 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.Issue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-LTOArea: Link-time optimization (LTO)Area: Link-time optimization (LTO)C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call 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.Issue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Project files (MCVE): bugreport.zip
Meta
rustc --version --verbose:Error description
In fact there is no visible error but the compilation never finishes in release mode
(also with the nightly channel).
cargo buildruns fine.cargo build --releaseseems 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):
logic/for_each.rsdirectly insidelogic.rs, it worksExprContents, it works too