about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/errors.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-29 08:15:22 +0100
committerRalf Jung <post@ralfj.de>2024-02-29 09:34:15 +0100
commit3cc8c8d44bb197eacd6cfc43ca1cca38aef404aa (patch)
tree713f9bc3187c7b1e928789b4b00beb3a45aa9219 /compiler/rustc_const_eval/src/errors.rs
parentef324565d071c6d7e2477a195648549e33d6a465 (diff)
downloadrust-3cc8c8d44bb197eacd6cfc43ca1cca38aef404aa.tar.gz
rust-3cc8c8d44bb197eacd6cfc43ca1cca38aef404aa.zip
allow statics pointing to mutable statics
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
-rw-r--r--compiler/rustc_const_eval/src/errors.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/errors.rs b/compiler/rustc_const_eval/src/errors.rs
index 267f3acaaa5..6ce96f4d68e 100644
--- a/compiler/rustc_const_eval/src/errors.rs
+++ b/compiler/rustc_const_eval/src/errors.rs
@@ -614,7 +614,6 @@ impl<'tcx> ReportErrorExt for ValidationErrorInfo<'tcx> {
             PartialPointer => const_eval_validation_partial_pointer,
             ConstRefToMutable => const_eval_validation_const_ref_to_mutable,
             ConstRefToExtern => const_eval_validation_const_ref_to_extern,
-            MutableRefInConstOrStatic => const_eval_validation_mutable_ref_in_const_or_static,
             MutableRefToImmutable => const_eval_validation_mutable_ref_to_immutable,
             NullFnPtr => const_eval_validation_null_fn_ptr,
             NeverVal => const_eval_validation_never_val,
@@ -768,7 +767,6 @@ impl<'tcx> ReportErrorExt for ValidationErrorInfo<'tcx> {
             }
             NullPtr { .. }
             | PtrToStatic { .. }
-            | MutableRefInConstOrStatic
             | ConstRefToMutable
             | ConstRefToExtern
             | MutableRefToImmutable