diff options
| author | Michael Goulet <michael@errs.io> | 2022-06-28 23:22:15 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-07-08 03:48:10 +0000 |
| commit | f97f2a47ffd1e232f5b6dec17118fcbadef90692 (patch) | |
| tree | 8dba7b5634c9559c4cf7cdf2cbd99c364e919c6d /compiler/rustc_error_messages | |
| parent | 584e5d4c4ff1e24c7cb32e2a7526b4f629728daf (diff) | |
| download | rust-f97f2a47ffd1e232f5b6dec17118fcbadef90692.tar.gz rust-f97f2a47ffd1e232f5b6dec17118fcbadef90692.zip | |
Migrate MutDeref, TransientMutBorrow diagnostics
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/const_eval.ftl | 19 |
1 files changed, 19 insertions, 0 deletions
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 30de7d5a24f..f1a8c8c47cc 100644 --- a/compiler/rustc_error_messages/locales/en-US/const_eval.ftl +++ b/compiler/rustc_error_messages/locales/en-US/const_eval.ftl @@ -26,3 +26,22 @@ const-eval-raw-ptr-comparison = .note = see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information 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 + } |
