1
Fork 0

Fix explicit_predicates_of

This commit is contained in:
Guillaume Gomez 2019-04-03 22:13:12 +02:00
parent ddd034aa6f
commit f6eb09bf63
2 changed files with 2 additions and 7 deletions

View file

@ -1920,12 +1920,7 @@ fn explicit_predicates_of<'a, 'tcx>(
let hir_id = match tcx.hir().as_local_hir_id(def_id) {
Some(hir_id) => hir_id,
None => {
return Lrc::new(ty::GenericPredicates {
parent: None,
predicates: Vec::new(),
})
}
None => return tcx.predicates_of(def_id),
};
let node = tcx.hir().get_by_hir_id(hir_id);