Skip to content

Commit 41ad726

Browse files
authored
Rollup merge of #102113 - RalfJung:opty-assert-mem, r=oli-obk
OpTy: fix a method taking self rather than &self r? `@oli-obk`
2 parents 89e4e1f + 0f4d7b6 commit 41ad726

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl<'tcx, Prov: Provenance> PlaceTy<'tcx, Prov> {
280280

281281
#[inline(always)]
282282
#[cfg_attr(debug_assertions, track_caller)] // only in debug builds due to perf (see #98980)
283-
pub fn assert_mem_place(self) -> MPlaceTy<'tcx, Prov> {
283+
pub fn assert_mem_place(&self) -> MPlaceTy<'tcx, Prov> {
284284
self.try_as_mplace().unwrap()
285285
}
286286
}

0 commit comments

Comments
 (0)