summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-09-21 22:20:40 +0200
committerRalf Jung <post@ralfj.de>2022-09-21 22:20:40 +0200
commit0f4d7b6de8f9a9d13d9a5d479cbfa74064fd689d (patch)
tree7b6acf92405f91d6d192e3058ad0fb9cbc1e7603 /compiler/rustc_const_eval/src/interpret
parentdb4b4d3becf257e7b1c051540fc7e317958d8d2d (diff)
downloadrust-0f4d7b6de8f9a9d13d9a5d479cbfa74064fd689d.tar.gz
rust-0f4d7b6de8f9a9d13d9a5d479cbfa74064fd689d.zip
OpTy: fix a method taking self rather than &self
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/place.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/place.rs b/compiler/rustc_const_eval/src/interpret/place.rs
index b328892906d..bc1aa43b73a 100644
--- a/compiler/rustc_const_eval/src/interpret/place.rs
+++ b/compiler/rustc_const_eval/src/interpret/place.rs
@@ -280,7 +280,7 @@ impl<'tcx, Prov: Provenance> PlaceTy<'tcx, Prov> {
 
     #[inline(always)]
     #[cfg_attr(debug_assertions, track_caller)] // only in debug builds due to perf (see #98980)
-    pub fn assert_mem_place(self) -> MPlaceTy<'tcx, Prov> {
+    pub fn assert_mem_place(&self) -> MPlaceTy<'tcx, Prov> {
         self.try_as_mplace().unwrap()
     }
 }