Rustup to *rustc 1.19.0-nightly (06fb4d256
2017-04-30)*
This commit is contained in:
parent
50c8d4e270
commit
76041b8ffa
|
@ -199,9 +199,9 @@ fn has_is_empty(cx: &LateContext, expr: &Expr) -> bool {
|
||||||
|
|
||||||
/// Check the inherent impl's items for an `is_empty(self)` method.
|
/// Check the inherent impl's items for an `is_empty(self)` method.
|
||||||
fn has_is_empty_impl(cx: &LateContext, id: DefId) -> bool {
|
fn has_is_empty_impl(cx: &LateContext, id: DefId) -> bool {
|
||||||
cx.tcx.maps.inherent_impls.borrow().get(&id).map_or(false, |impls| {
|
cx.tcx.inherent_impls(id)
|
||||||
impls.iter().any(|imp| cx.tcx.associated_items(*imp).any(|item| is_is_empty(cx, &item)))
|
.iter()
|
||||||
})
|
.any(|imp| cx.tcx.associated_items(*imp).any(|item| is_is_empty(cx, &item)))
|
||||||
}
|
}
|
||||||
|
|
||||||
let ty = &walk_ptrs_ty(cx.tables.expr_ty(expr));
|
let ty = &walk_ptrs_ty(cx.tables.expr_ty(expr));
|
||||||
|
|
|
@ -287,7 +287,7 @@ impl<'v, 't> RefVisitor<'v, 't> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Def::Trait(def_id) => {
|
Def::Trait(def_id) => {
|
||||||
let trait_def = self.cx.tcx.maps.trait_def.borrow()[&def_id];
|
let trait_def = self.cx.tcx.trait_def(def_id);
|
||||||
for _ in &self.cx.tcx.generics_of(trait_def.def_id).regions {
|
for _ in &self.cx.tcx.generics_of(trait_def.def_id).regions {
|
||||||
self.record(&None);
|
self.record(&None);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue