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

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/proc-macro2-1.0.93/src/marker.rs
wasmtime-28.0.0 ./ext/cargo-vendor/proc-macro2-1.0.92/src/marker.rs
wasmtime-27.0.0 ./ext/cargo-vendor/proc-macro2-1.0.91/src/marker.rs
wasmtime-26.0.0 ./ext/cargo-vendor/proc-macro2-1.0.89/src/marker.rs
wasmtime-25.0.2 ./ext/cargo-vendor/proc-macro2-1.0.86/src/marker.rs
wasmtime-25.0.1 ./ext/cargo-vendor/proc-macro2-1.0.86/src/marker.rs
wasmtime-25.0.0 ./ext/cargo-vendor/proc-macro2-1.0.86/src/marker.rs
wasmtime-24.0.0 ./ext/cargo-vendor/proc-macro2-1.0.86/src/marker.rs