diff options
| author | Michael Goulet <michael@errs.io> | 2024-03-21 16:50:21 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-03-22 11:12:01 -0400 |
| commit | dfc1bd751674a3715221a8bb6791043d1a2e0664 (patch) | |
| tree | a7768e8b05bc7da01d0f27126da7e7d2f7a27132 | |
| parent | 06ef32c86251ba3a54ced4d8bf074f95ee30bc62 (diff) | |
| download | rust-dfc1bd751674a3715221a8bb6791043d1a2e0664.tar.gz rust-dfc1bd751674a3715221a8bb6791043d1a2e0664.zip | |
Eagerly convert some ctors to use their specialized ctors
| -rw-r--r-- | src/abi/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs index 6e846d721f2..cdfbbe7b674 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -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); |
