Add lint checks for unused loop labels
This commit is contained in:
@@ -110,6 +110,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
|
||||
|
||||
add_early_builtin_with_new!(sess,
|
||||
DeprecatedAttr,
|
||||
UnusedLoopLabel,
|
||||
);
|
||||
|
||||
add_builtin!(sess,
|
||||
@@ -177,7 +178,8 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
|
||||
UNUSED_DOC_COMMENT,
|
||||
UNUSED_EXTERN_CRATES,
|
||||
UNUSED_FEATURES,
|
||||
UNUSED_PARENS);
|
||||
UNUSED_PARENS,
|
||||
UNUSED_LOOP_LABEL);
|
||||
|
||||
add_lint_group!(sess,
|
||||
"rust_2018_idioms",
|
||||
|
||||
Reference in New Issue
Block a user