crucible-mir
: Split out the Misc
CastKind
into more precise constructors
#1223
Labels
crucible-mir
: Split out the Misc
CastKind
into more precise constructors
#1223
Currently, the
Misc
CastKind
is a catch-all for several unrelatedCastKind
s, as can be seen in this code:crucible/crucible-mir/src/Mir/JSON.hs
Lines 405 to 416 in c310fcb
As a result, it is difficult to distinguish between all of these
CastKind
s inMir.Trans.evalCast'
. I propose that we delete theMisc
constructor and replace it with more precise constructors that reflect the structure of theCastKind
enum in therustc
API. This will require some detective work to figure out which existing uses ofMisc
are covered by whichCastKind
variants.The text was updated successfully, but these errors were encountered: