mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-21 19:19:45 +00:00
Report missing params
This commit is contained in:
parent
bc6a84a215
commit
922b1c44ef
16 changed files with 286 additions and 93 deletions
|
@ -236,10 +236,6 @@ pub enum Problem {
|
|||
one_occurrence: Region,
|
||||
kind: AliasKind,
|
||||
},
|
||||
MissingParams {
|
||||
module_id: ModuleId,
|
||||
region: Region,
|
||||
},
|
||||
UnexpectedParams {
|
||||
module_id: ModuleId,
|
||||
region: Region,
|
||||
|
@ -316,7 +312,6 @@ impl Problem {
|
|||
Problem::OverAppliedCrash { .. } => RuntimeError,
|
||||
Problem::DefsOnlyUsedInRecursion(_, _) => Warning,
|
||||
Problem::FileProblem { .. } => Fatal,
|
||||
Problem::MissingParams { .. } => Warning,
|
||||
Problem::UnexpectedParams { .. } => Warning,
|
||||
}
|
||||
}
|
||||
|
@ -475,7 +470,6 @@ impl Problem {
|
|||
| Problem::OverAppliedCrash { region }
|
||||
| Problem::UnappliedCrash { region }
|
||||
| Problem::DefsOnlyUsedInRecursion(_, region)
|
||||
| Problem::MissingParams { region, .. }
|
||||
| Problem::UnexpectedParams { region, .. } => Some(*region),
|
||||
Problem::RuntimeError(RuntimeError::CircularDef(cycle_entries))
|
||||
| Problem::BadRecursion(cycle_entries) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue