// SPDX-License-Identifier: Apache-2.0 OR MIT12use alloc::rc::Rc;3use core::marker::PhantomData;4use core::panic::{RefUnwindSafe, UnwindSafe};56// Zero sized marker with the correct set of autotrait impls we want all proc7// macro types to have.8#[derive(Copy, Clone)]9#[cfg_attr(10all(procmacro2_semver_exempt, any(not(wrap_proc_macro), super_unstable)),11derive(PartialEq, Eq)12)]13pub(crate) struct ProcMacroAutoTraits(PhantomData<Rc<()>>);1415pub(crate) const MARKER: ProcMacroAutoTraits = ProcMacroAutoTraits(PhantomData);1617impl UnwindSafe for ProcMacroAutoTraits {}18impl RefUnwindSafe for ProcMacroAutoTraits {}192021