| 1 | |
| 2 |
|
| 3 | use alloc::rc::Rc;
|
| 4 | use core::marker::PhantomData;
|
| 5 | use core::panic::{RefUnwindSafe, UnwindSafe};
|
| 6 |
|
| 7 | |
| 8 | |
| 9 | #[derive(Copy, Clone)]
|
| 10 | #[cfg_attr(
|
| 11 | all(procmacro2_semver_exempt, any(not(wrap_proc_macro), super_unstable)),
|
| 12 | derive(PartialEq, Eq)
|
| 13 | )]
|
| 14 | pub(crate) struct ProcMacroAutoTraits(PhantomData<Rc<()>>);
|
| 15 |
|
| 16 | pub(crate) const MARKER: ProcMacroAutoTraits = ProcMacroAutoTraits(PhantomData);
|
| 17 |
|
| 18 | impl UnwindSafe for ProcMacroAutoTraits {}
|
| 19 | impl RefUnwindSafe for ProcMacroAutoTraits {}
|