Skip to content

Commit dfc1bd7

Browse files
Eagerly convert some ctors to use their specialized ctors
1 parent 06ef32c commit dfc1bd7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/abi/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -663,11 +663,7 @@ pub(crate) fn codegen_drop<'tcx>(
663663

664664
let arg_value = drop_place.place_ref(
665665
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-
)),
666+
fx.layout_of(Ty::new_mut_ref(fx.tcx, fx.tcx.lifetimes.re_erased, ty)),
671667
);
672668
let arg_value = adjust_arg_for_abi(fx, arg_value, &fn_abi.args[0], true);
673669

0 commit comments

Comments
 (0)