]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/lint/levels.rs
Move Lint to rustc_session
[rust.git] / src / librustc / lint / levels.rs
index 619ca724214c87b5d1464d563568e910bcebd60b..ca246994e5c8433da1f70c0aab54315fef1d1ed5 100644 (file)
@@ -93,7 +93,7 @@ fn get_lint_level(&self,
 
         // If `level` is none then we actually assume the default level for this
         // lint.
-        let mut level = level.unwrap_or_else(|| lint.default_level(sess));
+        let mut level = level.unwrap_or_else(|| lint.default_level(sess.edition()));
 
         // If we're about to issue a warning, check at the last minute for any
         // directives against the warnings "lint". If, for example, there's an