Skip to content

Commit 3c93a95

Browse files
committed
HirIdify ReadVisitor
1 parent 0c6956f commit 3c93a95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/eval_order_dependence.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use rustc::hir::*;
55
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
66
use rustc::ty;
77
use rustc::{declare_tool_lint, lint_array};
8-
use syntax::ast;
98

109
declare_clippy_lint! {
1110
/// **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
287286
struct ReadVisitor<'a, 'tcx: 'a> {
288287
cx: &'a LateContext<'a, 'tcx>,
289288
/// The ID of the variable we're looking for.
290-
var: ast::NodeId,
289+
var: HirId,
291290
/// The expressions where the write to the variable occurred (for reporting
292291
/// in the lint).
293292
write_expr: &'tcx Expr,

0 commit comments

Comments
 (0)