Skip to content

Commit 43ff2a7

Browse files
committedOct 30, 2023
Some manual rustfmt as rustfmt is broken on this file
1 parent 251021c commit 43ff2a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎compiler/rustc_ty_utils/src/sig_types.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
4646
Some(ty) => ty.span,
4747
_ => tcx.def_span(item),
4848
};
49-
visitor.visit(span, tcx.type_of(item).instantiate_identity());
49+
visitor.visit(span, tcx.type_of(item).instantiate_identity());
5050
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
5151
visitor.visit(span, pred)?;
5252
}
@@ -59,7 +59,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
5959
// Look at field types
6060
DefKind::Struct | DefKind::Union | DefKind::Enum => {
6161
let span = tcx.def_ident_span(item).unwrap();
62-
visitor.visit(span, tcx.type_of(item).instantiate_identity());
62+
visitor.visit(span, tcx.type_of(item).instantiate_identity());
6363
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
6464
visitor.visit(span, pred)?;
6565
}
@@ -81,7 +81,8 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
8181
visitor.visit(span, tcx.type_of(item).instantiate_identity());
8282
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
8383
visitor.visit(span, pred)?;
84-
}}
84+
}
85+
}
8586
DefKind::TraitAlias | DefKind::Trait => {
8687
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
8788
visitor.visit(span, pred)?;

0 commit comments

Comments
 (0)
Please sign in to comment.