diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2019-04-14 13:18:34 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-04-14 13:18:34 -0700 |
| commit | 3c93a95b1f72c5a247ac8f20d9aeecc597eb4f60 (patch) | |
| tree | 0f1ce336973a4ac0e2b937d01f2206b61ef9bb65 | |
| parent | 0c6956f8ce9e35b96b20d5cdc40bacf9f37322ff (diff) | |
| download | rust-3c93a95b1f72c5a247ac8f20d9aeecc597eb4f60.tar.gz rust-3c93a95b1f72c5a247ac8f20d9aeecc597eb4f60.zip | |
HirIdify ReadVisitor
| -rw-r--r-- | clippy_lints/src/eval_order_dependence.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/eval_order_dependence.rs b/clippy_lints/src/eval_order_dependence.rs index 90e6102dd84..2a4d404ccc7 100644 --- a/clippy_lints/src/eval_order_dependence.rs +++ b/clippy_lints/src/eval_order_dependence.rs @@ -5,7 +5,6 @@ use rustc::hir::*; use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass}; use rustc::ty; use rustc::{declare_tool_lint, lint_array}; -use syntax::ast; declare_clippy_lint! { /// **What it does:** Checks for a read and a write to the same variable where @@ -287,7 +286,7 @@ fn check_stmt<'a, 'tcx>(vis: &mut ReadVisitor<'a, 'tcx>, stmt: &'tcx Stmt) -> St struct ReadVisitor<'a, 'tcx: 'a> { cx: &'a LateContext<'a, 'tcx>, /// The ID of the variable we're looking for. - var: ast::NodeId, + var: HirId, /// The expressions where the write to the variable occurred (for reporting /// in the lint). write_expr: &'tcx Expr, |
