Skip to content
Permalink
Browse files

Fix explicit_predicates_of

  • Loading branch information...
GuillaumeGomez committed Apr 3, 2019
1 parent ddd034a commit f6eb09bf632bd3773969ef53e54572f9dd523046
Showing with 2 additions and 7 deletions.
  1. +1 −6 src/librustc_typeck/collect.rs
  2. +1 −1 src/test/rustdoc/useless_lifetime_bound.rs
@@ -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);

@@ -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.
You can’t perform that action at this time.