Skip to content

Commit

Permalink
refine error message for thread-safe usage of std::sync::Arc<{Self}>
Browse files Browse the repository at this point in the history
  • Loading branch information
reez12g committed Aug 15, 2023
1 parent ffaa32b commit a46e8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ macro marker_impls {
on(_Self = "std::rc::Rc<T, A>", note = "use `std::sync::Arc` instead of `std::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 \
note = "consider whether `std::sync::Arc<{Self}>` could be incorporated to share this value between threads; for more information visit \
<https://doc.rust-lang.org/book/ch16-03-shared-state.html>"
)]
pub unsafe auto trait Send {
Expand Down

0 comments on commit a46e8c4

Please sign in to comment.