Skip to content

Commit 8541179

Browse files
committed
Fix ICE 89775
1 parent f0540f6 commit 8541179

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/marker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ use crate::hash::Hasher;
3030
/// [arc]: ../../std/sync/struct.Arc.html
3131
/// [ub]: ../../reference/behavior-considered-undefined.html
3232
#[stable(feature = "rust1", since = "1.0.0")]
33-
#[cfg_attr(not(test), rustc_diagnostic_item = "Send")]
33+
#[cfg_attr(all(not(test), bootstrap), rustc_diagnostic_item = "send_trait")]
34+
#[cfg_attr(all(not(test), not(bootstrap)), rustc_diagnostic_item = "Send")]
3435
#[rustc_on_unimplemented(
3536
message = "`{Self}` cannot be sent between threads safely",
3637
label = "`{Self}` cannot be sent between threads safely"

0 commit comments

Comments
 (0)