Turn on warning for use of deprecated lint names

This commit is contained in:
Aaron Turon 2014-10-27 15:37:29 -07:00
parent e0ad0fcb95
commit 1ad1e2e299

View File

@ -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