2022-10-23 13:18:45 +00:00
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
|
|
|
--> $DIR/from_over_into_unfixable.rs:11:1
|
|
|
|
|
|
|
|
|
LL | impl Into<InMacro> for String {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-05-05 15:45:49 +00:00
|
|
|
= help: replace the `Into` implementation with `From<std::string::String>`
|
2022-10-23 13:18:45 +00:00
|
|
|
= note: `-D clippy::from-over-into` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
|
|
|
--> $DIR/from_over_into_unfixable.rs:19:1
|
|
|
|
|
|
|
|
|
LL | impl Into<WeirdUpperSelf> for &'static [u8] {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-05-05 15:45:49 +00:00
|
|
|
= help: replace the `Into` implementation with `From<&'static [u8]>`
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
|
|
|
--> $DIR/from_over_into_unfixable.rs:28:1
|
|
|
|
|
|
|
|
|
LL | impl Into<u8> for ContainsVal {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
|
|
|
|
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
|
2023-05-05 15:45:49 +00:00
|
|
|
= help: replace the `Into` implementation with `From<ContainsVal>`
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|