mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Fix explicit_predicates_of
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
// @!has - '//*[@class="rust struct"]' "'env: 'env"
|
||||
pub struct Scope<'env> {
|
||||
_marker: PhantomData<&'env mut &'env ()>,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user