|
1 |
| -const-eval-unstable-in-stable = |
| 1 | +const_eval_unstable_in_stable = |
2 | 2 | const-stable function cannot use `#[feature({$gate})]`
|
3 |
| - .unstable-sugg = if it is not part of the public API, make this function unstably const |
4 |
| - .bypass-sugg = otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks |
| 3 | + .unstable_sugg = if it is not part of the public API, make this function unstably const |
| 4 | + .bypass_sugg = otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks |
5 | 5 |
|
6 |
| -const-eval-thread-local-access = |
| 6 | +const_eval_thread_local_access = |
7 | 7 | thread-local statics cannot be accessed at compile-time
|
8 | 8 |
|
9 |
| -const-eval-static-access = |
| 9 | +const_eval_static_access = |
10 | 10 | {$kind}s cannot refer to statics
|
11 | 11 | .help = consider extracting the value of the `static` to a `const`, and referring to that
|
12 |
| - .teach-note = `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable. |
13 |
| - .teach-help = To fix this, the value can be extracted to a `const` and then used. |
| 12 | + .teach_note = `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable. |
| 13 | + .teach_help = To fix this, the value can be extracted to a `const` and then used. |
14 | 14 |
|
15 |
| -const-eval-raw-ptr-to-int = |
| 15 | +const_eval_raw_ptr_to_int = |
16 | 16 | pointers cannot be cast to integers during const eval
|
17 | 17 | .note = at compile-time, pointers do not have an integer value
|
18 | 18 | .note2 = avoiding this restriction via `transmute`, `union`, or raw pointers leads to compile-time undefined behavior
|
19 | 19 |
|
20 |
| -const-eval-raw-ptr-comparison = |
| 20 | +const_eval_raw_ptr_comparison = |
21 | 21 | pointers cannot be reliably compared during const eval
|
22 | 22 | .note = see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
|
23 | 23 |
|
24 |
| -const-eval-panic-non-str = argument to `panic!()` in a const context must have type `&str` |
| 24 | +const_eval_panic_non_str = argument to `panic!()` in a const context must have type `&str` |
25 | 25 |
|
26 |
| -const-eval-mut-deref = |
| 26 | +const_eval_mut_deref = |
27 | 27 | mutation through a reference is not allowed in {$kind}s
|
28 | 28 |
|
29 |
| -const-eval-transient-mut-borrow = mutable references are not allowed in {$kind}s |
| 29 | +const_eval_transient_mut_borrow = mutable references are not allowed in {$kind}s |
30 | 30 |
|
31 |
| -const-eval-transient-mut-borrow-raw = raw mutable references are not allowed in {$kind}s |
| 31 | +const_eval_transient_mut_borrow_raw = raw mutable references are not allowed in {$kind}s |
0 commit comments