You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…r, r=HKalbasi
fix: consider outer binders when folding captured items' type
Fixesrust-lang#14966
Basically, the crash is caused by us producing a broken type and passing it to chalk: `&dyn for<type> [for<> Implemented(^1.0: A<^0.0>)]` (notice the innermost bound var `^0.0` has no corresponding binder). It's created in `CapturedItemWithoutTy::with_ty()`, which didn't consider outer binders when folding types to replace placeholders with bound variables.
The fix is one-liner, but I've also refactored the surrounding code a little.
Now that @pnkfelix has landed CFG and is about to land dataflow, it's time for liveness code to be rewritten to use it.
Currently liveness has two responsibilities:
Probably liveness as a pass should go away and be moved into borrowck.
cc @zwarich
The text was updated successfully, but these errors were encountered: