Skip to content

Commit

Permalink
Make integer types equatable. (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Oct 16, 2023
1 parent 1fac65b commit 8922552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/std_extensions/arithmetic/int_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub const EXTENSION_ID: ExtensionId = ExtensionId::new_unchecked("arithmetic.int
const INT_TYPE_ID: SmolStr = SmolStr::new_inline("int");

fn int_custom_type(width_arg: TypeArg) -> CustomType {
CustomType::new(INT_TYPE_ID, [width_arg], EXTENSION_ID, TypeBound::Copyable)
CustomType::new(INT_TYPE_ID, [width_arg], EXTENSION_ID, TypeBound::Eq)
}

/// Integer type of a given bit width (specified by the TypeArg).
Expand Down Expand Up @@ -192,7 +192,7 @@ pub fn extension() -> Extension {
INT_TYPE_ID,
vec![LOG_WIDTH_TYPE_PARAM],
"integral value of a given bit width".to_owned(),
TypeBound::Copyable.into(),
TypeBound::Eq.into(),
)
.unwrap();

Expand Down

0 comments on commit 8922552

Please sign in to comment.