pub enum Phase {
Lexing,
Parsing,
SymbolRegistration,
TypeChecking,
CodeGeneration,
PointerCheck,
}Expand description
Which compiler phase produced the diagnostic.
SymbolRegistration covers per-script validation that runs after parse
but before type checking — trigger validity, redeclaration, return-type
allowance, and trigger-subject resolvability. These used to claim
TypeChecking, which lied about the source of the diagnostic.
Variants§
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Forget for Phase
impl Freeze for Phase
impl Move for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more