Sha256: c11c5a1be8bdf18be3fcd224393f350a9aae7ce282e19ce583c84910c6903a8f
Contents?: true
Size: 573 Bytes
Versions: 8
Compression:
Stored size: 573 Bytes
Contents
use alloc::rc::Rc; use core::marker::PhantomData; use core::panic::{RefUnwindSafe, UnwindSafe}; // Zero sized marker with the correct set of autotrait impls we want all proc // macro types to have. #[derive(Copy, Clone)] #[cfg_attr( all(procmacro2_semver_exempt, any(not(wrap_proc_macro), super_unstable)), derive(PartialEq, Eq) )] pub(crate) struct ProcMacroAutoTraits(PhantomData<Rc<()>>); pub(crate) const MARKER: ProcMacroAutoTraits = ProcMacroAutoTraits(PhantomData); impl UnwindSafe for ProcMacroAutoTraits {} impl RefUnwindSafe for ProcMacroAutoTraits {}
Version data entries
8 entries across 8 versions & 1 rubygems