Fix closure locals
commit4c4edf50a6a69a614dd2d606d4b07fbad0896b7a
authorAaron Orenstein <aorenste@meta.com>
Fri, 17 Feb 2023 21:00:26 +0000 (17 13:00 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Feb 2023 21:00:26 +0000 (17 13:00 -0800)
treeb237182d9229add47a619c234d7f08ca048bcf3f
parent03f8510a2e671a4752db1cdccdb28953b1d5182c
Fix closure locals

Summary: Closure bodies implicitly load their locals from the closure class during function prelude - we need to emulate that behavior.

Reviewed By: davidpichardie

Differential Revision: D42443146

fbshipit-source-id: 9bb9e0e0ed6fb24db66a1679c4024fdd5af2eb62
hphp/hack/src/hackc/ir/conversions/textual/class.rs
hphp/hack/src/hackc/ir/conversions/textual/func.rs
hphp/hack/src/hackc/ir/conversions/textual/lower/class.rs
hphp/hack/src/hackc/ir/conversions/textual/lower/func.rs
hphp/hack/src/hackc/ir/ir_core/func_builder.rs
hphp/hack/src/hackc/test/infer/closure.hack [new file with mode: 0644]