Skip to content

Commit f76225e

Browse files
committed
Handle TyForeign
1 parent 09143cd commit f76225e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
924924
Def::TyAlias(id) |
925925
Def::AssociatedTy(id) |
926926
Def::TyParam(id) |
927+
Def::TyForeign(id) |
927928
Def::Struct(id) |
928929
Def::StructCtor(id, ..) |
929930
Def::Union(id) |

0 commit comments

Comments
 (0)