Skip to content

Commit 0b97d18

Browse files
committedFeb 7, 2024
extern types don't have any types to visit
1 parent 0f323b2 commit 0b97d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎compiler/rustc_ty_utils/src/sig_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ pub(crate) fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
8888
}
8989
}
9090
| DefKind::Variant
91-
| DefKind::ForeignTy
9291
| DefKind::TyParam
9392
| DefKind::ConstParam
9493
| DefKind::Ctor(_, _)
@@ -102,6 +101,7 @@ pub(crate) fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
102101
// These don't have any types.
103102
| DefKind::ExternCrate
104103
| DefKind::ForeignMod
104+
| DefKind::ForeignTy
105105
| DefKind::Macro(_)
106106
| DefKind::GlobalAsm
107107
| DefKind::Mod

0 commit comments

Comments
 (0)