]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/driver/session.rs
Rename lint::Lint to lint::LintId
[rust.git] / src / librustc / driver / session.rs
index 2978ff7f780aa2293910d3c72216b3b9daa4e6de..e84c356b2d8d90a8e852964101482aaab2526427 100644 (file)
@@ -43,7 +43,7 @@ pub struct Session {
     // expected to be absolute. `None` means that there is no source file.
     pub local_crate_source_file: Option<Path>,
     pub working_dir: Path,
-    pub lints: RefCell<NodeMap<Vec<(lint::Lint, codemap::Span, String)>>>,
+    pub lints: RefCell<NodeMap<Vec<(lint::LintId, codemap::Span, String)>>>,
     pub node_id: Cell<ast::NodeId>,
     pub crate_types: RefCell<Vec<config::CrateType>>,
     pub features: front::feature_gate::Features,
@@ -106,7 +106,7 @@ pub fn unimpl(&self, msg: &str) -> ! {
         self.diagnostic().handler().unimpl(msg)
     }
     pub fn add_lint(&self,
-                    lint: lint::Lint,
+                    lint: lint::LintId,
                     id: ast::NodeId,
                     sp: Span,
                     msg: String) {