]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/from_over_into_unfixable.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / from_over_into_unfixable.stderr
1 error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
2 --> $DIR/from_over_into_unfixable.rs:11:1
3 |
4 LL | impl Into<InMacro> for String {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = help: replace the `Into` implementation with `From<std::string::String>`
8 = note: `-D clippy::from-over-into` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::from_over_into)]`
10
11 error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
12 --> $DIR/from_over_into_unfixable.rs:20:1
13 |
14 LL | impl Into<WeirdUpperSelf> for &'static [u8] {
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 |
17 = help: replace the `Into` implementation with `From<&'static [u8]>`
18
19 error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
20 --> $DIR/from_over_into_unfixable.rs:30:1
21 |
22 LL | impl Into<u8> for ContainsVal {
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 |
25 = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
26 https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
27 = help: replace the `Into` implementation with `From<ContainsVal>`
28
29 error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
30 --> $DIR/from_over_into_unfixable.rs:42:1
31 |
32 LL | impl<T> Into<Rval<Self>> for Lval<T> {
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 |
35 = help: replace the `Into` implementation with `From<Lval<T>>`
36
37 error: aborting due to 4 previous errors
38