/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_error_codes/src/error_codes/ |
H A D | E0378.md | 1 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 D | dispatch_from_dyn_zst.rs | 8 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 D | invalid_dispatch_from_dyn_impls.stderr | 1 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 D | invalid_dispatch_from_dyn_impls.rs | 4 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 D | issue-78372.stderr | 15 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 D | issue-78372.rs | 1 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 D | unsize.rs | 86 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 D | mod.rs | 194 pub use self::unsize::DispatchFromDyn;
|
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/self/ |
H A D | arbitrary_self_types_pointers_and_wrappers.rs | 6 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 D | arbitrary_self_types_pointers_and_wrappers.rs | 7 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 D | mini_core.rs | 24 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 D | arbitrary_self_types_pointers_and_wrappers.rs | 7 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 D | mini_core.rs | 29 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 D | issue-71036.rs | 4 use std::ops::DispatchFromDyn; 11 impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Foo<'a, U>> for Foo<'a, T> {}
|
H A D | issue-71036.stderr | 4 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 D | unique.rs | 5 use crate::ops::{CoerceUnsized, DispatchFromDyn}; 163 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {} impl
|
H A D | non_null.rs | 7 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 D | method-deref-to-same-trait-object-with-separate-params.rs | 12 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 D | pin.rs | 388 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 D | zero-overflow.stderr | 1 error[E0275]: overflow evaluating the requirement `&mut Self: DispatchFromDyn<&mut RustaceansAreAwe…
|
/dports/lang/rust/rustc-1.58.1-src/library/alloc/src/ |
H A D | rc.rs | 264 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 D | sync.rs | 21 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 D | boxed.rs | 148 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 D | builtin.rs | 128 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 D | lang_items.rs | 227 …DispatchFromDyn, sym::dispatch_from_dyn, dispatch_from_dyn_trait, Target::Trait, …
|