rustc: fix ICE regarding struct variants in enums