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
+1 -6
View File
@@ -1920,12 +1920,7 @@ fn extend<I: IntoIterator<Item = (ty::Predicate<'tcx>, Span)>>(&mut self, iter:
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);
+1 -1
View File
@@ -4,4 +4,4 @@
// @!has - '//*[@class="rust struct"]' "'env: 'env"
pub struct Scope<'env> {
_marker: PhantomData<&'env mut &'env ()>,
}
}