mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-20 18:49:50 +00:00
Enumerate severity on problem variants
This commit is contained in:
parent
0a4ec1958b
commit
e438fbf37c
9 changed files with 92 additions and 74 deletions
|
@ -3,3 +3,15 @@
|
|||
// 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 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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue