mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
New problem dropped
This commit is contained in:
parent
66419e8f29
commit
705ce10085
2 changed files with 1 additions and 2 deletions
|
@ -268,6 +268,7 @@ impl Problem {
|
|||
// injecting a crash message
|
||||
Problem::UnappliedCrash { .. } => RuntimeError,
|
||||
Problem::OverAppliedCrash { .. } => RuntimeError,
|
||||
Problem::DefsOnlyUsedInRecursion(_, _) => Warning,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,6 @@ pub fn can_problem<'b>(
|
|||
]);
|
||||
|
||||
title = "DEFINITION ONLY USED IN RECURSION".to_string();
|
||||
severity = Severity::Warning;
|
||||
}
|
||||
Problem::DefsOnlyUsedInRecursion(n, region) => {
|
||||
doc = alloc.stack([
|
||||
|
@ -147,7 +146,6 @@ pub fn can_problem<'b>(
|
|||
]);
|
||||
|
||||
title = "DEFINITIONs ONLY USED IN RECURSION".to_string();
|
||||
severity = Severity::Warning;
|
||||
}
|
||||
Problem::ExposedButNotDefined(symbol) => {
|
||||
doc = alloc.stack([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue