Skip to content

Commit a46e8c4

Browse files
committed
refine error message for thread-safe usage of std::sync::Arc<{Self}>
1 parent ffaa32b commit a46e8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ macro marker_impls {
7979
on(_Self = "std::rc::Rc<T, A>", note = "use `std::sync::Arc` instead of `std::rc::Rc`"),
8080
message = "`{Self}` cannot be sent between threads safely",
8181
label = "`{Self}` cannot be sent between threads safely",
82-
note = "consider using `std::sync::Arc<{Self}>`; for more information visit \
82+
note = "consider whether `std::sync::Arc<{Self}>` could be incorporated to share this value between threads; for more information visit \
8383
<https://doc.rust-lang.org/book/ch16-03-shared-state.html>"
8484
)]
8585
pub unsafe auto trait Send {

0 commit comments

Comments
 (0)