We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9bade commit a355168Copy full SHA for a355168
crates/ir2/build/display/decode.rs
@@ -62,8 +62,8 @@ impl Display for DisplayDecode<&'_ Isa> {
62
impl Display for DisplayDecode<&'_ UnaryOp> {
63
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
64
let camel_ident = DisplayIdent::camel(self.value);
65
- let slot_ty = FieldTy::Slot;
66
- writeln!(f, "pub type {camel_ident} = UnaryOp<{slot_ty}>;")
+ let value_ty = self.value.value_field().ty;
+ writeln!(f, "pub type {camel_ident} = UnaryOp<{value_ty}>;")
67
}
68
69
0 commit comments