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§
const SHOULD_EMIT_LINTS: bool
Required Associated Types§
Required Methods§
fn parsers() -> &'static LazyLock<GroupTypeInner<Self>>
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.