Skip to content

Commit f6eb09b

Browse files
Fix explicit_predicates_of
1 parent ddd034a commit f6eb09b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/librustc_typeck/collect.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1920,12 +1920,7 @@ fn explicit_predicates_of<'a, 'tcx>(
19201920

19211921
let hir_id = match tcx.hir().as_local_hir_id(def_id) {
19221922
Some(hir_id) => hir_id,
1923-
None => {
1924-
return Lrc::new(ty::GenericPredicates {
1925-
parent: None,
1926-
predicates: Vec::new(),
1927-
})
1928-
}
1923+
None => return tcx.predicates_of(def_id),
19291924
};
19301925
let node = tcx.hir().get_by_hir_id(hir_id);
19311926

src/test/rustdoc/useless_lifetime_bound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ use std::marker::PhantomData;
44
// @!has - '//*[@class="rust struct"]' "'env: 'env"
55
pub struct Scope<'env> {
66
_marker: PhantomData<&'env mut &'env ()>,
7-
}
7+
}

0 commit comments

Comments
 (0)