Make CollapsibleIf an EarlyLintPass

It doesn't need any `hir` feature and `ast` is much more stable.
This commit is contained in:
mcarton
2016-06-21 23:17:18 +02:00
parent 7fa38f6787
commit f37c9adbd9
2 changed files with 16 additions and 17 deletions

View File

@@ -189,7 +189,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
reg.register_late_lint_pass(box len_zero::LenZero);
reg.register_late_lint_pass(box misc::CmpOwned);
reg.register_late_lint_pass(box attrs::AttrPass);
reg.register_late_lint_pass(box collapsible_if::CollapsibleIf);
reg.register_early_lint_pass(box collapsible_if::CollapsibleIf);
reg.register_late_lint_pass(box block_in_if_condition::BlockInIfCondition);
reg.register_late_lint_pass(box misc::ModuloOne);
reg.register_late_lint_pass(box unicode::Unicode);