Eagerly convert some ctors to use their specialized ctors
This commit is contained in:
parent
06ef32c862
commit
dfc1bd7516
1 changed files with 1 additions and 5 deletions
|
|
@ -663,11 +663,7 @@ pub(crate) fn codegen_drop<'tcx>(
|
|||
|
||||
let arg_value = drop_place.place_ref(
|
||||
fx,
|
||||
fx.layout_of(Ty::new_ref(
|
||||
fx.tcx,
|
||||
fx.tcx.lifetimes.re_erased,
|
||||
TypeAndMut { ty, mutbl: crate::rustc_hir::Mutability::Mut },
|
||||
)),
|
||||
fx.layout_of(Ty::new_mut_ref(fx.tcx, fx.tcx.lifetimes.re_erased, ty)),
|
||||
);
|
||||
let arg_value = adjust_arg_for_abi(fx, arg_value, &fn_abi.args[0], true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue