diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-30 08:34:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 08:34:51 +0000 |
| commit | 8a5f34a61a5b545e1f03736e20bb6a1c884f929c (patch) | |
| tree | eb4ec242a3ced486b9baf95b2b8bf25ffa7fb7ba /compiler/rustc_codegen_gcc/example | |
| parent | d581d802b1ad606ba277cd2a00348b814d51cdf7 (diff) | |
| parent | 7d12e50f73e6c08b52da7715db413598a27f7ade (diff) | |
| download | rust-8a5f34a61a5b545e1f03736e20bb6a1c884f929c.tar.gz rust-8a5f34a61a5b545e1f03736e20bb6a1c884f929c.zip | |
Merge pull request #4001 from rust-lang/rustup-2024-10-30
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc/example')
| -rw-r--r-- | compiler/rustc_codegen_gcc/example/mini_core.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_gcc/example/mini_core.rs b/compiler/rustc_codegen_gcc/example/mini_core.rs index f47bfdad131..0576b64ef6f 100644 --- a/compiler/rustc_codegen_gcc/example/mini_core.rs +++ b/compiler/rustc_codegen_gcc/example/mini_core.rs @@ -44,12 +44,12 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {} impl<T: ?Sized+Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {} impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U, ()>> for Box<T, ()> {} -#[lang = "receiver"] -pub trait Receiver {} +#[lang = "legacy_receiver"] +pub trait LegacyReceiver {} -impl<T: ?Sized> Receiver for &T {} -impl<T: ?Sized> Receiver for &mut T {} -impl<T: ?Sized, A: Allocator> Receiver for Box<T, A> {} +impl<T: ?Sized> LegacyReceiver for &T {} +impl<T: ?Sized> LegacyReceiver for &mut T {} +impl<T: ?Sized, A: Allocator> LegacyReceiver for Box<T, A> {} #[lang = "copy"] pub unsafe trait Copy {} |
