Skip to content

Commit 5ad8ff9

Browse files
committed
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 fa26ba0 commit 5ad8ff9

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
@@ -33,7 +33,7 @@ where
3333
}
3434

3535
pub fn has_constraint(&self) -> bool {
36-
self.constraint.is_none()
36+
self.constraint.is_some()
3737
}
3838

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

0 commit comments

Comments
 (0)