mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
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:77: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:87: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:94: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:104: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: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 `Debug` in `impl Debug` will cause infinite recursion
|
|
--> $DIR/recursive_format_impl.rs:186: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:203: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:220: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:237: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
|
|
|