interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / proc-macro2 / src / marker.rs

17 lines · 573 bytes Raw Blame History
1use alloc::rc::Rc;
2use core::marker::PhantomData;
3use core::panic::{RefUnwindSafe, UnwindSafe};
4
5// Zero sized marker with the correct set of autotrait impls we want all proc
6// macro types to have.
7#[derive(Copy, Clone)]
8#[cfg_attr(
9 all(procmacro2_semver_exempt, any(not(wrap_proc_macro), super_unstable)),
10 derive(PartialEq, Eq)
11)]
12pub(crate) struct ProcMacroAutoTraits(PhantomData<Rc<()>>);
13
14pub(crate) const MARKER: ProcMacroAutoTraits = ProcMacroAutoTraits(PhantomData);
15
16impl UnwindSafe for ProcMacroAutoTraits {}
17impl RefUnwindSafe for ProcMacroAutoTraits {}