Skip to content

New Lint: disallowed_macro #7790

Closed
@JamesHinshelwood

Description

@JamesHinshelwood

What it does

Disallows certain macros, as defined in clippy.toml.
Equivalent to the disallowed_method lint, but for macros instead of methods.

Drawbacks

It may be cleaner to add support for macros to the existing disallowed_method lint.

Example

# clippy.toml

disallowed-macros = ["eyre::anyhow"]
...
let f = eyre::anyhow!("foobar");
...

results in a lint.

Metadata

Metadata

Assignees

Labels

A-lintArea: New lints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions