-
Couldn't load subscription status.
- Fork 13.9k
Description
rustc lint invalid_macro_export_arguments is (supposedly) set to warn 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 or forbid this lint. Either of the following fails with "unknown lint: invalid_macro_export_arguments":
#![deny(unknown_lints)]
#![forbid(invalid_macro_export_arguments)]or
#![forbid(unknown_lints)]
#![allow(invalid_macro_export_arguments)]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).