mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Turn on warning for use of deprecated lint names
This commit is contained in:
parent
e0ad0fcb95
commit
1ad1e2e299
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user