2023-06-18 22:10:07 +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
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
2023-06-18 22:10:07 +00:00
|
|
|
LL | impl Into<InMacro> for String {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
2023-06-18 22:10:07 +00:00
|
|
|
= help: replace the `Into` implementation with `From<std::string::String>`
|
|
|
|
= note: `-D clippy::from-over-into` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::from_over_into)]`
|
2022-10-23 13:18:45 +00:00
|
|
|
|
2023-06-18 22:10:07 +00:00
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/from_over_into_unfixable.rs:20:1
|
2023-06-18 22:10:07 +00:00
|
|
|
|
|
|
|
|
LL | impl Into<WeirdUpperSelf> for &'static [u8] {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: replace the `Into` implementation with `From<&'static [u8]>`
|
|
|
|
|
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/from_over_into_unfixable.rs:30:1
|
2023-06-18 22:10:07 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
= help: replace the `Into` implementation with `From<ContainsVal>`
|
|
|
|
|
2023-07-02 12:35:19 +00:00
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/from_over_into_unfixable.rs:42:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | impl<T> Into<Rval<Self>> for Lval<T> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: replace the `Into` implementation with `From<Lval<T>>`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2022-10-23 13:18:45 +00:00
|
|
|
|