mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 20:07:21 +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::lint::{LateContext, LateLintPass, LintArray, LintPass};
|
||||||
use crate::rustc::mir::{
|
use crate::rustc::mir::{
|
||||||
self, traversal,
|
self, traversal,
|
||||||
visit::{PlaceContext, Visitor},
|
visit::{MutatingUseContext, NonUseContext, PlaceContext, Visitor},
|
||||||
TerminatorKind,
|
TerminatorKind,
|
||||||
};
|
};
|
||||||
use crate::rustc::ty;
|
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) {
|
fn visit_local(&mut self, local: &mir::Local, ctx: PlaceContext<'tcx>, _: mir::Location) {
|
||||||
match ctx {
|
match ctx {
|
||||||
PlaceContext::Drop | PlaceContext::StorageDead => return,
|
PlaceContext::MutatingUse(MutatingUseContext::Drop) | PlaceContext::NonUse(NonUseContext::StorageDead) => return,
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue