]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc/lint/mod.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc / lint / mod.rs
index 92aa446c265f9f791d3911d063357a0a1a0809ea..f34b14224f7797f0ad798cd4e045e294fdb5104c 100644 (file)
@@ -41,7 +41,7 @@ use hir;
 
 pub use lint::context::{LateContext, EarlyContext, LintContext, LintStore,
                         raw_emit_lint, check_crate, check_ast_crate, gather_attrs,
-                        raw_struct_lint, GatherNodeLevels, FutureIncompatibleInfo};
+                        raw_struct_lint, FutureIncompatibleInfo};
 
 /// Specification of a single lint.
 #[derive(Copy, Clone, Debug)]
@@ -269,7 +269,7 @@ impl LintId {
 }
 
 /// Setting for how to handle a lint.
-#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug)]
+#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
 pub enum Level {
     Allow, Warn, Deny, Forbid
 }