-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redundant_closure triggers for macro #3791
Comments
Huh? Can you provide an example? The rust-clippy/rustc_tools_util/src/lib.rs Lines 4 to 25 in 027dde9
|
matthiaskrgr/cargo-cache@81ffeeb Yeah it was updated to not contain closures but the crates.io version still contains closures. |
Anyway, what I mean is, if we report code imported by macros, these macros could also come from third party crates and issuing a lint warning looks like a false positive since the warning cannot be fixed by modifying the root crate. |
Ah that makes sense. We once had an |
rustc now has a |
…ishearth do not trigger redundant_closure for external macros fixes #3791
I was using the
get_version_info!()
macro and got warnings that the imported code contains redundant closures on places where I used it.https://github.com/rust-lang/rust-clippy/blob/master/rustc_tools_util/src/lib.rs
Can we disable the lint for code imported via macros?
The text was updated successfully, but these errors were encountered: