Open
Description
openedon Aug 9, 2020
Instead of using ParamEnv::reveal_all
, the ParamEnv
should be tracked in the mono item - this is necessary to enable more complex forms of polymorphization in future.
something simple like trying
layout_of(ty)
on various types in the MIR body and ignoring generics inty
if it succeeds, should work, but the lack of a correctParamEnv
would make it fail later (especially if e.g. it's something like&T
which only has a constant layout ifT: Sized
)
(source: eddyb in Zulip)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment