unused_async
doesn't work if an async fn without await has attribute
#13199
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
I wrote a
proc_macro_attribute
, only added some trace to the code block, and theunused_async
doesn't work anymore.I tried to work around it in dylint, copied the code of
unused_async
.If I remove condition
!span.from_expansion()
and usecall_site
for macro span, it worked.Is there anything more should be considered for macros that I don't know?
Lint Name
unused_async
Reproducer
Attribute:
Fn:
Version
The text was updated successfully, but these errors were encountered: