summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-10 15:41:08 +0100
committerRalf Jung <post@ralfj.de>2024-02-10 16:06:02 +0100
commitd56f3b6a5ddbdf6af0c2fb6b7a8327d698e2e228 (patch)
tree99310cc148a35e1070a01f4741a459d6b9e85946 /compiler/rustc_const_eval/src/interpret
parent0809f78c190eb9fdf36353d423147827610f33c9 (diff)
downloadrust-d56f3b6a5ddbdf6af0c2fb6b7a8327d698e2e228.tar.gz
rust-d56f3b6a5ddbdf6af0c2fb6b7a8327d698e2e228.zip
interpret: rename ReadExternStatic → ExternStatic
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs
index 38ad8cbf3a6..4acf4ed893c 100644
--- a/compiler/rustc_const_eval/src/interpret/memory.rs
+++ b/compiler/rustc_const_eval/src/interpret/memory.rs
@@ -557,7 +557,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
                 if self.tcx.is_foreign_item(def_id) {
                     // This is unreachable in Miri, but can happen in CTFE where we actually *do* support
                     // referencing arbitrary (declared) extern statics.
-                    throw_unsup!(ReadExternStatic(def_id));
+                    throw_unsup!(ExternStatic(def_id));
                 }
 
                 // We don't give a span -- statics don't need that, they cannot be generic or associated.