Closed
Description
I was trying to use deny(elided_lifetime_in_path)
and encountered the problem that this doesn't work:
#![feature(nll)]
#![deny(elided_lifetime_in_path)]
fn main() {
format!("foo {}", 22)
}
I get
error: hidden lifetime parameters are deprecated, try `Foo<'_>`
--> src/main.rs:5:5
|
5 | format!("foo {}", 22)
| ^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> src/main.rs:2:9
|
2 | #![deny(elided_lifetime_in_path)]
| ^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
I suppose the easiest fix is to fix the format!
expansion, but maybe better to suppress this warning for macros outside of the current crate? Feels like a more general problem.