Skip to content

Commit 820fce6

Browse files
committed
Some style nits
1 parent 1b8ab72 commit 820fce6

File tree

1 file changed

+3
-4
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+3
-4
lines changed

compiler/rustc_mir_transform/src/shim.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,9 @@ fn local_decls_for_sig<'tcx>(
298298
fn dropee_emit_retag<'tcx>(
299299
tcx: TyCtxt<'tcx>,
300300
body: &mut Body<'tcx>,
301-
dropee_ptr: Place<'tcx>,
301+
mut dropee_ptr: Place<'tcx>,
302302
span: Span,
303303
) -> Place<'tcx> {
304-
let mut dropee_ptr = dropee_ptr;
305304
if tcx.sess.opts.unstable_opts.mir_emit_retag {
306305
let source_info = SourceInfo::outermost(span);
307306
// We want to treat the function argument as if it was passed by `&mut`. As such, we
@@ -365,8 +364,8 @@ fn build_drop_shim<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId, ty: Option<Ty<'tcx>>)
365364
new_body(source, blocks, local_decls_for_sig(&sig, span), sig.inputs().len(), span);
366365

367366
// The first argument (index 0), but add 1 for the return value.
368-
let mut dropee_ptr = Place::from(Local::new(1 + 0));
369-
dropee_ptr = dropee_emit_retag(tcx, &mut body, dropee_ptr, span);
367+
let dropee_ptr = Place::from(Local::new(1 + 0));
368+
let dropee_ptr = dropee_emit_retag(tcx, &mut body, dropee_ptr, span);
370369

371370
if ty.is_some() {
372371
let patch = {

0 commit comments

Comments
 (0)