diff options
| author | bors <bors@rust-lang.org> | 2019-02-09 03:41:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-09 03:41:50 +0000 |
| commit | 35e2e1bb751da8b5daf9a7d9a0c787177aca7625 (patch) | |
| tree | 7ae0040ae4fa0bcd4a533f6e3ebed97f280c1f2c | |
| parent | e176324fc593644a3ce00aa2ec7c1887d571003e (diff) | |
| parent | 66f8fa320b9776c2008dcc9b3e6999c3074bea46 (diff) | |
| download | rust-35e2e1bb751da8b5daf9a7d9a0c787177aca7625.tar.gz rust-35e2e1bb751da8b5daf9a7d9a0c787177aca7625.zip | |
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 - https://github.com/rust-lang/rust/pull/58191 - https://github.com/rust-lang/rust/commit/29f72063667187f2d281e940209a924730e165b2#diff-c1e317a81486d937bbfc6edca1dee92aR55
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index f4b1a2450bf..40daa2d0b00 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -997,6 +997,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> { | Def::TyAlias(id) | Def::AssociatedTy(id) | Def::TyParam(id) + | Def::ConstParam(id) | Def::ForeignTy(id) | Def::Struct(id) | Def::StructCtor(id, ..) |
