unused_unit false positive for macro inputs #4076
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
T-macros
Type: Issues with macros and macro expansion
sample test case:
of course, following the suggestion leads to invalid code.
unused_unit
shouldn't fire for unit expressions that came from a macro argument.The text was updated successfully, but these errors were encountered: