pub enum Severity {
Error,
Warning,
Notice,
}Expand description
Diagnostic severity (manifest §31).
Three runtime severities. Error marks a failing diagnostic (the CLI
exits non-zero at the next phase barrier) — it does not mean “abort
the phase right now”. Notice is informational and non-failing
(substitutions, auto-decisions). Sub-message kinds (note/help/
hint) live on DiagnosticAnnotation, never here.
§Examples
use mos_core::Severity;
assert_ne!(Severity::Error, Severity::Notice);Variants§
Error
Failing diagnostic; non-zero exit at the next phase barrier.
Warning
Surfaced, but the build continues.
Notice
Informational only; the build continues.
Trait Implementations§
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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