Report missing params

This commit is contained in:
Agus Zubiaga 2024-07-02 02:59:39 -03:00
parent bc6a84a215
commit 922b1c44ef
No known key found for this signature in database
16 changed files with 286 additions and 93 deletions

View file

@ -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) => {