1
Fork 0

Added lint for use imports which remove unsafe from name

This commit is contained in:
Taylor Cramer 2016-04-19 16:27:01 -07:00
parent 0bc067089e
commit 038f528f45
3 changed files with 105 additions and 0 deletions

View file

@ -109,6 +109,7 @@ pub mod transmute;
pub mod types;
pub mod unicode;
pub mod unused_label;
pub mod unsafe_removed_from_name;
pub mod vec;
pub mod zero_div_zero;
// end lints modules, do not remove this comment, its used in `update_lints`
@ -234,6 +235,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
reg.register_late_lint_pass(box functions::Functions::new(conf.too_many_arguments_threshold));
reg.register_early_lint_pass(box doc::Doc::new(conf.doc_valid_idents));
reg.register_late_lint_pass(box neg_multiply::NegMultiply);
reg.register_late_lint_pass(box unsafe_removed_from_name::UnsafeNameRemoval);
reg.register_lint_group("clippy_pedantic", vec![
array_indexing::INDEXING_SLICING,
@ -379,6 +381,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
types::UNIT_CMP,
unicode::ZERO_WIDTH_SPACE,
unused_label::UNUSED_LABEL,
unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME,
vec::USELESS_VEC,
zero_div_zero::ZERO_DIVIDED_BY_ZERO,
]);