Closed
Description
The following only ICE's on nightly:
fn main() {
[(); & { loop { continue } } ]
}
playground: https://play.rust-lang.org/?gist=5301f1ed6aea057aa9f5c921e3ea2f1e&version=nightly&mode=release&edition=2015
Backtrace:
warning: unreachable expression
--> src\lib.rs:169:14
|
169 | [(); & { loop { continue } } ]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unreachable_code)] on by default
error: internal compiler error: cat_expr Errd
--> src\lib.rs:169:9
|
169 | [(); & { loop { continue } } ]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `test_bugs`.
To learn more, run the command again with --verbose.
Backtrace variable is set, this was all I got. (I also got no backtrace for #52442 when compiling in nightly, perhaps they are related)
Metadata
Metadata
Assignees
Labels
Area: Constant evaluation, covers all const contexts (static, const fn, ...)Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️High priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.