![]() Detect fake spans in non_fmt_panic lint. This addresses https://github.com/rust-lang/rust/issues/87621 Some proc_macros claim that the user wrote all of the tokens it outputs, by applying a span from the input to all of the produced tokens. That can result in confusing suggestions, as in #87621. This is a simple patch that avoids suggesting anything for `panic!("{}")` if the span of `"{}"` and `panic!(..)` are identical, which is normally not possible. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |