X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_error_messages%2Flocales%2Fen-US%2Fconst_eval.ftl;h=3f2ff86100160b0f2eead39e5ee5dbb1c696cee0;hb=20583337800524516ab814e1cff080c0ca9f200b;hp=f1a8c8c47ccc3924fdc9047f04a233a2dffe2861;hpb=f97f2a47ffd1e232f5b6dec17118fcbadef90692;p=rust.git diff --git a/compiler/rustc_error_messages/locales/en-US/const_eval.ftl b/compiler/rustc_error_messages/locales/en-US/const_eval.ftl index f1a8c8c47cc..3f2ff861001 100644 --- a/compiler/rustc_error_messages/locales/en-US/const_eval.ftl +++ b/compiler/rustc_error_messages/locales/en-US/const_eval.ftl @@ -7,11 +7,7 @@ const-eval-thread-local-access = thread-local statics cannot be accessed at compile-time const-eval-static-access = - { $kind -> - [constant function] constant functions - [static] statics - *[constant] constants - } cannot refer to statics + {$kind}s cannot refer to statics .help = consider extracting the value of the `static` to a `const`, and referring to that .teach-note = `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable. .teach-help = To fix this, the value can be extracted to a `const` and then used. @@ -28,20 +24,8 @@ const-eval-raw-ptr-comparison = const-eval-panic-non-str = argument to `panic!()` in a const context must have type `&str` const-eval-mut-deref = - mutation through a reference is not allowed in { $kind -> - [constant function] constant functions - [static] statics - *[constant] constants - } - -const-eval-transient-mut-borrow = mutable references are not allowed in { $kind -> - [constant function] constant functions - [static] statics - *[constant] constants - } - -const-eval-transient-mut-borrow-raw = raw mutable references are not allowed in { $kind -> - [constant function] constant functions - [static] statics - *[constant] constants - } + mutation through a reference is not allowed in {$kind}s + +const-eval-transient-mut-borrow = mutable references are not allowed in {$kind}s + +const-eval-transient-mut-borrow-raw = raw mutable references are not allowed in {$kind}s