Skip to content

invalid_macro_export_arguments rustc lint currently can't be "allowed" #110911

Closed
@peter-lyons-kehl

Description

@peter-lyons-kehl

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

Metadata

Metadata

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions