ocaml-flambda / flambda-backend

The Flambda backend project for OCaml
93 stars 67 forks source link

Simply Env.lookup for module and class #2708

Closed riaqn closed 2 weeks ago

riaqn commented 2 weeks ago

2431 enriches modules and classes with modes. However, it over-complicates Env.lookup_module and siblings. In particular, it doesn't need to return closure_context for mode error hints. This PR removes that.