Remove stale comment

This commit is contained in:
Ayaz Hafiz 2022-12-02 11:50:05 -06:00
parent 947808bbb3
commit 0f6f34983f
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1411,13 +1411,6 @@ fn canonicalize_closure_body<'a>(
}
}
// // Discount the def name from the referenced arguments as well. This catches recursive
// // functions that only reference themselves.
// // Note that this will not catch mutually recursive functions whose reference closure is the
// // recursive closure. Doing so requires us to know what defs are in a cycle, which is only
// // calculated after enumeration of references.
// output.references.remove_value_lookup(&symbol);
// store the references of this function in the Env. This information is used
// when we canonicalize a surrounding def (if it exists)
env.closures.insert(symbol, output.references.clone());