From a46e8c4970a30f6966de3311a9b08d544e086232 Mon Sep 17 00:00:00 2001 From: reez12g Date: Tue, 15 Aug 2023 16:40:28 +0900 Subject: [PATCH] refine error message for thread-safe usage of std::sync::Arc<{Self}> --- library/core/src/marker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index aec287226a055..7fff57058e838 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -79,7 +79,7 @@ macro marker_impls { on(_Self = "std::rc::Rc", 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 \ " )] pub unsafe auto trait Send {