Merge branch 'pr-482'

This commit is contained in:
Manish Goregaokar
2015-12-07 07:23:52 -05:00
8 changed files with 60 additions and 8 deletions

View File

@@ -65,6 +65,7 @@ pub mod temporary_assignment;
pub mod transmute;
pub mod cyclomatic_complexity;
pub mod escape;
pub mod misc_early;
mod reexport {
pub use syntax::ast::{Name, Ident, NodeId};
@@ -118,6 +119,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
reg.register_late_lint_pass(box transmute::UselessTransmute);
reg.register_late_lint_pass(box cyclomatic_complexity::CyclomaticComplexity::new(25));
reg.register_late_lint_pass(box escape::EscapePass);
reg.register_early_lint_pass(box misc_early::MiscEarly);
reg.register_lint_group("clippy_pedantic", vec![
methods::OPTION_UNWRAP_USED,
@@ -181,6 +183,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
misc::MODULO_ONE,
misc::REDUNDANT_PATTERN,
misc::TOPLEVEL_REF_ARG,
misc_early::UNNEEDED_FIELD_PATTERN,
mut_reference::UNNECESSARY_MUT_PASSED,
mutex_atomic::MUTEX_ATOMIC,
needless_bool::NEEDLESS_BOOL,