invalid_macro_export_arguments rustc lint currently can't be "allowed" #110911
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustc lint
invalid_macro_export_arguments
is (supposedly) set towarn
by default (see https://doc.rust-lang.org/nightly/rustc/lints/listing/warn-by-default.html#invalid-macro-export-arguments). Its definition (currently at the bottom of) https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs seems quite standard.The issue: There doesn't seem to be a way to
allow
orforbid
this lint. Either of the following fails with "unknown lint:invalid_macro_export_arguments
":or
I've tried that in a simple library crate, with a macro by example or without one. On
1.71.0-nightly (1c42cb4ef 2023-04-26)
.If this lint is supposed NOT to be allowed/forbidden, or if it's unstable and it needs a feature flag, please document it.
Similarly for
undefined_naked_function_abi
(listed at https://doc.rust-lang.org/nightly/rustc/lints/listing/warn-by-default.html#undefined-naked-function-abi and also defined inbuiltin.rs
),invalid_alignment
(listed at https://doc.rust-lang.org/nightly/rustc/lints/listing/deny-by-default.html#invalid-alignment and also defined inbuiltin.rs
).The text was updated successfully, but these errors were encountered: