Wrong span used in non_fmt_panic lint for panic!(a!())
#82109
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-papercut
Diagnostics: An error or lint that needs small tweaks.
The
non_fmt_panic
lint points inside the definition ofa
in:Because the argument of
panic!()
is entirelya!()
, we get the span inside ofa
s definition. We should walk up the macro backtrace to find the span ofa!()
itself in this snippet.The text was updated successfully, but these errors were encountered: