Initial attempt at linting invalid upcast comparisons
This commit is contained in:
parent
c150ae7824
commit
498e0fba7f
3 changed files with 228 additions and 12 deletions
|
@ -221,6 +221,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
});
|
||||
reg.register_late_lint_pass(box drop_ref::DropRefPass);
|
||||
reg.register_late_lint_pass(box types::AbsurdExtremeComparisons);
|
||||
reg.register_late_lint_pass(box types::InvalidUpcastComparisons);
|
||||
reg.register_late_lint_pass(box regex::RegexPass::default());
|
||||
reg.register_late_lint_pass(box copies::CopyAndPaste);
|
||||
reg.register_late_lint_pass(box format::FormatMacLint);
|
||||
|
@ -367,6 +368,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
transmute::TRANSMUTE_PTR_TO_REF,
|
||||
transmute::USELESS_TRANSMUTE,
|
||||
types::ABSURD_EXTREME_COMPARISONS,
|
||||
types::INVALID_UPCAST_COMPARISONS,
|
||||
types::BOX_VEC,
|
||||
types::CHAR_LIT_AS_U8,
|
||||
types::LET_UNIT_VALUE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue