Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
xacrimon committed Jan 30, 2025
1 parent 3249381 commit c0adb36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_mir_build/src/builder/matches/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
offset: Place<'tcx>,
span: Span,
) -> BlockAnd<Place<'tcx>> {
let ptr_ty = ptr.ty(&self.local_decls, self.tcx).ty;
let offset_ty = offset.ty(&self.local_decls, self.tcx).ty;

let tcx = self.tcx;
let ptr_ty = ptr.ty(&self.local_decls, tcx).ty;
let offset_ty = offset.ty(&self.local_decls, tcx).ty;

let func = Operand::function_handle(
tcx,
tcx.require_lang_item(LangItem::Offset, Some(span)),
Expand Down

0 comments on commit c0adb36

Please sign in to comment.