1
Fork 0

Migrate MutDeref, TransientMutBorrow diagnostics

This commit is contained in:
Michael Goulet 2022-06-28 23:22:15 -07:00
parent 584e5d4c4f
commit f97f2a47ff
4 changed files with 69 additions and 19 deletions

View file

@ -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
}