You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ICE triggers when compiling clippy with rustc debug assertions.
The problem is probably the macro that is involved and clippy fails to generate good spans for this case. :/
warning: the following explicit lifetimes could be elided: 'a
--> macro-lifetime.rs:4:9
|
4 | fn f<$l>(arg: &$l str) -> &$l str {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
11 | foo!('a);
| -------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
= note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
help: elide the lifetimes
|
4 ~ fn f(arg: &$l str) -> &$l str {
5 | arg
...
10 | pub fn main() {
11 ~ foo!();
|
warning: 1 warning emitted
Summary
This ICE triggers when compiling clippy with rustc debug assertions.
The problem is probably the macro that is involved and clippy fails to generate good spans for this case. :/
without debug assertions, clippy warns like this:
Version
Error output
Backtrace
The text was updated successfully, but these errors were encountered: