-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsP-mediumMedium priorityMedium priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
Not sure if this is really a bug, but I tried searching and couldn't find any hits on the warning message. Feel free to close the issue if this is intended/expected behaviour.
Input:
fn main() {
[(); loop {}]
}
Output:
$ rustc -
error[E0019]: constant contains unimplemented expression type
--> <anon>:2:10
|
2 | [(); loop {}]
| ^^^^^^^
warning: Constant evaluating a complex constant, this might take some time
--> <anon>:2:10
|
2 | [(); loop {}]
| ^^^^^^^
At this point the rustc process hangs seemingly forever while consuming 100% CPU.
I'm on commit c166b03.
ebkalderon and FliegendeWurst
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsP-mediumMedium priorityMedium priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.