about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-10-27 15:37:29 -0700
committerAaron Turon <aturon@mozilla.com>2014-10-28 08:54:21 -0700
commit1ad1e2e2992d37c27f264366487ee813e9440d7f (patch)
treeb27b4fb689bba86a04dbbc5f41b83d3bb8a79910
parente0ad0fcb95f0bd6e69e9032c23b66515a590dfe5 (diff)
downloadrust-1ad1e2e2992d37c27f264366487ee813e9440d7f.tar.gz
rust-1ad1e2e2992d37c27f264366487ee813e9440d7f.zip
Turn on warning for use of deprecated lint names
-rw-r--r--src/librustc/lint/context.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs
index 4cdca9e5365..be8a6cec842 100644
--- a/src/librustc/lint/context.rs
+++ b/src/librustc/lint/context.rs
@@ -261,14 +261,12 @@ impl LintStore {
         match self.by_name.find_equiv(&lint_name) {
             Some(&Id(lint_id)) => Some(lint_id),
             Some(&Renamed(ref new_name, lint_id)) => {
-                // NOTE(stage0): add the following code after the next snapshot
-
-                // let warning = format!("lint {} has been renamed to {}",
-                //                       lint_name, new_name);
-                // match span {
-                //     Some(span) => sess.span_warn(span, warning.as_slice()),
-                //     None => sess.warn(warning.as_slice()),
-                // };
+                let warning = format!("lint {} has been renamed to {}",
+                                      lint_name, new_name);
+                match span {
+                    Some(span) => sess.span_warn(span, warning.as_slice()),
+                    None => sess.warn(warning.as_slice()),
+                };
                 Some(lint_id)
             }
             None => None