Some manual rustfmt as rustfmt is broken on this file
This commit is contained in:
parent
251021c1ab
commit
43ff2a7e50
1 changed files with 4 additions and 3 deletions
|
@ -46,7 +46,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
||||||
Some(ty) => ty.span,
|
Some(ty) => ty.span,
|
||||||
_ => tcx.def_span(item),
|
_ => tcx.def_span(item),
|
||||||
};
|
};
|
||||||
visitor.visit(span, tcx.type_of(item).instantiate_identity());
|
visitor.visit(span, tcx.type_of(item).instantiate_identity());
|
||||||
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
||||||
visitor.visit(span, pred)?;
|
visitor.visit(span, pred)?;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
||||||
// Look at field types
|
// Look at field types
|
||||||
DefKind::Struct | DefKind::Union | DefKind::Enum => {
|
DefKind::Struct | DefKind::Union | DefKind::Enum => {
|
||||||
let span = tcx.def_ident_span(item).unwrap();
|
let span = tcx.def_ident_span(item).unwrap();
|
||||||
visitor.visit(span, tcx.type_of(item).instantiate_identity());
|
visitor.visit(span, tcx.type_of(item).instantiate_identity());
|
||||||
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
||||||
visitor.visit(span, pred)?;
|
visitor.visit(span, pred)?;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,8 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
||||||
visitor.visit(span, tcx.type_of(item).instantiate_identity());
|
visitor.visit(span, tcx.type_of(item).instantiate_identity());
|
||||||
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
||||||
visitor.visit(span, pred)?;
|
visitor.visit(span, pred)?;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
DefKind::TraitAlias | DefKind::Trait => {
|
DefKind::TraitAlias | DefKind::Trait => {
|
||||||
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
|
||||||
visitor.visit(span, pred)?;
|
visitor.visit(span, pred)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue