about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-03-09 16:55:20 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-03-14 20:52:42 +0100
commitbcb161def7dbef64aebe698c42373d13b44a1c53 (patch)
treefc2f5ec048a3de96ac50aead6fcccab1247369b5 /compiler/rustc_const_eval/src/transform
parent2e7034ebf7f57066c260b680c5e9dfcf04ca4cd5 (diff)
downloadrust-bcb161def7dbef64aebe698c42373d13b44a1c53.tar.gz
rust-bcb161def7dbef64aebe698c42373d13b44a1c53.zip
Wrap the whole LocalInfo in ClearCrossCrate.
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs
index db55dbc2bfd..f775b479667 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs
@@ -643,7 +643,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
                 if base_ty.is_unsafe_ptr() {
                     if proj_base.is_empty() {
                         let decl = &self.body.local_decls[place_local];
-                        if let Some(box LocalInfo::StaticRef { def_id, .. }) = decl.local_info {
+                        if let LocalInfo::StaticRef { def_id, .. } = *decl.local_info() {
                             let span = decl.source_info.span;
                             self.check_static(def_id, span);
                             return;