remove FIXME now that simplify_enums is fixed

This commit is contained in:
Jacob Lifshay 2024-09-30 23:31:45 -07:00
parent edcea1adc3
commit 186488a82e
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -3357,10 +3357,6 @@ circuit check_enum_connect_any:
connect o2, i2 @[module-XXXXXXXXXX.rs 11:1] connect o2, i2 @[module-XXXXXXXXXX.rs 11:1]
", ",
}; };
// FIXME: simplify_enums is broken when connecting enums that contain
// UInt/SInt where their widths don't match. it should recurse into the
// enum bodies so it can properly sign/zero-extend or truncate the
// contained UInt/SInt fields.
let orig_m = m.canonical().intern(); let orig_m = m.canonical().intern();
let m = simplify_enums(orig_m, SimplifyEnumsKind::SimplifyToEnumsWithNoBody).unwrap(); let m = simplify_enums(orig_m, SimplifyEnumsKind::SimplifyToEnumsWithNoBody).unwrap();
dbg!(m); dbg!(m);