Skip to content

Commit b109e10

Browse files
committed
Fix build
1 parent 328fea3 commit b109e10

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clippy_lints/src/use_self.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_lint, lint_array};
8-
use syntax::ast::NodeId;
98
use syntax_pos::symbol::keywords::SelfType;
109

1110
/// **What it does:** Checks for unnecessary repetition of structure name when a
@@ -208,7 +207,7 @@ struct UseSelfVisitor<'a, 'tcx: 'a> {
208207
}
209208

210209
impl<'a, 'tcx> Visitor<'tcx> for UseSelfVisitor<'a, 'tcx> {
211-
fn visit_path(&mut self, path: &'tcx Path, _id: NodeId) {
210+
fn visit_path(&mut self, path: &'tcx Path, _id: HirId) {
212211
if self.item_path.def == path.def && path.segments.last().expect(SEGMENTS_MSG).ident.name != SelfType.name() {
213212
span_use_self_lint(self.cx, path);
214213
}

clippy_lints/src/utils/internal_lints.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc::hir;
55
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
66
use crate::utils::{match_qpath, paths, span_lint};
77
use syntax::symbol::LocalInternedString;
8-
use syntax::ast::{Crate as AstCrate, ItemKind, Name, NodeId};
8+
use syntax::ast::{Crate as AstCrate, ItemKind, Name};
99
use syntax::codemap::Span;
1010
use std::collections::{HashMap, HashSet};
1111

@@ -198,7 +198,7 @@ impl<'a, 'tcx: 'a> Visitor<'tcx> for LintCollector<'a, 'tcx> {
198198
walk_expr(self, expr);
199199
}
200200

201-
fn visit_path(&mut self, path: &'tcx Path, _: NodeId) {
201+
fn visit_path(&mut self, path: &'tcx Path, _: HirId) {
202202
if path.segments.len() == 1 {
203203
self.output.insert(path.segments[0].ident.name);
204204
}

0 commit comments

Comments
 (0)