Trait Stage

Source
pub trait Stage:
    Sized
    + 'static
    + Sealed {
    type Id: Copy;

    const SHOULD_EMIT_LINTS: bool;

    // Required methods
    fn parsers() -> &'static LazyLock<GroupTypeInner<Self>>;
    fn emit_err<'sess>(
        &self,
        sess: &'sess Session,
        diag: impl for<'x> Diagnostic<'x>,
    ) -> ErrorGuaranteed;
}

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn parsers() -> &'static LazyLock<GroupTypeInner<Self>>

Source

fn emit_err<'sess>( &self, sess: &'sess Session, diag: impl for<'x> Diagnostic<'x>, ) -> ErrorGuaranteed

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§