mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-19 18:19:46 +00:00
21 lines
741 B
Rust
21 lines
741 B
Rust
//! Provides types to describe problems that can occur when compiling Roc code.
|
|
#![warn(clippy::dbg_macro)]
|
|
// See github.com/roc-lang/roc/issues/800 for discussion of the large_enum_variant check.
|
|
#![allow(clippy::large_enum_variant)]
|
|
pub mod can;
|
|
|
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
|
pub enum Severity {
|
|
/// This should stop compilation in all cases.
|
|
/// Due to delayed loading of ingested files, this is wanted behaviour over a runtime error.
|
|
Fatal,
|
|
|
|
/// This will cause a runtime error if some code get srun
|
|
/// (e.g. type mismatch, naming error)
|
|
RuntimeError,
|
|
|
|
/// This will never cause the code to misbehave,
|
|
/// but should be cleaned up
|
|
/// (e.g. unused def, unused import)
|
|
Warning,
|
|
}
|