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`
4
4
LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
5
5
| ^^^^^^^
6
6
7
- error[E0744 ]: `loop` is not allowed in a `const`
7
+ error[E0658 ]: `loop` is not allowed in a `const`
8
8
--> $DIR/issue-52437.rs:2:13
9
9
|
10
10
LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^
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
12
15
13
16
error[E0282]: type annotations needed
14
17
--> $DIR/issue-52437.rs:2:30
@@ -18,5 +21,5 @@ LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
18
21
19
22
error: aborting due to 3 previous errors
20
23
21
- Some errors have detailed explanations: E0282, E0744 .
24
+ Some errors have detailed explanations: E0282, E0658 .
22
25
For 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`
2
2
--> $DIR/infinite_loop.rs:7:9
3
3
|
4
4
LL | / while n != 0 {
8
8
LL | |
9
9
LL | | }
10
10
| |_________^
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
11
15
12
16
error[E0658]: `if` is not allowed in a `const`
13
17
--> $DIR/infinite_loop.rs:9:17
@@ -39,5 +43,5 @@ LL | n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
39
43
40
44
error: aborting due to 3 previous errors
41
45
42
- Some errors have detailed explanations: E0080, E0658, E0744 .
46
+ Some errors have detailed explanations: E0080, E0658.
43
47
For 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`
2
2
--> $DIR/issue-52442.rs:2:14
3
3
|
4
4
LL | [(); { &loop { break } as *const _ as usize } ];
5
5
| ^^^^^^^^^^^^^^
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
6
9
7
10
error[E0658]: casting pointers to integers in constants is unstable
8
11
--> $DIR/issue-52442.rs:2:13
@@ -21,5 +24,5 @@ LL | [(); { &loop { break } as *const _ as usize } ];
21
24
22
25
error: aborting due to 3 previous errors
23
26
24
- Some errors have detailed explanations: E0080, E0658, E0744 .
27
+ Some errors have detailed explanations: E0080, E0658.
25
28
For 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`
2
2
--> $DIR/issue-52475.rs:6:9
3
3
|
4
4
LL | / while n < 5 {
@@ -7,6 +7,10 @@ LL | | n = (n + 1) % 5;
7
7
LL | | x = &0; // Materialize a new AllocId
8
8
LL | | }
9
9
| |_________^
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
10
14
11
15
warning: Constant evaluating a complex constant, this might take some time
12
16
--> $DIR/issue-52475.rs:2:18
@@ -29,5 +33,5 @@ LL | n = (n + 1) % 5;
29
33
30
34
error: aborting due to 2 previous errors
31
35
32
- Some errors have detailed explanations: E0080, E0744 .
36
+ Some errors have detailed explanations: E0080, E0658 .
33
37
For 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`
2
2
--> $DIR/issue-62272.rs:7:17
3
3
|
4
4
LL | const FOO: () = loop { break; };
5
5
| ^^^^^^^^^^^^^^^
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
6
9
7
- error[E0744 ]: `loop` is not allowed in a `const`
10
+ error[E0658 ]: `loop` is not allowed in a `const`
8
11
--> $DIR/issue-62272.rs:10:20
9
12
|
10
13
LL | [FOO; { let x; loop { x = 5; break; } x }];
11
14
| ^^^^^^^^^^^^^^^^^^^^^^
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
12
18
13
19
error: aborting due to 2 previous errors
14
20
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`
2
2
--> $DIR/const-labeled-break.rs:10:19
3
3
|
4
4
LL | const CRASH: () = 'a: while break 'a {};
5
5
| ^^^^^^^^^^^^^^^^^^^^^
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
6
10
7
11
error: aborting due to previous error
8
12
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`
2
2
--> $DIR/loop_ice.rs:2:5
3
3
|
4
4
LL | loop {}
5
5
| ^^^^^^^
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
6
9
7
10
error: aborting due to previous error
8
11
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`
2
2
--> $DIR/issue-51714.rs:11:17
3
3
|
4
4
LL | [(); return while let Some(n) = Some(0) {}];
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
6
10
7
11
error[E0572]: return statement outside of function body
8
12
--> $DIR/issue-51714.rs:2:14
@@ -30,5 +34,5 @@ LL | [(); return while let Some(n) = Some(0) {}];
30
34
31
35
error: aborting due to 5 previous errors
32
36
33
- Some errors have detailed explanations: E0572, E0744 .
37
+ Some errors have detailed explanations: E0572, E0658 .
34
38
For more information about an error, try `rustc --explain E0572`.
You can’t perform that action at this time.
0 commit comments