mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
Changed lint level to restriction
This commit is contained in:
parent
85c2b1e5f4
commit
f1c15840a2
2 changed files with 2 additions and 2 deletions
|
@ -1294,6 +1294,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&panic_unimplemented::UNIMPLEMENTED),
|
||||
LintId::of(&panic_unimplemented::UNREACHABLE),
|
||||
LintId::of(&pattern_type_mismatch::PATTERN_TYPE_MISMATCH),
|
||||
LintId::of(&semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
|
||||
LintId::of(&shadow::SHADOW_REUSE),
|
||||
LintId::of(&shadow::SHADOW_SAME),
|
||||
LintId::of(&strings::STRING_ADD),
|
||||
|
@ -1367,7 +1368,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&ranges::RANGE_PLUS_ONE),
|
||||
LintId::of(&redundant_else::REDUNDANT_ELSE),
|
||||
LintId::of(&ref_option_ref::REF_OPTION_REF),
|
||||
LintId::of(&semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
|
||||
LintId::of(&shadow::SHADOW_UNRELATED),
|
||||
LintId::of(&strings::STRING_ADD_ASSIGN),
|
||||
LintId::of(&trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::utils::{in_macro, span_lint_and_sugg, sugg, snippet_with_macro_callsite};
|
||||
use crate::utils::{in_macro, snippet_with_macro_callsite, span_lint_and_sugg, sugg};
|
||||
use if_chain::if_chain;
|
||||
use rustc_errors::Applicability;
|
||||
use rustc_hir::{Block, ExprKind};
|
||||
|
|
Loading…
Reference in a new issue