@@ -76,11 +76,8 @@ macro marker_impls {
76
76
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
77
77
#[ cfg_attr( not( test) , rustc_diagnostic_item = "Send" ) ]
78
78
#[ rustc_on_unimplemented(
79
- on( _Self = "std::rc::Rc<T, A>" , note = "use `std::sync::Arc` instead of `std::rc::Rc`" ) ,
80
79
message = "`{Self}` cannot be sent between threads safely" ,
81
- label = "`{Self}` cannot be sent between threads safely" ,
82
- note = "consider using `std::sync::Arc<{Self}>`; for more information visit \
83
- <https://doc.rust-lang.org/book/ch16-03-shared-state.html>"
80
+ label = "`{Self}` cannot be sent between threads safely"
84
81
) ]
85
82
pub unsafe auto trait Send {
86
83
// empty.
@@ -631,11 +628,8 @@ impl<T: ?Sized> Copy for &T {}
631
628
any( _Self = "core::cell::RefCell<T>" , _Self = "std::cell::RefCell<T>" ) ,
632
629
note = "if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead" ,
633
630
) ,
634
- on( _Self = "std::rc::Rc<T, A>" , note = "use `std::sync::Arc` instead of `std::rc::Rc`" ) ,
635
631
message = "`{Self}` cannot be shared between threads safely" ,
636
- label = "`{Self}` cannot be shared between threads safely" ,
637
- note = "consider using `std::sync::Arc<{Self}>`; for more information visit \
638
- <https://doc.rust-lang.org/book/ch16-03-shared-state.html>"
632
+ label = "`{Self}` cannot be shared between threads safely"
639
633
) ]
640
634
pub unsafe auto trait Sync {
641
635
// FIXME(estebank): once support to add notes in `rustc_on_unimplemented`
0 commit comments