File tree Expand file tree Collapse file tree 8 files changed +48
-17
lines changed Expand file tree Collapse file tree 8 files changed +48
-17
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ error: invalid label name `'static`
44LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
55 | ^^^^^^^
66
7- error[E0744 ]: `loop` is not allowed in a `const`
7+ error[E0658 ]: `loop` is not allowed in a `const`
88 --> $DIR/issue-52437.rs:2:13
99 |
1010LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^
12+ |
13+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
14+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
1215
1316error[E0282]: type annotations needed
1417 --> $DIR/issue-52437.rs:2:30
@@ -18,5 +21,5 @@ LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
1821
1922error: aborting due to 3 previous errors
2023
21- Some errors have detailed explanations: E0282, E0744 .
24+ Some errors have detailed explanations: E0282, E0658 .
2225For more information about an error, try `rustc --explain E0282`.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `while` is not allowed in a `const`
1+ error[E0658 ]: `while` is not allowed in a `const`
22 --> $DIR/infinite_loop.rs:7:9
33 |
44LL | / while n != 0 {
88LL | |
99LL | | }
1010 | |_________^
11+ |
12+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
13+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
14+ = help: add `#![feature(const_if_match)]` to the crate attributes to enable
1115
1216error[E0658]: `if` is not allowed in a `const`
1317 --> $DIR/infinite_loop.rs:9:17
@@ -39,5 +43,5 @@ LL | n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
3943
4044error: aborting due to 3 previous errors
4145
42- Some errors have detailed explanations: E0080, E0658, E0744 .
46+ Some errors have detailed explanations: E0080, E0658.
4347For more information about an error, try `rustc --explain E0080`.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `loop` is not allowed in a `const`
1+ error[E0658 ]: `loop` is not allowed in a `const`
22 --> $DIR/issue-52442.rs:2:14
33 |
44LL | [(); { &loop { break } as *const _ as usize } ];
55 | ^^^^^^^^^^^^^^
6+ |
7+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
69
710error[E0658]: casting pointers to integers in constants is unstable
811 --> $DIR/issue-52442.rs:2:13
@@ -21,5 +24,5 @@ LL | [(); { &loop { break } as *const _ as usize } ];
2124
2225error: aborting due to 3 previous errors
2326
24- Some errors have detailed explanations: E0080, E0658, E0744 .
27+ Some errors have detailed explanations: E0080, E0658.
2528For more information about an error, try `rustc --explain E0080`.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `while` is not allowed in a `const`
1+ error[E0658 ]: `while` is not allowed in a `const`
22 --> $DIR/issue-52475.rs:6:9
33 |
44LL | / while n < 5 {
@@ -7,6 +7,10 @@ LL | | n = (n + 1) % 5;
77LL | | x = &0; // Materialize a new AllocId
88LL | | }
99 | |_________^
10+ |
11+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
12+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
13+ = help: add `#![feature(const_if_match)]` to the crate attributes to enable
1014
1115warning: Constant evaluating a complex constant, this might take some time
1216 --> $DIR/issue-52475.rs:2:18
@@ -29,5 +33,5 @@ LL | n = (n + 1) % 5;
2933
3034error: aborting due to 2 previous errors
3135
32- Some errors have detailed explanations: E0080, E0744 .
36+ Some errors have detailed explanations: E0080, E0658 .
3337For more information about an error, try `rustc --explain E0080`.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `loop` is not allowed in a `const`
1+ error[E0658 ]: `loop` is not allowed in a `const`
22 --> $DIR/issue-62272.rs:7:17
33 |
44LL | const FOO: () = loop { break; };
55 | ^^^^^^^^^^^^^^^
6+ |
7+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
69
7- error[E0744 ]: `loop` is not allowed in a `const`
10+ error[E0658 ]: `loop` is not allowed in a `const`
811 --> $DIR/issue-62272.rs:10:20
912 |
1013LL | [FOO; { let x; loop { x = 5; break; } x }];
1114 | ^^^^^^^^^^^^^^^^^^^^^^
15+ |
16+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
17+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
1218
1319error: aborting due to 2 previous errors
1420
15- For more information about this error, try `rustc --explain E0744 `.
21+ For more information about this error, try `rustc --explain E0658 `.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `while` is not allowed in a `const`
1+ error[E0658 ]: `while` is not allowed in a `const`
22 --> $DIR/const-labeled-break.rs:10:19
33 |
44LL | const CRASH: () = 'a: while break 'a {};
55 | ^^^^^^^^^^^^^^^^^^^^^
6+ |
7+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
9+ = help: add `#![feature(const_if_match)]` to the crate attributes to enable
610
711error: aborting due to previous error
812
9- For more information about this error, try `rustc --explain E0744 `.
13+ For more information about this error, try `rustc --explain E0658 `.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `loop` is not allowed in a `const fn`
1+ error[E0658 ]: `loop` is not allowed in a `const fn`
22 --> $DIR/loop_ice.rs:2:5
33 |
44LL | loop {}
55 | ^^^^^^^
6+ |
7+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
69
710error: aborting due to previous error
811
9- For more information about this error, try `rustc --explain E0744 `.
12+ For more information about this error, try `rustc --explain E0658 `.
Original file line number Diff line number Diff line change 1- error[E0744 ]: `while` is not allowed in a `const`
1+ error[E0658 ]: `while` is not allowed in a `const`
22 --> $DIR/issue-51714.rs:11:17
33 |
44LL | [(); return while let Some(n) = Some(0) {}];
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+ |
7+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
9+ = help: add `#![feature(const_if_match)]` to the crate attributes to enable
610
711error[E0572]: return statement outside of function body
812 --> $DIR/issue-51714.rs:2:14
@@ -30,5 +34,5 @@ LL | [(); return while let Some(n) = Some(0) {}];
3034
3135error: aborting due to 5 previous errors
3236
33- Some errors have detailed explanations: E0572, E0744 .
37+ Some errors have detailed explanations: E0572, E0658 .
3438For more information about an error, try `rustc --explain E0572`.
You can’t perform that action at this time.
0 commit comments