Skip to content

Commit 35e2e1b

Browse files
committed
Auto merge of #3750 - h-michael:const-params, r=phansch
Fix failing build (adding new Hir::Def type ConstParam) solves: #3749 related with: - https://travis-ci.com/rust-lang/rust-clippy/jobs/176480646 - rust-lang/rust#58191 - rust-lang/rust@29f7206#diff-c1e317a81486d937bbfc6edca1dee92aR55
2 parents e176324 + 66f8fa3 commit 35e2e1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/utils/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
997997
| Def::TyAlias(id)
998998
| Def::AssociatedTy(id)
999999
| Def::TyParam(id)
1000+
| Def::ConstParam(id)
10001001
| Def::ForeignTy(id)
10011002
| Def::Struct(id)
10021003
| Def::StructCtor(id, ..)

0 commit comments

Comments
 (0)