OpTy: fix a method taking self rather than &self

This commit is contained in:
Ralf Jung 2022-09-21 22:20:40 +02:00
parent db4b4d3bec
commit 0f4d7b6de8

View File

@ -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()
}
}