Skip to content

Commit f25cc0a

Browse files
committed
rustup: fix build with rustc 1.31.0-nightly (cae6efc 2018-10-27)
1 parent 457e7f1 commit f25cc0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/redundant_clone.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::rustc::hir::{def_id, Body, FnDecl};
1212
use crate::rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
1313
use crate::rustc::mir::{
1414
self, traversal,
15-
visit::{PlaceContext, Visitor},
15+
visit::{MutatingUseContext, NonUseContext, PlaceContext, Visitor},
1616
TerminatorKind,
1717
};
1818
use crate::rustc::ty;
@@ -279,7 +279,7 @@ impl<'tcx> mir::visit::Visitor<'tcx> for LocalUseVisitor {
279279

280280
fn visit_local(&mut self, local: &mir::Local, ctx: PlaceContext<'tcx>, _: mir::Location) {
281281
match ctx {
282-
PlaceContext::Drop | PlaceContext::StorageDead => return,
282+
PlaceContext::MutatingUse(MutatingUseContext::Store) | PlaceContext::NonUse(NonUseContext::StorageDead) => return,
283283
_ => {},
284284
}
285285

0 commit comments

Comments
 (0)