Home
last modified time | relevance | path

Searched refs:DispatchFromDyn (Results 1 – 25 of 25) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_error_codes/src/error_codes/
H A DE0378.md1 The `DispatchFromDyn` trait was implemented on something which is not a pointer
8 use std::ops::DispatchFromDyn;
15 impl<T, U> DispatchFromDyn<WrapperExtraField<U>> for WrapperExtraField<T>
17 T: DispatchFromDyn<U>,
21 The `DispatchFromDyn` trait currently can only be implemented for
24 and that field must itself implement `DispatchFromDyn`.
30 ops::DispatchFromDyn,
35 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Ptr<U>> for Ptr<T>
46 ops::DispatchFromDyn,
55 impl<T, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T>
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/never_type/
H A Ddispatch_from_dyn_zst.rs8 ops::DispatchFromDyn,
17 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<WithUnit<U>> for WithUnit<T> impl
21 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<WithPhantom<U>> for WithPhantom<T> impl
25 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<WithNever<U>> for WithNever<T> impl
29 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<WithZst<U>> for WithZst<T> impl
33 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<WithNestedZst<U>> for WithNestedZst<T> impl
38 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Generic<U, ()>> for Generic<T, ()> impl
40 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Generic<U, PhantomData<()>>> impl
43 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Generic<U, !>> for Generic<T, !> impl
45 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Generic<U, Zst>> for Generic<T, Zst> impl
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/
H A Dinvalid_dispatch_from_dyn_impls.stderr1 error[E0378]: the trait `DispatchFromDyn` may only be implemented for structs containing the field …
4 LL | / impl<T, U> DispatchFromDyn<WrapperWithExtraField<U>> for WrapperWithExtraField<T>
6 LL | | T: DispatchFromDyn<U>,
12 error[E0378]: implementing the `DispatchFromDyn` trait requires multiple coercions
15 LL | / impl<T: ?Sized, U: ?Sized> DispatchFromDyn<MultiplePointers<U>> for MultiplePointers<T>
21 …= note: the trait `DispatchFromDyn` may only be implemented for a coercion between structures with…
24 error[E0378]: the trait `DispatchFromDyn` may only be implemented for a coercion between structures…
27 LL | impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NothingToCoerce<T>> for NothingToCoerce<U> {}
30 error[E0378]: structs implementing `DispatchFromDyn` may not have `#[repr(packed)]` or `#[repr(C)]`
33 LL | / impl<T: ?Sized, U: ?Sized> DispatchFromDyn<HasReprC<U>> for HasReprC<T>
[all …]
H A Dinvalid_dispatch_from_dyn_impls.rs4 ops::DispatchFromDyn,
10 impl<T, U> DispatchFromDyn<WrapperWithExtraField<U>> for WrapperWithExtraField<T> impl
12 T: DispatchFromDyn<U>,
21 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<MultiplePointers<U>> for MultiplePointers<T> impl
31 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NothingToCoerce<T>> for NothingToCoerce<U> {} impl
37 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<HasReprC<U>> for HasReprC<T> impl
46 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<OverAligned<U>> for OverAligned<T> impl
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/traits/
H A Dissue-78372.stderr15 LL | impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {}
22 LL | impl<T> DispatchFromDyn<Smaht<T, MISC>> for T {}
26 LL | impl<T, U> DispatchFromDyn<Smaht<U, MISC>> for T {}
32 LL | impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {}
40 LL | use std::ops::DispatchFromDyn;
48 LL | impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {}
56 LL | impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {}
62 error[E0378]: the trait `DispatchFromDyn` may only be implemented for a coercion between structures
65 LL | impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {}
H A Dissue-78372.rs1 use std::ops::DispatchFromDyn; //~ ERROR use of unstable library feature 'dispatch_from_dyn'
3 impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {} //~ ERROR cannot find type `U` in this scope impl
/dports/lang/rust/rustc-1.58.1-src/library/core/src/ops/
H A Dunsize.rs86 pub trait DispatchFromDyn<T> { trait
92 impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<&'a U> for &'a T {}
95 impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<&'a mut U> for &'a mut T {}
98 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
101 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}
H A Dmod.rs194 pub use self::unsize::DispatchFromDyn;
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/self/
H A Darbitrary_self_types_pointers_and_wrappers.rs6 ops::{Deref, CoerceUnsized, DispatchFromDyn},
21 impl<T: Unsize<U> + ?Sized, U: ?Sized> DispatchFromDyn<Ptr<U>> for Ptr<T> {}
34 impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {}
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_codegen_cranelift/example/
H A Darbitrary_self_types_pointers_and_wrappers.rs7 ops::{Deref, CoerceUnsized, DispatchFromDyn},
22 impl<T: Unsize<U> + ?Sized, U: ?Sized> DispatchFromDyn<Ptr<U>> for Ptr<T> {}
35 impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {}
H A Dmini_core.rs24 pub trait DispatchFromDyn<T> {} trait
27 impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<&'a U> for &'a T {}
29 impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<&'a mut U> for &'a mut T {}
31 impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
33 impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}
34 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T> {}
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_codegen_gcc/example/
H A Darbitrary_self_types_pointers_and_wrappers.rs7 ops::{Deref, CoerceUnsized, DispatchFromDyn},
22 impl<T: Unsize<U> + ?Sized, U: ?Sized> DispatchFromDyn<Ptr<U>> for Ptr<T> {}
35 impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {}
H A Dmini_core.rs29 pub trait DispatchFromDyn<T> {} trait
32 impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<&'a U> for &'a T {}
34 impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<&'a mut U> for &'a mut T {}
36 impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
38 impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}
39 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T> {}
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/issues/
H A Dissue-71036.rs4 use std::ops::DispatchFromDyn;
11 impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Foo<'a, U>> for Foo<'a, T> {}
H A Dissue-71036.stderr4 LL | impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Foo<'a, U>> for Foo<'a, T> {}
8 …= note: required because of the requirements on the impl of `DispatchFromDyn<&'a &'a U>` for `&'a …
/dports/lang/rust/rustc-1.58.1-src/library/core/src/ptr/
H A Dunique.rs5 use crate::ops::{CoerceUnsized, DispatchFromDyn};
163 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {} impl
H A Dnon_null.rs7 use crate::ops::{CoerceUnsized, DispatchFromDyn};
652 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NonNull<U>> for NonNull<T> where T: Unsize<U> {} impl
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/methods/
H A Dmethod-deref-to-same-trait-object-with-separate-params.rs12 use std::ops::{CoerceUnsized, Deref, DispatchFromDyn};
27 impl<T: ?Sized + Unsize<U>, U: ?Sized, MISC> DispatchFromDyn<Smaht<U, MISC>>
/dports/lang/rust/rustc-1.58.1-src/library/core/src/
H A Dpin.rs388 use crate::ops::{CoerceUnsized, Deref, DerefMut, DispatchFromDyn, Receiver};
911 impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U> {} impl
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/recursion_limit/
H A Dzero-overflow.stderr1 error[E0275]: overflow evaluating the requirement `&mut Self: DispatchFromDyn<&mut RustaceansAreAwe…
/dports/lang/rust/rustc-1.58.1-src/library/alloc/src/
H A Drc.rs264 use core::ops::{CoerceUnsized, Deref, DispatchFromDyn, Receiver};
334 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Rc<U>> for Rc<T> {}
2053 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}
H A Dsync.rs21 use core::ops::{CoerceUnsized, Deref, DispatchFromDyn, Receiver};
252 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Arc<U>> for Arc<T> {}
303 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}
H A Dboxed.rs148 CoerceUnsized, Deref, DerefMut, DispatchFromDyn, Generator, GeneratorState, Receiver,
1716 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T, Global> {}
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/coherence/
H A Dbuiltin.rs128 let dispatch_from_dyn_trait = tcx.require_lang_item(LangItem::DispatchFromDyn, Some(span)); in visit_implementation_of_dispatch_from_dyn()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_hir/src/
H A Dlang_items.rs227DispatchFromDyn, sym::dispatch_from_dyn, dispatch_from_dyn_trait, Target::Trait, …