File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ 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
+ <<<<<<< HEAD
34
35
#[ lang = "send"]
36
+ =======
37
+ >>>>>>> Remove lang items Send , UnwindSafe and RefUnwindSafe
35
38
#[ rustc_on_unimplemented (
36
39
message = "`{Self}` cannot be sent between threads safely" ,
37
40
label = "`{Self}` cannot be sent between threads safely"
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
133
133
/// [`AssertUnwindSafe`] wrapper struct can be used to force this trait to be
134
134
/// implemented for any closed over variables passed to `catch_unwind`.
135
135
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
136
- #[ cfg_attr ( not ( test ) , lang = "unwind_safe" ) ]
136
+ #[ rustc_diagnostic_item = "unwind_safe_trait" ]
137
137
#[ rustc_on_unimplemented(
138
138
message = "the type `{Self}` may not be safely transferred across an unwind boundary" ,
139
139
label = "`{Self}` may not be safely transferred across an unwind boundary"
@@ -149,7 +149,7 @@ pub auto trait UnwindSafe {}
149
149
/// This is a "helper marker trait" used to provide impl blocks for the
150
150
/// [`UnwindSafe`] trait, for more information see that documentation.
151
151
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
152
- #[ cfg_attr ( not ( test ) , lang = "ref_unwind_safe" ) ]
152
+ #[ rustc_diagnostic_item = "ref_unwind_safe_trait" ]
153
153
#[ rustc_on_unimplemented(
154
154
message = "the type `{Self}` may contain interior mutability and a reference may not be safely \
155
155
transferrable across a catch_unwind boundary",
You can’t perform that action at this time.
0 commit comments