2 Denies the configured macros in clippy.toml
4 Note: Even though this lint is warn-by-default, it will only trigger if
5 macros are defined in the clippy.toml file.
8 Some macros are undesirable in certain contexts, and it's beneficial to
9 lint for them as needed.
12 An example clippy.toml configuration:
15 # Can use a string as the path of the disallowed macro.
17 # Can also use an inline table with a `path` key.
18 { path = "std::println" },
19 # When using an inline table, can add a `reason` for why the macro
21 { path = "serde::Serialize", reason = "no serializing" },
27 // Example code where clippy issues a warning
30 // The diagnostic will contain the message "no serializing"