]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/lint/mod.rs
Various straight-forward ports that override `visit_nested_items`
[rust.git] / src / librustc / lint / mod.rs
index 14c11af6f3863293f4f4e51dee855bad2bf3ef2a..23be6117f190f51376c31aee808d994756fd9c93 100644 (file)
@@ -34,7 +34,7 @@
 use std::hash;
 use std::ascii::AsciiExt;
 use syntax::codemap::Span;
-use rustc_front::visit::FnKind;
+use rustc_front::intravisit::FnKind;
 use syntax::visit as ast_visit;
 use syntax::ast;
 use rustc_front::hir;
@@ -218,7 +218,7 @@ fn exit_lint_attrs(&mut self, _: &EarlyContext, _: &[ast::Attribute]) { }
 pub type LateLintPassObject = Box<LateLintPass + 'static>;
 
 /// Identifies a lint known to the compiler.
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Debug)]
 pub struct LintId {
     // Identity is based on pointer equality of this field.
     lint: &'static Lint,