Replies: 1 comment 1 reply
|
fwiw, I tried to repro this with For the actual question: I don't think there's a user-side “ignore all macro-generated code” switch. Clippy tries to avoid macro expansions where it can, but proc-macro spans can make that messy. The narrow unblock is to allow just this lint: cargo clippy -- -D clippy::pedantic -A clippy::format_push_stringor in [lints.clippy]
pedantic = "deny"
format_push_string = "allow"If you want to keep that lint for handwritten code, then yeah, you'd probably need a tiny repro with your exact |
Uh oh!
There was an error while loading. Please reload this page.
Clippy is giving me this:
and that's great and all, except I have no direct control over the code generated and would like clippy to ignore it (and all macro-generated code, really) without having to stick
#[allow()]s on things for code I didn't write1. How do I do that?Footnotes
Which is assuming I can even do that; sometimes the
#[allow()]would need to be placed somewhere I can't even "reach" from the code before it's been processed. ↩All reactions