fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true 2 --> $DIR/from_over_into.rs:8:1 3 | 4LL | impl Into<StringWrapper> for String { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: `-D clippy::from-over-into` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::from_over_into)]` 9help: replace the `Into` implementation with `From<std::string::String>` 10 | 11LL ~ impl From<String> for StringWrapper { 12LL ~ fn from(val: String) -> Self { 13LL ~ StringWrapper(val) 14 | 15 16error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true 17 --> $DIR/from_over_into.rs:16:1 18 | 19LL | impl Into<SelfType> for String { 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21 | 22help: replace the `Into` implementation with `From<std::string::String>` 23 | 24LL ~ impl From<String> for SelfType { 25LL ~ fn from(val: String) -> Self { 26LL ~ SelfType(String::new()) 27 | 28 29error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true 30 --> $DIR/from_over_into.rs:31:1 31 | 32LL | impl Into<SelfKeywords> for X { 33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 34 | 35help: replace the `Into` implementation with `From<X>` 36 | 37LL ~ impl From<X> for SelfKeywords { 38LL ~ fn from(val: X) -> Self { 39LL ~ let _ = X; 40LL ~ let _ = X::FOO; 41LL ~ let _: X = val; 42 | 43 44error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true 45 --> $DIR/from_over_into.rs:43:1 46 | 47LL | impl core::convert::Into<bool> for crate::ExplicitPaths { 48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 49 | 50 = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see 51 https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence 52help: replace the `Into` implementation with `From<ExplicitPaths>` 53 | 54LL ~ impl core::convert::From<crate::ExplicitPaths> for bool { 55LL ~ fn from(mut val: crate::ExplicitPaths) -> Self { 56LL ~ let in_closure = || val.0; 57LL | 58LL ~ val.0 = false; 59LL ~ val.0 60 | 61 62error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true 63 --> $DIR/from_over_into.rs:63:1 64 | 65LL | impl Into<String> for PathInExpansion { 66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 67 | 68 = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see 69 https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence 70help: replace the `Into` implementation with `From<PathInExpansion>` 71 | 72LL ~ impl From<PathInExpansion> for String { 73LL ~ fn from(val: PathInExpansion) -> Self { 74 | 75 76error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true 77 --> $DIR/from_over_into.rs:85:5 78 | 79LL | impl<T> Into<FromOverInto<T>> for Vec<T> { 80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 81 | 82help: replace the `Into` implementation with `From<std::vec::Vec<T>>` 83 | 84LL ~ impl<T> From<Vec<T>> for FromOverInto<T> { 85LL ~ fn from(val: Vec<T>) -> Self { 86LL ~ FromOverInto(val) 87 | 88 89error: aborting due to 6 previous errors 90