mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Make new information notes instead of labels
This commit is contained in:
parent
ca94dd5bea
commit
b89c6204da
@ -351,14 +351,14 @@ hir_analysis_only_current_traits_arbitrary = only traits defined in the current
|
|||||||
|
|
||||||
hir_analysis_only_current_traits_foreign = this is not defined in the current crate because this is a foreign trait
|
hir_analysis_only_current_traits_foreign = this is not defined in the current crate because this is a foreign trait
|
||||||
|
|
||||||
hir_analysis_only_current_traits_label = impl doesn't have any local type before any uncovered type parameters
|
|
||||||
|
|
||||||
hir_analysis_only_current_traits_label_more_info = for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
||||||
hir_analysis_only_current_traits_name = this is not defined in the current crate because {$name} are always foreign
|
hir_analysis_only_current_traits_name = this is not defined in the current crate because {$name} are always foreign
|
||||||
|
|
||||||
hir_analysis_only_current_traits_note = define and implement a trait or new type instead
|
hir_analysis_only_current_traits_note = define and implement a trait or new type instead
|
||||||
|
|
||||||
|
hir_analysis_only_current_traits_note_more_info = for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
|
|
||||||
|
hir_analysis_only_current_traits_note_uncovered = impl doesn't have any local type before any uncovered type parameters
|
||||||
|
|
||||||
hir_analysis_only_current_traits_opaque = type alias impl trait is treated as if it were foreign, because its hidden type could be from a foreign crate
|
hir_analysis_only_current_traits_opaque = type alias impl trait is treated as if it were foreign, because its hidden type could be from a foreign crate
|
||||||
|
|
||||||
hir_analysis_only_current_traits_outside = only traits defined in the current crate can be implemented for types defined outside of the crate
|
hir_analysis_only_current_traits_outside = only traits defined in the current crate can be implemented for types defined outside of the crate
|
||||||
|
@ -1440,27 +1440,27 @@ pub enum OnlyCurrentTraits {
|
|||||||
#[diag(hir_analysis_only_current_traits_outside, code = E0117)]
|
#[diag(hir_analysis_only_current_traits_outside, code = E0117)]
|
||||||
Outside {
|
Outside {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
#[label(hir_analysis_only_current_traits_label)]
|
|
||||||
#[label(hir_analysis_only_current_traits_label_more_info)]
|
|
||||||
span: Span,
|
span: Span,
|
||||||
|
#[note(hir_analysis_only_current_traits_note_uncovered)]
|
||||||
|
#[note(hir_analysis_only_current_traits_note_more_info)]
|
||||||
#[note(hir_analysis_only_current_traits_note)]
|
#[note(hir_analysis_only_current_traits_note)]
|
||||||
note: (),
|
note: (),
|
||||||
},
|
},
|
||||||
#[diag(hir_analysis_only_current_traits_primitive, code = E0117)]
|
#[diag(hir_analysis_only_current_traits_primitive, code = E0117)]
|
||||||
Primitive {
|
Primitive {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
#[label(hir_analysis_only_current_traits_label)]
|
|
||||||
#[label(hir_analysis_only_current_traits_label_more_info)]
|
|
||||||
span: Span,
|
span: Span,
|
||||||
|
#[note(hir_analysis_only_current_traits_note_uncovered)]
|
||||||
|
#[note(hir_analysis_only_current_traits_note_more_info)]
|
||||||
#[note(hir_analysis_only_current_traits_note)]
|
#[note(hir_analysis_only_current_traits_note)]
|
||||||
note: (),
|
note: (),
|
||||||
},
|
},
|
||||||
#[diag(hir_analysis_only_current_traits_arbitrary, code = E0117)]
|
#[diag(hir_analysis_only_current_traits_arbitrary, code = E0117)]
|
||||||
Arbitrary {
|
Arbitrary {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
#[label(hir_analysis_only_current_traits_label)]
|
|
||||||
#[label(hir_analysis_only_current_traits_label_more_info)]
|
|
||||||
span: Span,
|
span: Span,
|
||||||
|
#[note(hir_analysis_only_current_traits_note_uncovered)]
|
||||||
|
#[note(hir_analysis_only_current_traits_note_more_info)]
|
||||||
#[note(hir_analysis_only_current_traits_note)]
|
#[note(hir_analysis_only_current_traits_note)]
|
||||||
note: (),
|
note: (),
|
||||||
},
|
},
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote for Pair<T,Cover<T>> { }
|
LL | impl<T> Remote for Pair<T,Cover<T>> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | `Pair` is not defined in the current crate
|
| `Pair` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote for Pair<Cover<T>,T> { }
|
LL | impl<T> Remote for Pair<Cover<T>,T> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | `Pair` is not defined in the current crate
|
| `Pair` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T,U> Remote for Pair<Cover<T>,U> { }
|
LL | impl<T,U> Remote for Pair<Cover<T>,U> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | `Pair` is not defined in the current crate
|
| `Pair` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Misc for dyn Fundamental<Local> {}
|
LL | impl Misc for dyn Fundamental<Local> {}
|
||||||
| ^^^^^^^^^^^^^^----------------------
|
| ^^^^^^^^^^^^^^----------------------
|
||||||
| | |
|
| |
|
||||||
| | `dyn Fundamental<Local>` is not defined in the current crate
|
| `dyn Fundamental<Local>` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -39,11 +39,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl !Send for dyn Marker2 {}
|
LL | impl !Send for dyn Marker2 {}
|
||||||
| ^^^^^^^^^^^^^^^-----------
|
| ^^^^^^^^^^^^^^^-----------
|
||||||
| | |
|
| |
|
||||||
| | `dyn Marker2` is not defined in the current crate
|
| `dyn Marker2` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
|
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
|
||||||
|
@ -39,11 +39,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | unsafe impl Send for dyn Marker2 {}
|
LL | unsafe impl Send for dyn Marker2 {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^-----------
|
| ^^^^^^^^^^^^^^^^^^^^^-----------
|
||||||
| | |
|
| |
|
||||||
| | `dyn Marker2` is not defined in the current crate
|
| `dyn Marker2` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
|
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
|
||||||
|
@ -13,11 +13,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Copy for &'static [NotSync] {}
|
LL | impl Copy for &'static [NotSync] {}
|
||||||
| ^^^^^^^^^^^^^^------------------
|
| ^^^^^^^^^^^^^^------------------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because slices are always foreign
|
| this is not defined in the current crate because slices are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
||||||
@ -25,11 +25,11 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Copy for i32 {}
|
LL | impl Copy for i32 {}
|
||||||
| ^^^^^^^^^^^^^^---
|
| ^^^^^^^^^^^^^^---
|
||||||
| | |
|
| |
|
||||||
| | `i32` is not defined in the current crate
|
| `i32` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0206]: the trait `Copy` cannot be implemented for this type
|
error[E0206]: the trait `Copy` cannot be implemented for this type
|
||||||
@ -43,11 +43,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Copy for (MyType, MyType) {}
|
LL | impl Copy for (MyType, MyType) {}
|
||||||
| ^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0206]: the trait `Copy` cannot be implemented for this type
|
error[E0206]: the trait `Copy` cannot be implemented for this type
|
||||||
@ -61,11 +61,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Copy for [MyType] {}
|
LL | impl Copy for [MyType] {}
|
||||||
| ^^^^^^^^^^^^^^--------
|
| ^^^^^^^^^^^^^^--------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because slices are always foreign
|
| this is not defined in the current crate because slices are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0206]: the trait `Copy` cannot be implemented for this type
|
error[E0206]: the trait `Copy` cannot be implemented for this type
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | unsafe impl Send for &'static [NotSync] {}
|
LL | unsafe impl Send for &'static [NotSync] {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^------------------
|
| ^^^^^^^^^^^^^^^^^^^^^------------------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because slices are always foreign
|
| this is not defined in the current crate because slices are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||||
@ -15,11 +15,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | unsafe impl Send for (MyType, MyType) {}
|
LL | unsafe impl Send for (MyType, MyType) {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `&'static NotSync`
|
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `&'static NotSync`
|
||||||
@ -33,11 +33,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | unsafe impl Send for [MyType] {}
|
LL | unsafe impl Send for [MyType] {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^--------
|
| ^^^^^^^^^^^^^^^^^^^^^--------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because slices are always foreign
|
| this is not defined in the current crate because slices are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
error: aborting due to 4 previous errors
|
||||||
|
@ -21,11 +21,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Sized for (MyType, MyType) {}
|
LL | impl Sized for (MyType, MyType) {}
|
||||||
| ^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0322]: explicit impls for the `Sized` trait are not permitted
|
error[E0322]: explicit impls for the `Sized` trait are not permitted
|
||||||
@ -45,11 +45,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Sized for [MyType] {}
|
LL | impl Sized for [MyType] {}
|
||||||
| ^^^^^^^^^^^^^^^--------
|
| ^^^^^^^^^^^^^^^--------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because slices are always foreign
|
| this is not defined in the current crate because slices are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0322]: explicit impls for the `Sized` trait are not permitted
|
error[E0322]: explicit impls for the `Sized` trait are not permitted
|
||||||
@ -63,11 +63,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Sized for &'static [NotSync] {}
|
LL | impl Sized for &'static [NotSync] {}
|
||||||
| ^^^^^^^^^^^^^^^------------------
|
| ^^^^^^^^^^^^^^^------------------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because slices are always foreign
|
| this is not defined in the current crate because slices are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 9 previous errors
|
error: aborting due to 9 previous errors
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl !Copy for str {}
|
LL | impl !Copy for str {}
|
||||||
| ^^^^^^^^^^^^^^^---
|
| ^^^^^^^^^^^^^^^---
|
||||||
| | |
|
| |
|
||||||
| | `str` is not defined in the current crate
|
| `str` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||||
@ -15,11 +15,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl !Copy for fn() {}
|
LL | impl !Copy for fn() {}
|
||||||
| ^^^^^^^^^^^^^^^----
|
| ^^^^^^^^^^^^^^^----
|
||||||
| | |
|
| |
|
||||||
| | `fn()` is not defined in the current crate
|
| `fn()` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||||
@ -27,11 +27,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl !Copy for () {}
|
LL | impl !Copy for () {}
|
||||||
| ^^^^^^^^^^^^^^^--
|
| ^^^^^^^^^^^^^^^--
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
@ -3,12 +3,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl TheTrait<usize> for isize {}
|
LL | impl TheTrait<usize> for isize {}
|
||||||
| ^^^^^---------------^^^^^-----
|
| ^^^^^---------------^^^^^-----
|
||||||
| | | |
|
| | |
|
||||||
| | | `isize` is not defined in the current crate
|
| | `isize` is not defined in the current crate
|
||||||
| | `usize` is not defined in the current crate
|
| `usize` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
|
error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
|
||||||
@ -16,11 +16,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl !Send for Vec<isize> {}
|
LL | impl !Send for Vec<isize> {}
|
||||||
| ^^^^^^^^^^^^^^^----------
|
| ^^^^^^^^^^^^^^^----------
|
||||||
| | |
|
| |
|
||||||
| | `Vec` is not defined in the current crate
|
| `Vec` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote for lib::Pair<T,Foo> { }
|
LL | impl<T> Remote for lib::Pair<T,Foo> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | `Pair` is not defined in the current crate
|
| `Pair` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,12 +3,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl<T, U> Remote1<Pair<T, Local<U>>> for i32 { }
|
LL | impl<T, U> Remote1<Pair<T, Local<U>>> for i32 { }
|
||||||
| ^^^^^^^^^^^--------------------------^^^^^---
|
| ^^^^^^^^^^^--------------------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `i32` is not defined in the current crate
|
| | `i32` is not defined in the current crate
|
||||||
| | `Pair` is not defined in the current crate
|
| `Pair` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T,U> Remote for Pair<T,Local<U>> { }
|
LL | impl<T,U> Remote for Pair<T,Local<U>> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
||||||
| | |
|
| |
|
||||||
| | `Pair` is not defined in the current crate
|
| `Pair` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote for Vec<Local<T>> { }
|
LL | impl<T> Remote for Vec<Local<T>> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^-------------
|
| ^^^^^^^^^^^^^^^^^^^-------------
|
||||||
| | |
|
| |
|
||||||
| | `Vec` is not defined in the current crate
|
| `Vec` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl Remote for Vec<Local> { }
|
LL | impl Remote for Vec<Local> { }
|
||||||
| ^^^^^^^^^^^^^^^^----------
|
| ^^^^^^^^^^^^^^^^----------
|
||||||
| | |
|
| |
|
||||||
| | `Vec` is not defined in the current crate
|
| `Vec` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl lib::MyCopy for lib::MyStruct<MyType> { }
|
LL | impl lib::MyCopy for lib::MyStruct<MyType> { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^---------------------
|
| ^^^^^^^^^^^^^^^^^^^^^---------------------
|
||||||
| | |
|
| |
|
||||||
| | `MyStruct` is not defined in the current crate
|
| `MyStruct` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl lib::MyCopy for (MyType,) { }
|
LL | impl lib::MyCopy for (MyType,) { }
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^---------
|
| ^^^^^^^^^^^^^^^^^^^^^---------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Remote for i32 {
|
LL | impl Remote for i32 {
|
||||||
| ^^^^^^^^^^^^^^^^---
|
| ^^^^^^^^^^^^^^^^---
|
||||||
| | |
|
| |
|
||||||
| | `i32` is not defined in the current crate
|
| `i32` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,12 +3,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Remote1<Rc<i32>> for i32 {
|
LL | impl Remote1<Rc<i32>> for i32 {
|
||||||
| ^^^^^----------------^^^^^---
|
| ^^^^^----------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `i32` is not defined in the current crate
|
| | `i32` is not defined in the current crate
|
||||||
| | `Rc` is not defined in the current crate
|
| `Rc` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
||||||
@ -16,12 +16,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Remote1<Rc<Local>> for f64 {
|
LL | impl Remote1<Rc<Local>> for f64 {
|
||||||
| ^^^^^------------------^^^^^---
|
| ^^^^^------------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `f64` is not defined in the current crate
|
| | `f64` is not defined in the current crate
|
||||||
| | `Rc` is not defined in the current crate
|
| `Rc` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
||||||
@ -29,12 +29,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote1<Rc<T>> for f32 {
|
LL | impl<T> Remote1<Rc<T>> for f32 {
|
||||||
| ^^^^^^^^--------------^^^^^---
|
| ^^^^^^^^--------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `f32` is not defined in the current crate
|
| | `f32` is not defined in the current crate
|
||||||
| | `Rc` is not defined in the current crate
|
| `Rc` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
@ -3,12 +3,12 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl Remote for Box<i32> {
|
LL | impl Remote for Box<i32> {
|
||||||
| ^^^^^------^^^^^--------
|
| ^^^^^------^^^^^--------
|
||||||
| | | |
|
| | |
|
||||||
| | | `i32` is not defined in the current crate
|
| | `i32` is not defined in the current crate
|
||||||
| | `std::alloc::Global` is not defined in the current crate
|
| `std::alloc::Global` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
|
error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
|
||||||
@ -16,12 +16,12 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote for Box<Rc<T>> {
|
LL | impl<T> Remote for Box<Rc<T>> {
|
||||||
| ^^^^^^^^------^^^^^----------
|
| ^^^^^^^^------^^^^^----------
|
||||||
| | | |
|
| | |
|
||||||
| | | `Rc` is not defined in the current crate
|
| | `Rc` is not defined in the current crate
|
||||||
| | `std::alloc::Global` is not defined in the current crate
|
| `std::alloc::Global` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
@ -3,12 +3,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Remote1<u32> for f64 {
|
LL | impl Remote1<u32> for f64 {
|
||||||
| ^^^^^------------^^^^^---
|
| ^^^^^------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `f64` is not defined in the current crate
|
| | `f64` is not defined in the current crate
|
||||||
| | `u32` is not defined in the current crate
|
| `u32` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,13 +3,13 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Remote1<Box<String>> for i32 {
|
LL | impl Remote1<Box<String>> for i32 {
|
||||||
| ^^^^^--------------------^^^^^---
|
| ^^^^^--------------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `i32` is not defined in the current crate
|
| | `i32` is not defined in the current crate
|
||||||
| | `String` is not defined in the current crate
|
| `String` is not defined in the current crate
|
||||||
| | `std::alloc::Global` is not defined in the current crate
|
| `std::alloc::Global` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
||||||
@ -17,13 +17,13 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Remote1<Box<Rc<i32>>> for f64 {
|
LL | impl Remote1<Box<Rc<i32>>> for f64 {
|
||||||
| ^^^^^---------------------^^^^^---
|
| ^^^^^---------------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `f64` is not defined in the current crate
|
| | `f64` is not defined in the current crate
|
||||||
| | `Rc` is not defined in the current crate
|
| `Rc` is not defined in the current crate
|
||||||
| | `std::alloc::Global` is not defined in the current crate
|
| `std::alloc::Global` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
||||||
@ -31,13 +31,13 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote1<Box<Rc<T>>> for f32 {
|
LL | impl<T> Remote1<Box<Rc<T>>> for f32 {
|
||||||
| ^^^^^^^^-------------------^^^^^---
|
| ^^^^^^^^-------------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `f32` is not defined in the current crate
|
| | `f32` is not defined in the current crate
|
||||||
| | `Rc` is not defined in the current crate
|
| `Rc` is not defined in the current crate
|
||||||
| | `std::alloc::Global` is not defined in the current crate
|
| `std::alloc::Global` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl Remote for Rc<Local> {
|
LL | impl Remote for Rc<Local> {
|
||||||
| ^^^^^^^^^^^^^^^^---------
|
| ^^^^^^^^^^^^^^^^---------
|
||||||
| | |
|
| |
|
||||||
| | `Rc` is not defined in the current crate
|
| `Rc` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
|
error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
|
||||||
@ -15,11 +15,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl<T> Remote for Arc<T> {
|
LL | impl<T> Remote for Arc<T> {
|
||||||
| ^^^^^^^^^^^^^^^^^^^------
|
| ^^^^^^^^^^^^^^^^^^^------
|
||||||
| | |
|
| |
|
||||||
| | `Arc` is not defined in the current crate
|
| `Arc` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
@ -9,11 +9,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl<'a> Drop for &'a mut isize {
|
LL | impl<'a> Drop for &'a mut isize {
|
||||||
| ^^^^^^^^^^^^^^^^^^-------------
|
| ^^^^^^^^^^^^^^^^^^-------------
|
||||||
| | |
|
| |
|
||||||
| | `isize` is not defined in the current crate
|
| `isize` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
|
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl Drop for u32 {}
|
LL | impl Drop for u32 {}
|
||||||
| ^^^^^^^^^^^^^^---
|
| ^^^^^^^^^^^^^^---
|
||||||
| | |
|
| |
|
||||||
| | `u32` is not defined in the current crate
|
| `u32` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
|
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl<R> External for (Q, R) {}
|
LL | impl<R> External for (Q, R) {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^------
|
| ^^^^^^^^^^^^^^^^^^^^^------
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl fmt::Display for *mut LocalType {
|
LL | impl fmt::Display for *mut LocalType {
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^--------------
|
| ^^^^^^^^^^^^^^^^^^^^^^--------------
|
||||||
| | |
|
| |
|
||||||
| | `*mut LocalType` is not defined in the current crate because raw pointers are always foreign
|
| `*mut LocalType` is not defined in the current crate because raw pointers are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
help: consider introducing a new wrapper type
|
help: consider introducing a new wrapper type
|
||||||
|
|
|
|
||||||
@ -21,11 +21,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl<T> marker::Copy for *mut T {
|
LL | impl<T> marker::Copy for *mut T {
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^------
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^------
|
||||||
| | |
|
| |
|
||||||
| | `*mut T` is not defined in the current crate because raw pointers are always foreign
|
| `*mut T` is not defined in the current crate because raw pointers are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
@ -3,12 +3,12 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl std::ops::AddAssign for () {
|
LL | impl std::ops::AddAssign for () {
|
||||||
| ^^^^^-------------------^^^^^--
|
| ^^^^^-------------------^^^^^--
|
||||||
| | | |
|
| | |
|
||||||
| | | this is not defined in the current crate because tuples are always foreign
|
| | this is not defined in the current crate because tuples are always foreign
|
||||||
| | this is not defined in the current crate because this is a foreign trait
|
| this is not defined in the current crate because this is a foreign trait
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||||
@ -16,12 +16,12 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl std::ops::AddAssign for [(); 1] {
|
LL | impl std::ops::AddAssign for [(); 1] {
|
||||||
| ^^^^^-------------------^^^^^-------
|
| ^^^^^-------------------^^^^^-------
|
||||||
| | | |
|
| | |
|
||||||
| | | this is not defined in the current crate because arrays are always foreign
|
| | this is not defined in the current crate because arrays are always foreign
|
||||||
| | this is not defined in the current crate because this is a foreign trait
|
| this is not defined in the current crate because this is a foreign trait
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||||
@ -29,12 +29,12 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl std::ops::AddAssign for &[u8] {
|
LL | impl std::ops::AddAssign for &[u8] {
|
||||||
| ^^^^^-------------------^^^^^-----
|
| ^^^^^-------------------^^^^^-----
|
||||||
| | | |
|
| | |
|
||||||
| | | this is not defined in the current crate because slices are always foreign
|
| | this is not defined in the current crate because slices are always foreign
|
||||||
| | this is not defined in the current crate because this is a foreign trait
|
| this is not defined in the current crate because this is a foreign trait
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
@ -30,12 +30,12 @@ error[E0117]: only traits defined in the current crate can be implemented for pr
|
|||||||
|
|
|
|
||||||
LL | impl const std::ops::Add for i32 {
|
LL | impl const std::ops::Add for i32 {
|
||||||
| ^^^^^^^^^^^-------------^^^^^---
|
| ^^^^^^^^^^^-------------^^^^^---
|
||||||
| | | |
|
| | |
|
||||||
| | | `i32` is not defined in the current crate
|
| | `i32` is not defined in the current crate
|
||||||
| | `i32` is not defined in the current crate
|
| `i32` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
error: aborting due to 4 previous errors
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl foreign_crate::ForeignTrait for AliasOfForeignType<()> {}
|
LL | impl foreign_crate::ForeignTrait for AliasOfForeignType<()> {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------
|
||||||
| | |
|
| |
|
||||||
| | type alias impl trait is treated as if it were foreign, because its hidden type could be from a foreign crate
|
| type alias impl trait is treated as if it were foreign, because its hidden type could be from a foreign crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl foreign_crate::ForeignTrait for AliasOfForeignType<()> {}
|
LL | impl foreign_crate::ForeignTrait for AliasOfForeignType<()> {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------
|
||||||
| | |
|
| |
|
||||||
| | `AliasOfForeignType<()>` is not defined in the current crate
|
| `AliasOfForeignType<()>` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl Eq for Y {}
|
LL | impl Eq for Y {}
|
||||||
| ^^^^^^^^^^^^-
|
| ^^^^^^^^^^^^-
|
||||||
| | |
|
| |
|
||||||
| | `(u32) is 1..=` is not defined in the current crate
|
| `(u32) is 1..=` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
@ -3,11 +3,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl DefaultedTrait for (A,) {}
|
LL | impl DefaultedTrait for (A,) {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^----
|
| ^^^^^^^^^^^^^^^^^^^^^^^^----
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||||
@ -15,11 +15,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
|||||||
|
|
|
|
||||||
LL | impl !DefaultedTrait for (B,) {}
|
LL | impl !DefaultedTrait for (B,) {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^----
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^----
|
||||||
| | |
|
| |
|
||||||
| | this is not defined in the current crate because tuples are always foreign
|
| this is not defined in the current crate because tuples are always foreign
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error[E0321]: cross-crate traits with a default impl, like `DefaultedTrait`, can only be implemented for a struct/enum type defined in the current crate
|
error[E0321]: cross-crate traits with a default impl, like `DefaultedTrait`, can only be implemented for a struct/enum type defined in the current crate
|
||||||
@ -33,11 +33,11 @@ error[E0117]: only traits defined in the current crate can be implemented for ty
|
|||||||
|
|
|
|
||||||
LL | impl DefaultedTrait for lib::Something<C> {}
|
LL | impl DefaultedTrait for lib::Something<C> {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^-----------------
|
| ^^^^^^^^^^^^^^^^^^^^^^^^-----------------
|
||||||
| | |
|
| |
|
||||||
| | `Something` is not defined in the current crate
|
| `Something` is not defined in the current crate
|
||||||
| impl doesn't have any local type before any uncovered type parameters
|
|
||||||
| for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
|
||||||
|
|
|
|
||||||
|
= note: impl doesn't have any local type before any uncovered type parameters
|
||||||
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
error: aborting due to 4 previous errors
|
||||||
|
Loading…
Reference in New Issue
Block a user