about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/check_consts
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2024-11-19 16:13:55 +0100
committerlcnr <rust@lcnr.de>2024-11-19 18:06:20 +0100
commit948cec0fad6d87f7f5993517f913aa0454b78674 (patch)
tree538d6362eddb057a783b48717898743073e5d302 /compiler/rustc_const_eval/src/check_consts
parent89b688552994bd8404b8fdab2cf96f00632af0ff (diff)
downloadrust-948cec0fad6d87f7f5993517f913aa0454b78674.tar.gz
rust-948cec0fad6d87f7f5993517f913aa0454b78674.zip
move `fn is_item_raw` to `TypingEnv`
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/resolver.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/resolver.rs b/compiler/rustc_const_eval/src/check_consts/resolver.rs
index 03624a2ce50..0f9a460ca1b 100644
--- a/compiler/rustc_const_eval/src/check_consts/resolver.rs
+++ b/compiler/rustc_const_eval/src/check_consts/resolver.rs
@@ -120,10 +120,7 @@ where
     ///
     /// [rust-lang/unsafe-code-guidelines#134]: https://github.com/rust-lang/unsafe-code-guidelines/issues/134
     fn shared_borrow_allows_mutation(&self, place: mir::Place<'tcx>) -> bool {
-        !place
-            .ty(self.ccx.body, self.ccx.tcx)
-            .ty
-            .is_freeze(self.ccx.tcx, self.ccx.typing_env.param_env)
+        !place.ty(self.ccx.body, self.ccx.tcx).ty.is_freeze(self.ccx.tcx, self.ccx.typing_env)
     }
 }