Skip to content

Commit bd55008

Browse files
committed
EXPERIMENT: intrinsic-test: (Bug fix?) 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 to test whether this is a real bug or not.
1 parent 545e424 commit bd55008

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
@@ -34,7 +34,7 @@ where
3434

3535
pub fn has_constraint(&self) -> bool {
3636
// TODO: investigation (is_none is okay?)
37-
self.constraint.is_none()
37+
self.constraint.is_some()
3838
}
3939

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

0 commit comments

Comments
 (0)