Skip to content

Commit 3df5b44

Browse files
authored
Merge pull request #3184 from rust-lang-nursery/rustup
Add match on StructCtor
2 parents dac5e2d + 7b530c7 commit 3df5b44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
864864
Def::AssociatedConst(id) |
865865
Def::Macro(id, ..) |
866866
Def::Existential(id) |
867-
Def::AssociatedExistential(id)
867+
Def::AssociatedExistential(id) |
868+
Def::SelfCtor(id)
868869
=> Some(id),
869870

870871
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |

0 commit comments

Comments
 (0)