Skip to content

Commit a0a9ed0

Browse files
a4lgmadhav-madhusoodanan
authored andcommitted
intrinsic-test: Reverse has_constraints() condition
It seems it returns true when *no* constraints are found, opposite to the expected behavior of the function name. This commit reverses condition as the name suggests.
1 parent 78826ea commit a0a9ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/intrinsic-test/src/common/argument.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ where
4242
}
4343

4444
pub fn has_constraint(&self) -> bool {
45-
self.constraint.is_none()
45+
self.constraint.is_some()
4646
}
4747

4848
pub fn type_and_name_from_c(arg: &str) -> (&str, &str) {

0 commit comments

Comments
 (0)