Skip to content

Commit f79e08c

Browse files
committed
Fix format issues
1 parent 8a64b8e commit f79e08c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

+4-7
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,10 @@ impl<'tcx> MatchPairTree<'tcx> {
173173
let ascription = place.map(|source| {
174174
let span = pattern.span;
175175
let parent_id = cx.tcx.typeck_root_def_id(cx.def_id.to_def_id());
176-
let args = ty::InlineConstArgs::new(
177-
cx.tcx,
178-
ty::InlineConstArgsParts {
179-
parent_args: ty::GenericArgs::identity_for_item(cx.tcx, parent_id),
180-
ty: cx.infcx.next_ty_var(span),
181-
},
182-
)
176+
let args = ty::InlineConstArgs::new(cx.tcx, ty::InlineConstArgsParts {
177+
parent_args: ty::GenericArgs::identity_for_item(cx.tcx, parent_id),
178+
ty: cx.infcx.next_ty_var(span),
179+
})
183180
.args;
184181
let user_ty = cx.infcx.canonicalize_user_type_annotation(ty::UserType::new(
185182
ty::UserTypeKind::TypeOf(def_id, ty::UserArgs { args, user_self_ty: None }),

0 commit comments

Comments
 (0)