Skip to content

Commit c0adb36

Browse files
committed
style
1 parent 3249381 commit c0adb36

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_mir_build/src/builder/matches

1 file changed

+3
-3
lines changed

compiler/rustc_mir_build/src/builder/matches/test.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
318318
offset: Place<'tcx>,
319319
span: Span,
320320
) -> BlockAnd<Place<'tcx>> {
321-
let ptr_ty = ptr.ty(&self.local_decls, self.tcx).ty;
322-
let offset_ty = offset.ty(&self.local_decls, self.tcx).ty;
323-
324321
let tcx = self.tcx;
322+
let ptr_ty = ptr.ty(&self.local_decls, tcx).ty;
323+
let offset_ty = offset.ty(&self.local_decls, tcx).ty;
324+
325325
let func = Operand::function_handle(
326326
tcx,
327327
tcx.require_lang_item(LangItem::Offset, Some(span)),

0 commit comments

Comments
 (0)