1
Fork 0

Initial attempt at linting invalid upcast comparisons

This commit is contained in:
Taylor Cramer 2016-03-25 02:42:27 -07:00 committed by mcarton
parent c150ae7824
commit 498e0fba7f
3 changed files with 228 additions and 12 deletions

View file

@ -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,