Skip to content

Commit

Permalink
Don't invent new magic keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 21, 2018
1 parent d3c1e2f commit 2f7edcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/librustc/lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ declare_lint! {
pub UNREACHABLE_CODE,
Warn,
"detects unreachable code paths",
report_in_external_macro
report_in_external_macro: true
}

declare_lint! {
Expand Down Expand Up @@ -218,7 +218,7 @@ declare_lint! {
pub DEPRECATED,
Warn,
"detects use of deprecated items",
report_in_external_macro
report_in_external_macro: true
}

declare_lint! {
Expand Down
4 changes: 2 additions & 2 deletions src/librustc/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ macro_rules! declare_lint {
($vis: vis $NAME: ident, $Level: ident, $desc: expr) => (
declare_lint!{$vis $NAME, $Level, $desc, false}
);
($vis: vis $NAME: ident, $Level: ident, $desc: expr, report_in_external_macro) => (
declare_lint!{$vis $NAME, $Level, $desc, true}
($vis: vis $NAME: ident, $Level: ident, $desc: expr, report_in_external_macro: $rep: expr) => (
declare_lint!{$vis $NAME, $Level, $desc, $rep}
);
($vis: vis $NAME: ident, $Level: ident, $desc: expr, $external: expr) => (
$vis static $NAME: &$crate::lint::Lint = &$crate::lint::Lint {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy

0 comments on commit 2f7edcc

Please sign in to comment.