@@ -21,34 +21,34 @@ use rustc;
21
21
22
22
macro_rules! declare_clippy_lint {
23
23
{ pub $name: tt, style, $description: tt } => {
24
- declare_lint! { pub $name, Warn , $description, report_in_external_macro: true }
24
+ declare_lint! { pub $name, Warn , $description, report_in_external_macro: true , clippy }
25
25
} ;
26
26
{ pub $name: tt, correctness, $description: tt } => {
27
- declare_lint! { pub $name, Deny , $description, report_in_external_macro: true }
27
+ declare_lint! { pub $name, Deny , $description, report_in_external_macro: true , clippy }
28
28
} ;
29
29
{ pub $name: tt, complexity, $description: tt } => {
30
- declare_lint! { pub $name, Warn , $description, report_in_external_macro: true }
30
+ declare_lint! { pub $name, Warn , $description, report_in_external_macro: true , clippy }
31
31
} ;
32
32
{ pub $name: tt, perf, $description: tt } => {
33
- declare_lint! { pub $name, Warn , $description, report_in_external_macro: true }
33
+ declare_lint! { pub $name, Warn , $description, report_in_external_macro: true , clippy }
34
34
} ;
35
35
{ pub $name: tt, pedantic, $description: tt } => {
36
- declare_lint! { pub $name, Allow , $description, report_in_external_macro: true }
36
+ declare_lint! { pub $name, Allow , $description, report_in_external_macro: true , clippy }
37
37
} ;
38
38
{ pub $name: tt, restriction, $description: tt } => {
39
- declare_lint! { pub $name, Allow , $description, report_in_external_macro: true }
39
+ declare_lint! { pub $name, Allow , $description, report_in_external_macro: true , clippy }
40
40
} ;
41
41
{ pub $name: tt, cargo, $description: tt } => {
42
- declare_lint! { pub $name, Allow , $description, report_in_external_macro: true }
42
+ declare_lint! { pub $name, Allow , $description, report_in_external_macro: true , clippy }
43
43
} ;
44
44
{ pub $name: tt, nursery, $description: tt } => {
45
- declare_lint! { pub $name, Allow , $description, report_in_external_macro: true }
45
+ declare_lint! { pub $name, Allow , $description, report_in_external_macro: true , clippy }
46
46
} ;
47
47
{ pub $name: tt, internal, $description: tt } => {
48
- declare_lint! { pub $name, Allow , $description, report_in_external_macro: true }
48
+ declare_lint! { pub $name, Allow , $description, report_in_external_macro: true , clippy }
49
49
} ;
50
50
{ pub $name: tt, internal_warn, $description: tt } => {
51
- declare_lint! { pub $name, Warn , $description, report_in_external_macro: true }
51
+ declare_lint! { pub $name, Warn , $description, report_in_external_macro: true , clippy }
52
52
} ;
53
53
}
54
54
@@ -400,7 +400,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
400
400
reg. register_late_lint_pass ( box indexing_slicing:: IndexingSlicing ) ;
401
401
reg. register_late_lint_pass ( box non_copy_const:: NonCopyConst ) ;
402
402
403
- reg. register_lint_group ( "clippy_restriction " , vec ! [
403
+ reg. register_lint_group ( "clippy::restriction " , vec ! [
404
404
arithmetic:: FLOAT_ARITHMETIC ,
405
405
arithmetic:: INTEGER_ARITHMETIC ,
406
406
assign_ops:: ASSIGN_OPS ,
@@ -424,7 +424,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
424
424
write:: USE_DEBUG ,
425
425
] ) ;
426
426
427
- reg. register_lint_group ( "clippy_pedantic " , vec ! [
427
+ reg. register_lint_group ( "clippy::pedantic " , vec ! [
428
428
attrs:: INLINE_ALWAYS ,
429
429
copies:: MATCH_SAME_ARMS ,
430
430
default_trait_access:: DEFAULT_TRAIT_ACCESS ,
@@ -461,12 +461,12 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
461
461
use_self:: USE_SELF ,
462
462
] ) ;
463
463
464
- reg. register_lint_group ( "clippy_internal " , vec ! [
464
+ reg. register_lint_group ( "clippy::internal " , vec ! [
465
465
utils:: internal_lints:: CLIPPY_LINTS_INTERNAL ,
466
466
utils:: internal_lints:: LINT_WITHOUT_LINT_PASS ,
467
467
] ) ;
468
468
469
- reg. register_lint_group ( "clippy" , vec ! [
469
+ reg. register_lint_group ( "clippy::all " , vec ! [
470
470
approx_const:: APPROX_CONSTANT ,
471
471
assign_ops:: ASSIGN_OP_PATTERN ,
472
472
assign_ops:: MISREFACTORED_ASSIGN_OP ,
@@ -679,7 +679,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
679
679
zero_div_zero:: ZERO_DIVIDED_BY_ZERO ,
680
680
] ) ;
681
681
682
- reg. register_lint_group ( "clippy_style " , vec ! [
682
+ reg. register_lint_group ( "clippy::style " , vec ! [
683
683
assign_ops:: ASSIGN_OP_PATTERN ,
684
684
bit_mask:: VERBOSE_BIT_MASK ,
685
685
blacklisted_name:: BLACKLISTED_NAME ,
@@ -764,7 +764,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
764
764
write:: WRITELN_EMPTY_STRING ,
765
765
] ) ;
766
766
767
- reg. register_lint_group ( "clippy_complexity " , vec ! [
767
+ reg. register_lint_group ( "clippy::complexity " , vec ! [
768
768
assign_ops:: MISREFACTORED_ASSIGN_OP ,
769
769
booleans:: NONMINIMAL_BOOL ,
770
770
cyclomatic_complexity:: CYCLOMATIC_COMPLEXITY ,
@@ -829,7 +829,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
829
829
zero_div_zero:: ZERO_DIVIDED_BY_ZERO ,
830
830
] ) ;
831
831
832
- reg. register_lint_group ( "clippy_correctness " , vec ! [
832
+ reg. register_lint_group ( "clippy::correctness " , vec ! [
833
833
approx_const:: APPROX_CONSTANT ,
834
834
attrs:: DEPRECATED_SEMVER ,
835
835
attrs:: USELESS_ATTRIBUTE ,
@@ -883,7 +883,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
883
883
unused_io_amount:: UNUSED_IO_AMOUNT ,
884
884
] ) ;
885
885
886
- reg. register_lint_group ( "clippy_perf " , vec ! [
886
+ reg. register_lint_group ( "clippy::perf " , vec ! [
887
887
bytecount:: NAIVE_BYTECOUNT ,
888
888
entry:: MAP_ENTRY ,
889
889
escape:: BOXED_LOCAL ,
@@ -901,11 +901,11 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
901
901
vec:: USELESS_VEC ,
902
902
] ) ;
903
903
904
- reg. register_lint_group ( "clippy_cargo " , vec ! [
904
+ reg. register_lint_group ( "clippy::cargo " , vec ! [
905
905
multiple_crate_versions:: MULTIPLE_CRATE_VERSIONS ,
906
906
] ) ;
907
907
908
- reg. register_lint_group ( "clippy_nursery " , vec ! [
908
+ reg. register_lint_group ( "clippy::nursery " , vec ! [
909
909
attrs:: EMPTY_LINE_AFTER_OUTER_ATTR ,
910
910
fallible_impl_from:: FALLIBLE_IMPL_FROM ,
911
911
mutex_atomic:: MUTEX_INTEGER ,
0 commit comments