Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 5 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /