File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ use crate::hash::Hasher;
31
31
/// [ub]: ../../reference/behavior-considered-undefined.html
32
32
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
33
33
#[ cfg_attr( not( test) , rustc_diagnostic_item = "send_trait" ) ]
34
+ #[ cfg_attr( not( bootstrap) , lang = "send" ) ]
34
35
#[ rustc_on_unimplemented(
35
36
message = "`{Self}` cannot be sent between threads safely" ,
36
37
label = "`{Self}` cannot be sent between threads safely"
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
132
132
/// [`AssertUnwindSafe`] wrapper struct can be used to force this trait to be
133
133
/// implemented for any closed over variables passed to `catch_unwind`.
134
134
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
135
+ #[ cfg_attr( not( bootstrap) , lang = "unwind_safe" ) ]
135
136
#[ rustc_on_unimplemented(
136
137
message = "the type `{Self}` may not be safely transferred across an unwind boundary" ,
137
138
label = "`{Self}` may not be safely transferred across an unwind boundary"
@@ -147,6 +148,7 @@ pub auto trait UnwindSafe {}
147
148
/// This is a "helper marker trait" used to provide impl blocks for the
148
149
/// [`UnwindSafe`] trait, for more information see that documentation.
149
150
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
151
+ #[ cfg_attr( not( bootstrap) , lang = "ref_unwind_safe" ) ]
150
152
#[ rustc_on_unimplemented(
151
153
message = "the type `{Self}` may contain interior mutability and a reference may not be safely \
152
154
transferrable across a catch_unwind boundary",
You can’t perform that action at this time.
0 commit comments