flowgraph: extend cfg to support whole fn item rather than just a block #15020
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
There's a fixme that landed in the dataflow-atop-cfg work:
75340f4#diff-158b34791d327b238be103c2d1867e71R195
In summary: right now there is a bit of a hack in the dataflow code to introduce definitions for all of the patterns bound by the
fn_decl
for the fn item being analyzed.It might be much cleaner to just fold all those formals into the graph structure itself, by extending the cfg code so that, in addition to accepting a block as it does today, it also accepts a whole fn item, and then does the right thing for the bindings introduced by the
fn_decl
.The text was updated successfully, but these errors were encountered: