Skip to content

Commit 6754a78

Browse files
committed
Switch to tool_lints
1 parent 4010788 commit 6754a78

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

clippy_lints/src/lib.rs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,34 @@ use rustc;
2121

2222
macro_rules! declare_clippy_lint {
2323
{ 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 }
2525
};
2626
{ 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 }
2828
};
2929
{ 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 }
3131
};
3232
{ 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 }
3434
};
3535
{ 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 }
3737
};
3838
{ 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 }
4040
};
4141
{ 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 }
4343
};
4444
{ 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 }
4646
};
4747
{ 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 }
4949
};
5050
{ 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 }
5252
};
5353
}
5454

@@ -400,7 +400,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
400400
reg.register_late_lint_pass(box indexing_slicing::IndexingSlicing);
401401
reg.register_late_lint_pass(box non_copy_const::NonCopyConst);
402402

403-
reg.register_lint_group("clippy_restriction", vec![
403+
reg.register_lint_group("clippy::restriction", vec![
404404
arithmetic::FLOAT_ARITHMETIC,
405405
arithmetic::INTEGER_ARITHMETIC,
406406
assign_ops::ASSIGN_OPS,
@@ -424,7 +424,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
424424
write::USE_DEBUG,
425425
]);
426426

427-
reg.register_lint_group("clippy_pedantic", vec![
427+
reg.register_lint_group("clippy::pedantic", vec![
428428
attrs::INLINE_ALWAYS,
429429
copies::MATCH_SAME_ARMS,
430430
default_trait_access::DEFAULT_TRAIT_ACCESS,
@@ -461,12 +461,12 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
461461
use_self::USE_SELF,
462462
]);
463463

464-
reg.register_lint_group("clippy_internal", vec![
464+
reg.register_lint_group("clippy::internal", vec![
465465
utils::internal_lints::CLIPPY_LINTS_INTERNAL,
466466
utils::internal_lints::LINT_WITHOUT_LINT_PASS,
467467
]);
468468

469-
reg.register_lint_group("clippy", vec![
469+
reg.register_lint_group("clippy::all", vec![
470470
approx_const::APPROX_CONSTANT,
471471
assign_ops::ASSIGN_OP_PATTERN,
472472
assign_ops::MISREFACTORED_ASSIGN_OP,
@@ -679,7 +679,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
679679
zero_div_zero::ZERO_DIVIDED_BY_ZERO,
680680
]);
681681

682-
reg.register_lint_group("clippy_style", vec![
682+
reg.register_lint_group("clippy::style", vec![
683683
assign_ops::ASSIGN_OP_PATTERN,
684684
bit_mask::VERBOSE_BIT_MASK,
685685
blacklisted_name::BLACKLISTED_NAME,
@@ -764,7 +764,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
764764
write::WRITELN_EMPTY_STRING,
765765
]);
766766

767-
reg.register_lint_group("clippy_complexity", vec![
767+
reg.register_lint_group("clippy::complexity", vec![
768768
assign_ops::MISREFACTORED_ASSIGN_OP,
769769
booleans::NONMINIMAL_BOOL,
770770
cyclomatic_complexity::CYCLOMATIC_COMPLEXITY,
@@ -829,7 +829,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
829829
zero_div_zero::ZERO_DIVIDED_BY_ZERO,
830830
]);
831831

832-
reg.register_lint_group("clippy_correctness", vec![
832+
reg.register_lint_group("clippy::correctness", vec![
833833
approx_const::APPROX_CONSTANT,
834834
attrs::DEPRECATED_SEMVER,
835835
attrs::USELESS_ATTRIBUTE,
@@ -883,7 +883,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
883883
unused_io_amount::UNUSED_IO_AMOUNT,
884884
]);
885885

886-
reg.register_lint_group("clippy_perf", vec![
886+
reg.register_lint_group("clippy::perf", vec![
887887
bytecount::NAIVE_BYTECOUNT,
888888
entry::MAP_ENTRY,
889889
escape::BOXED_LOCAL,
@@ -901,11 +901,11 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
901901
vec::USELESS_VEC,
902902
]);
903903

904-
reg.register_lint_group("clippy_cargo", vec![
904+
reg.register_lint_group("clippy::cargo", vec![
905905
multiple_crate_versions::MULTIPLE_CRATE_VERSIONS,
906906
]);
907907

908-
reg.register_lint_group("clippy_nursery", vec![
908+
reg.register_lint_group("clippy::nursery", vec![
909909
attrs::EMPTY_LINE_AFTER_OUTER_ATTR,
910910
fallible_impl_from::FALLIBLE_IMPL_FROM,
911911
mutex_atomic::MUTEX_INTEGER,

0 commit comments

Comments
 (0)