Repository navigation
Conversation
Also reset the representation to something the rest of the compiler can process, even if diagnostics may surprisingly talk about repr(u128) now.
|
This PR changes a file inside |
|
r? @TaKO8Ki rustbot has assigned @TaKO8Ki. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
cc @RalfJung |
| ); | ||
| } | ||
| err.emit(); | ||
| // Pick a permissive value so the rest of the compiler can just keep going. |
There was a problem hiding this comment.
| // Pick a permissive value so the rest of the compiler can just keep going. | |
| // Pick a permissive value so the rest of the compiler can just keep going. | |
| // (Ideally we'd taint this ADT so we didn't have to pick a type here and | |
| // we'd 100% avoid invalid follow-up errors, but that would be a rather big refactor.) |
Yeah I think that would be preferable. Any discriminants that have a fixed type, like |
and reset the representation to
repr(u128)which should work mostly without further diagnostics issues. Could also picki128to avoid negative discriminant errors.fixes #144501
I considered actually tracking the error taint in AdtDef, but I don't think that's necessary for now