Delete to_string_in_format_args_incremental.rs

It fails CI and passes locally. It passes random directores in
`-Cincremental` so maybe something's up. It shouldn't block us here.
This commit is contained in:
Nilstrieb 2023-07-08 17:17:40 +02:00
parent c80333edfb
commit d8c29b82c9
2 changed files with 0 additions and 19 deletions

View File

@ -1,9 +0,0 @@
//@run-rustfix
//@compile-flags: -C incremental=target/debug/test/incr
// see https://github.com/rust-lang/rust-clippy/issues/10969
fn main() {
let s = "Hello, world!";
println!("{}", s.to_string());
}

View File

@ -1,10 +0,0 @@
error: `to_string` applied to a type that implements `Display` in `println!` args
--> $DIR/to_string_in_format_args_incremental.rs:8:21
|
LL | println!("{}", s.to_string());
| ^^^^^^^^^^^^ help: remove this
|
= note: `-D clippy::to-string-in-format-args` implied by `-D warnings`
error: aborting due to previous error