Skip to content

Commit

Permalink
Fix explicit_predicates_of
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 3, 2019
1 parent ddd034a commit f6eb09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/librustc_typeck/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/useless_lifetime_bound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ use std::marker::PhantomData;
// @!has - '//*[@class="rust struct"]' "'env: 'env"
pub struct Scope<'env> {
_marker: PhantomData<&'env mut &'env ()>,
}
}

0 comments on commit f6eb09b

Please sign in to comment.