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
- 29f7206366 (diff-c1e317a81486d937bbfc6edca1dee92aR55)
This commit is contained in:
bors 2019-02-09 03:41:50 +00:00
commit 35e2e1bb75

View file

@ -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, ..)