@@ -77,6 +77,7 @@ macro marker_impls {
77
77
#[ cfg_attr( not( test) , rustc_diagnostic_item = "Send" ) ]
78
78
#[ rustc_on_unimplemented(
79
79
on( _Self = "std::rc::Rc<T, A>" , note = "use `std::sync::Arc` instead of `std::rc::Rc`" ) ,
80
+ on( _Self = "alloc::rc::Rc<T, A>" , note = "use `alloc::sync::Arc` instead of `alloc::rc::Rc`" ) ,
80
81
message = "`{Self}` cannot be sent between threads safely" ,
81
82
label = "`{Self}` cannot be sent between threads safely" ,
82
83
note = "consider using `std::sync::Arc<{Self}>`; for more information visit \
@@ -632,6 +633,7 @@ impl<T: ?Sized> Copy for &T {}
632
633
note = "if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead" ,
633
634
) ,
634
635
on( _Self = "std::rc::Rc<T, A>" , note = "use `std::sync::Arc` instead of `std::rc::Rc`" ) ,
636
+ on( _Self = "alloc::rc::Rc<T, A>" , note = "use `alloc::sync::Arc` instead of `alloc::rc::Rc`" ) ,
635
637
message = "`{Self}` cannot be shared between threads safely" ,
636
638
label = "`{Self}` cannot be shared between threads safely" ,
637
639
note = "consider using `std::sync::Arc<{Self}>`; for more information visit \
0 commit comments