Don't invent new magic keywords
This commit is contained in:
parent
d3c1e2fb7c
commit
2f7edccb03
@ -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! {
|
||||
@ -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! {
|
||||
|
@ -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 {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2fa85d86e0cbd5fc0c17d1cbcca2005454b86cd4
|
||||
Subproject commit 8085ed733fefeaf37aca0a39da93344326de5d57
|
Loading…
Reference in New Issue
Block a user