Closed JustusAdam closed 3 months ago
In test cases multiple TyCtxts may be live and assigning the same id's to functions. This can cause a race on the static that persists the MIR bodies.
TyCtxt
static
This PR mitigates this by extending the cache key with the address of the global context, which is unlikely to be assigned twice.
In test cases multiple
TyCtxt
s may be live and assigning the same id's to functions. This can cause a race on thestatic
that persists the MIR bodies.This PR mitigates this by extending the cache key with the address of the global context, which is unlikely to be assigned twice.