mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
rustup: fix build with rustc 1.31.0-nightly (cae6efc37 2018-10-27)
This commit is contained in:
parent
457e7f12e9
commit
6eb1f23555
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ use crate::rustc::hir::{def_id, Body, FnDecl};
|
|||
use crate::rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||
use crate::rustc::mir::{
|
||||
self, traversal,
|
||||
visit::{PlaceContext, Visitor},
|
||||
visit::{MutatingUseContext, NonUseContext, PlaceContext, Visitor},
|
||||
TerminatorKind,
|
||||
};
|
||||
use crate::rustc::ty;
|
||||
|
@ -279,7 +279,7 @@ impl<'tcx> mir::visit::Visitor<'tcx> for LocalUseVisitor {
|
|||
|
||||
fn visit_local(&mut self, local: &mir::Local, ctx: PlaceContext<'tcx>, _: mir::Location) {
|
||||
match ctx {
|
||||
PlaceContext::Drop | PlaceContext::StorageDead => return,
|
||||
PlaceContext::MutatingUse(MutatingUseContext::Drop) | PlaceContext::NonUse(NonUseContext::StorageDead) => return,
|
||||
_ => {},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue