mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +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
|
// injecting a crash message
|
||||||
Problem::UnappliedCrash { .. } => RuntimeError,
|
Problem::UnappliedCrash { .. } => RuntimeError,
|
||||||
Problem::OverAppliedCrash { .. } => RuntimeError,
|
Problem::OverAppliedCrash { .. } => RuntimeError,
|
||||||
|
Problem::DefsOnlyUsedInRecursion(_, _) => Warning,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,6 @@ pub fn can_problem<'b>(
|
||||||
]);
|
]);
|
||||||
|
|
||||||
title = "DEFINITION ONLY USED IN RECURSION".to_string();
|
title = "DEFINITION ONLY USED IN RECURSION".to_string();
|
||||||
severity = Severity::Warning;
|
|
||||||
}
|
}
|
||||||
Problem::DefsOnlyUsedInRecursion(n, region) => {
|
Problem::DefsOnlyUsedInRecursion(n, region) => {
|
||||||
doc = alloc.stack([
|
doc = alloc.stack([
|
||||||
|
@ -147,7 +146,6 @@ pub fn can_problem<'b>(
|
||||||
]);
|
]);
|
||||||
|
|
||||||
title = "DEFINITIONs ONLY USED IN RECURSION".to_string();
|
title = "DEFINITIONs ONLY USED IN RECURSION".to_string();
|
||||||
severity = Severity::Warning;
|
|
||||||
}
|
}
|
||||||
Problem::ExposedButNotDefined(symbol) => {
|
Problem::ExposedButNotDefined(symbol) => {
|
||||||
doc = alloc.stack([
|
doc = alloc.stack([
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue