We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ef32c commit dfc1bd7Copy full SHA for dfc1bd7
src/abi/mod.rs
@@ -663,11 +663,7 @@ pub(crate) fn codegen_drop<'tcx>(
663
664
let arg_value = drop_place.place_ref(
665
fx,
666
- fx.layout_of(Ty::new_ref(
667
- fx.tcx,
668
- fx.tcx.lifetimes.re_erased,
669
- TypeAndMut { ty, mutbl: crate::rustc_hir::Mutability::Mut },
670
- )),
+ fx.layout_of(Ty::new_mut_ref(fx.tcx, fx.tcx.lifetimes.re_erased, ty)),
671
);
672
let arg_value = adjust_arg_for_abi(fx, arg_value, &fn_abi.args[0], true);
673
0 commit comments