redundant_closure must not expand macro in suggestion #6850
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Lint name: redundant_closure
This is obviously not going to work with
$crate::vec...
The suggestion should just say
Vec::new()
How to fix: find out where the lint generates the snippet and use
snippet_with_macro_callsite
instead of justsnippet
.( this type of bug popped up a couple of times already #6801 (comment)
maybe we should lint for that?)
The text was updated successfully, but these errors were encountered: