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.2 KiB
Text
82 lines
3.2 KiB
Text
error: using `self.to_string` in `fmt::Display` implementation will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:31:25
|
|
|
|
|
LL | write!(f, "{}", self.to_string())
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::recursive-format-impl` implied by `-D warnings`
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:75:9
|
|
|
|
|
LL | write!(f, "{}", self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:84:9
|
|
|
|
|
LL | write!(f, "{}", &self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Debug` in `impl Debug` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:90:9
|
|
|
|
|
LL | write!(f, "{:?}", &self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:99:9
|
|
|
|
|
LL | write!(f, "{}", &&&self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:173:9
|
|
|
|
|
LL | write!(f, "{}", &*self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Debug` in `impl Debug` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:179:9
|
|
|
|
|
LL | write!(f, "{:?}", &*self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:195:9
|
|
|
|
|
LL | write!(f, "{}", *self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:211:9
|
|
|
|
|
LL | write!(f, "{}", **&&*self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: using `self` as `Display` in `impl Display` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:227:9
|
|
|
|
|
LL | write!(f, "{}", &&**&&*self)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 10 previous errors
|
|
|