Skip to content

Commit 8085ed7

Browse files
committed
Don't invent new magic keywords
1 parent 2fa85d8 commit 8085ed7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

clippy_lints/src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,34 @@ use rustc_plugin;
2020

2121
macro_rules! declare_clippy_lint {
2222
{ pub $name:tt, style, $description:tt } => {
23-
declare_lint! { pub $name, Warn, $description, report_in_external_macro }
23+
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true }
2424
};
2525
{ pub $name:tt, correctness, $description:tt } => {
26-
declare_lint! { pub $name, Deny, $description, report_in_external_macro }
26+
declare_lint! { pub $name, Deny, $description, report_in_external_macro: true }
2727
};
2828
{ pub $name:tt, complexity, $description:tt } => {
29-
declare_lint! { pub $name, Warn, $description, report_in_external_macro }
29+
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true }
3030
};
3131
{ pub $name:tt, perf, $description:tt } => {
32-
declare_lint! { pub $name, Warn, $description, report_in_external_macro }
32+
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true }
3333
};
3434
{ pub $name:tt, pedantic, $description:tt } => {
35-
declare_lint! { pub $name, Allow, $description, report_in_external_macro }
35+
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true }
3636
};
3737
{ pub $name:tt, restriction, $description:tt } => {
38-
declare_lint! { pub $name, Allow, $description, report_in_external_macro }
38+
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true }
3939
};
4040
{ pub $name:tt, cargo, $description:tt } => {
41-
declare_lint! { pub $name, Allow, $description, report_in_external_macro }
41+
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true }
4242
};
4343
{ pub $name:tt, nursery, $description:tt } => {
44-
declare_lint! { pub $name, Allow, $description, report_in_external_macro }
44+
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true }
4545
};
4646
{ pub $name:tt, internal, $description:tt } => {
47-
declare_lint! { pub $name, Allow, $description, report_in_external_macro }
47+
declare_lint! { pub $name, Allow, $description, report_in_external_macro: true }
4848
};
4949
{ pub $name:tt, internal_warn, $description:tt } => {
50-
declare_lint! { pub $name, Warn, $description, report_in_external_macro }
50+
declare_lint! { pub $name, Warn, $description, report_in_external_macro: true }
5151
};
5252
}
5353

0 commit comments

Comments
 (0)