Skip to content

Commit 76041b8

Browse files
committed
Rustup to *rustc 1.19.0-nightly (06fb4d2 2017-04-30)*
1 parent 50c8d4e commit 76041b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/len_zero.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ fn has_is_empty(cx: &LateContext, expr: &Expr) -> bool {
199199

200200
/// Check the inherent impl's items for an `is_empty(self)` method.
201201
fn has_is_empty_impl(cx: &LateContext, id: DefId) -> bool {
202-
cx.tcx.maps.inherent_impls.borrow().get(&id).map_or(false, |impls| {
203-
impls.iter().any(|imp| cx.tcx.associated_items(*imp).any(|item| is_is_empty(cx, &item)))
204-
})
202+
cx.tcx.inherent_impls(id)
203+
.iter()
204+
.any(|imp| cx.tcx.associated_items(*imp).any(|item| is_is_empty(cx, &item)))
205205
}
206206

207207
let ty = &walk_ptrs_ty(cx.tables.expr_ty(expr));

clippy_lints/src/lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<'v, 't> RefVisitor<'v, 't> {
287287
}
288288
},
289289
Def::Trait(def_id) => {
290-
let trait_def = self.cx.tcx.maps.trait_def.borrow()[&def_id];
290+
let trait_def = self.cx.tcx.trait_def(def_id);
291291
for _ in &self.cx.tcx.generics_of(trait_def.def_id).regions {
292292
self.record(&None);
293293
}

0 commit comments

Comments
 (0)