Skip to content

Commit 436ce07

Browse files
committed
Add link to dead_code autotrait bug
rust-lang/rust#119645
1 parent 228503f commit 436ce07

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/marker.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ mod value {
1212
pub(crate) use core::marker::PhantomData as Marker;
1313
}
1414

15-
pub(crate) struct ProcMacroAutoTraits(#[allow(dead_code)] Rc<()>);
15+
pub(crate) struct ProcMacroAutoTraits(
16+
#[allow(dead_code)] // https://github.com/rust-lang/rust/issues/119645
17+
Rc<()>,
18+
);
1619

1720
impl UnwindSafe for ProcMacroAutoTraits {}
1821
impl RefUnwindSafe for ProcMacroAutoTraits {}

tests/ui/test-not-send.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ error[E0277]: `Rc<()>` cannot be sent between threads safely
3131
note: required because it appears within the type `proc_macro2::marker::ProcMacroAutoTraits`
3232
--> $WORKSPACE/src/marker.rs
3333
|
34-
| pub(crate) struct ProcMacroAutoTraits(#[allow(dead_code)] Rc<()>);
34+
| pub(crate) struct ProcMacroAutoTraits(
3535
| ^^^^^^^^^^^^^^^^^^^
3636
note: required because it appears within the type `PhantomData<proc_macro2::marker::ProcMacroAutoTraits>`
3737
--> $RUST/core/src/marker.rs

0 commit comments

Comments
 (0)