This lint was downgraded to `pedantic` in part because rust-analyzer was not fully supporting it at the time per #10087. The support has been added over [a year ago](https://github.com/rust-lang/rust-analyzer/issues/11260), so seems like this should be back to style. Another source of the initial frustration was fixed since then as well - this lint does not trigger by default in case only some arguments can be inlined.
9 lines
259 B
Rust
9 lines
259 B
Rust
//@compile-flags: -C incremental=target/debug/test/incr
|
|
#![allow(clippy::uninlined_format_args)]
|
|
// see https://github.com/rust-lang/rust-clippy/issues/10969
|
|
|
|
fn main() {
|
|
let s = "Hello, world!";
|
|
println!("{}", s);
|
|
//~^ to_string_in_format_args
|
|
}
|