mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
eb3970285b
In order to switch `clippy::uninlined_format_args` from pedantic to style, all existing tests must not raise a warning. I did not want to change the actual tests, so this is a relatively minor change that: * add `#![allow(clippy::uninlined_format_args)]` where needed * normalizes all allow/deny/warn attributes * all allow attributes are grouped together * sorted alphabetically * the `clippy::*` attributes are listed separate from the other ones. * deny and warn attributes are listed before the allowed ones changelog: none
82 lines
3.5 KiB
Text
82 lines
3.5 KiB
Text
error: use of `write!(stdout(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:24:9
|
|
|
|
|
LL | write!(std::io::stdout(), "test").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
|
|
|
|
|
= note: `-D clippy::explicit-write` implied by `-D warnings`
|
|
|
|
error: use of `write!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:25:9
|
|
|
|
|
LL | write!(std::io::stderr(), "test").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
|
|
|
|
error: use of `writeln!(stdout(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:26:9
|
|
|
|
|
LL | writeln!(std::io::stdout(), "test").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test")`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:27:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "test").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test")`
|
|
|
|
error: use of `stdout().write_fmt(...).unwrap()`
|
|
--> $DIR/explicit_write.rs:28:9
|
|
|
|
|
LL | std::io::stdout().write_fmt(format_args!("test")).unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
|
|
|
|
error: use of `stderr().write_fmt(...).unwrap()`
|
|
--> $DIR/explicit_write.rs:29:9
|
|
|
|
|
LL | std::io::stderr().write_fmt(format_args!("test")).unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
|
|
|
|
error: use of `writeln!(stdout(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:32:9
|
|
|
|
|
LL | writeln!(std::io::stdout(), "test/ntest").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test/ntest")`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:33:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "test/ntest").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test/ntest")`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:36:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "with {}", value).unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("with {}", value)`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:37:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "with {} {}", 2, value).unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("with {} {}", 2, value)`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:38:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "with {value}").unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("with {value}")`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:39:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "macro arg {}", one!()).unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("macro arg {}", one!())`
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
|
--> $DIR/explicit_write.rs:41:9
|
|
|
|
|
LL | writeln!(std::io::stderr(), "{:w$}", value, w = width).unwrap();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("{:w$}", value, w = width)`
|
|
|
|
error: aborting due to 13 previous errors
|
|
|