Skip to content
/ rust Public
forked from rust-lang/rust

Commit b06f38c

Browse files
authored
Rollup merge of rust-lang#139776 - mejrs:diagn2, r=compiler-errors
Switch attrs to `diagnostic::on_unimplemented` I missed these the last time 😅
2 parents 883c8dd + 3efd9f5 commit b06f38c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_data_structures/src/marker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use std::alloc::Allocator;
22

3-
#[rustc_on_unimplemented(message = "`{Self}` doesn't implement `DynSend`. \
3+
#[diagnostic::on_unimplemented(message = "`{Self}` doesn't implement `DynSend`. \
44
Add it to `rustc_data_structures::marker` or use `IntoDynSyncSend` if it's already `Send`")]
55
// This is an auto trait for types which can be sent across threads if `sync::is_dyn_thread_safe()`
66
// is true. These types can be wrapped in a `FromDyn` to get a `Send` type. Wrapping a
77
// `Send` type in `IntoDynSyncSend` will create a `DynSend` type.
88
pub unsafe auto trait DynSend {}
99

10-
#[rustc_on_unimplemented(message = "`{Self}` doesn't implement `DynSync`. \
10+
#[diagnostic::on_unimplemented(message = "`{Self}` doesn't implement `DynSync`. \
1111
Add it to `rustc_data_structures::marker` or use `IntoDynSyncSend` if it's already `Sync`")]
1212
// This is an auto trait for types which can be shared across threads if `sync::is_dyn_thread_safe()`
1313
// is true. These types can be wrapped in a `FromDyn` to get a `Sync` type. Wrapping a

0 commit comments

Comments
 (0)