summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/from_over_into_unfixable.stderr
blob: 8ef36f082e0efecf7d0a109a9f32588b59826803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: replace the `Into` implementation with `From<std::string::String>`
   = note: `-D clippy::from-over-into` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::from_over_into)]`

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:20:1
   |
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
  --> $DIR/from_over_into_unfixable.rs:30: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
   = help: replace the `Into` implementation with `From<ContainsVal>`

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:42:1
   |
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