2021-10-21 11:11:36 +00:00
|
|
|
error: `to_string` applied to a type that implements `Display` in `format!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:76:72
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | let _ = format!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
= note: `-D clippy::to-string-in-format-args` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `write!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:80:27
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | Location::caller().to_string()
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `writeln!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:85:27
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | Location::caller().to_string()
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `print!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:87:63
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | print!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:88:65
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | println!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `eprint!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:89:64
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | eprint!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `eprintln!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:90:66
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | eprintln!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `format_args!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:91:77
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | let _ = format_args!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `assert!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:92:70
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | assert!(true, "error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `assert_eq!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:93:73
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!(0, 0, "error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `assert_ne!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:94:73
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | assert_ne!(0, 0, "error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `panic!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:95:63
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | panic!("error: something failed at {}", Location::caller().to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:96:20
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", X(1).to_string());
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: use this: `*X(1)`
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:97:20
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", Y(&X(1)).to_string());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: use this: `***Y(&X(1))`
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:98:24
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", Z(1).to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:99:20
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", x.to_string());
|
|
|
|
| ^^^^^^^^^^^^^ help: use this: `**x`
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
2021-11-04 12:52:36 +00:00
|
|
|
--> $DIR/format_args.rs:100:20
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", x_ref.to_string());
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use this: `***x_ref`
|
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
|
|
|
--> $DIR/format_args.rs:102:39
|
|
|
|
|
|
|
|
|
LL | println!("{foo}{bar}", foo = "foo".to_string(), bar = "bar");
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
|
|
|
--> $DIR/format_args.rs:103:52
|
|
|
|
|
|
|
|
|
LL | println!("{foo}{bar}", foo = "foo", bar = "bar".to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
|
|
|
--> $DIR/format_args.rs:104:39
|
|
|
|
|
|
|
|
|
LL | println!("{foo}{bar}", bar = "bar".to_string(), foo = "foo");
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: `to_string` applied to a type that implements `Display` in `println!` args
|
|
|
|
--> $DIR/format_args.rs:105:52
|
|
|
|
|
|
|
|
|
LL | println!("{foo}{bar}", bar = "bar", foo = "foo".to_string());
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
error: aborting due to 21 previous errors
|
2021-10-21 11:11:36 +00:00
|
|
|
|