diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-08-28 03:16:42 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-08-28 03:16:42 -0700 |
| commit | 4120936f6d9912b2e67001dfbe4bf50f00503034 (patch) | |
| tree | 52fe9ea97d168cb31b88469c11f6e187d1d61a7a | |
| parent | 7e02fd825198e9a958bac085506890a895498aa0 (diff) | |
| download | rust-4120936f6d9912b2e67001dfbe4bf50f00503034.tar.gz rust-4120936f6d9912b2e67001dfbe4bf50f00503034.zip | |
Revert "Make `rustc_on_unimplemented` std-agnostic for `alloc::rc`"
This reverts commit 6ec570aca510597ca940e9ffbd60370bfcbc4562.
| -rw-r--r-- | library/core/src/marker.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index ec1810234eb..aec287226a0 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -77,7 +77,6 @@ macro marker_impls { #[cfg_attr(not(test), rustc_diagnostic_item = "Send")] #[rustc_on_unimplemented( on(_Self = "std::rc::Rc<T, A>", note = "use `std::sync::Arc` instead of `std::rc::Rc`"), - on(_Self = "alloc::rc::Rc<T, A>", note = "use `alloc::sync::Arc` instead of `alloc::rc::Rc`"), message = "`{Self}` cannot be sent between threads safely", label = "`{Self}` cannot be sent between threads safely", note = "consider using `std::sync::Arc<{Self}>`; for more information visit \ @@ -633,7 +632,6 @@ impl<T: ?Sized> Copy for &T {} note = "if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead", ), on(_Self = "std::rc::Rc<T, A>", note = "use `std::sync::Arc` instead of `std::rc::Rc`"), - on(_Self = "alloc::rc::Rc<T, A>", note = "use `alloc::sync::Arc` instead of `alloc::rc::Rc`"), message = "`{Self}` cannot be shared between threads safely", label = "`{Self}` cannot be shared between threads safely", note = "consider using `std::sync::Arc<{Self}>`; for more information visit \ |
