We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustc_lint_defs::lint_array
1 parent c01d8d2 commit 6396e9eCopy full SHA for 6396e9e
compiler/rustc_lint_defs/src/lib.rs
@@ -788,10 +788,7 @@ macro_rules! declare_tool_lint {
788
/// Declares a static `LintArray` and return it as an expression.
789
#[macro_export]
790
macro_rules! lint_array {
791
- ($( $lint:expr ),* ,) => { lint_array!( $($lint),* ) };
792
- ($( $lint:expr ),*) => {{
793
- vec![$($lint),*]
794
- }}
+ ($( $lint:expr ),* $(,)?) => { vec![$($lint),*] }
795
}
796
797
pub type LintArray = Vec<&'static Lint>;
0 commit comments