We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea32f1 commit 798a207Copy full SHA for 798a207
src/librustc/lint/context.rs
@@ -319,7 +319,15 @@ impl LintStore {
319
CheckLintNameResult::NoLint => {
320
Some(struct_err!(sess, E0602, "unknown lint: `{}`", lint_name))
321
}
322
- CheckLintNameResult::Tool(_) => unreachable!(),
+ CheckLintNameResult::Tool(result) => match result {
323
+ Err((Some(_), new_name)) => Some(sess.struct_warn(&format!(
324
+ "lint name `{}` is deprcated \
325
+ and does not have an effect anymore. \
326
+ Use: {}",
327
+ lint_name, new_name
328
+ ))),
329
+ _ => None,
330
+ },
331
};
332
333
if let Some(mut db) = db {
0 commit comments