about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-02 15:34:59 +0200
committerRalf Jung <post@ralfj.de>2024-09-10 10:26:16 +0200
commitf76f128dc9dea86f52a40d465430a7feddca271a (patch)
tree8be34eea1342aa01c46609f55d78cb4fe64d2352 /compiler/rustc_lint/src
parent304b7f801bab31233680879ca4fb6eb294706a59 (diff)
downloadrust-f76f128dc9dea86f52a40d465430a7feddca271a.tar.gz
rust-f76f128dc9dea86f52a40d465430a7feddca271a.zip
const-eval interning: accpt interior mutable pointers in final value (but keep rejecting mutable references)
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs
index a9627e9b789..4139ac4e3e9 100644
--- a/compiler/rustc_lint/src/lib.rs
+++ b/compiler/rustc_lint/src/lib.rs
@@ -576,6 +576,10 @@ fn register_builtins(store: &mut LintStore) {
          <https://github.com/rust-lang/rust/issues/107457> for more information",
     );
     store.register_removed("writes_through_immutable_pointer", "converted into hard error");
+    store.register_removed(
+        "const_eval_mutable_ptr_in_final_value",
+        "partially allowed now, otherwise turned into a hard error",
+    );
 }
 
 fn register_internals(store: &mut LintStore) {