mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Merge pull request #4650 from roc-lang/detect-reachable-by-recursion-only
Provide warning for defs that are used only in (mutual) recursion
This commit is contained in:
commit
b5a195eaf0
7 changed files with 262 additions and 19 deletions
|
@ -68,7 +68,7 @@ pub fn infer_borrow<'a>(
|
|||
|
||||
let sccs = matrix.strongly_connected_components_all();
|
||||
|
||||
for group in sccs.groups() {
|
||||
for (group, _) in sccs.groups() {
|
||||
// This is a fixed-point analysis
|
||||
//
|
||||
// all functions initiall own all their parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue