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 67fe941 commit ea8bd85Copy full SHA for ea8bd85
macro/tests/operand.rs
@@ -27,7 +27,7 @@ fn simple() {
27
28
assert_eq!(operation.lhs().unwrap(), block.argument(0).unwrap().into());
29
assert_eq!(operation.rhs().unwrap(), block.argument(1).unwrap().into());
30
- assert_eq!(operation.operation().operand_count(), 2);
+ assert_eq!(operation.as_operation().operand_count(), 2);
31
}
32
33
#[test]
@@ -62,6 +62,6 @@ fn variadic_after_single() {
62
operation.others().nth(1),
63
Some(block.argument(1).unwrap().into())
64
);
65
- assert_eq!(operation.operation().operand_count(), 3);
+ assert_eq!(operation.as_operation().operand_count(), 3);
66
assert_eq!(operation.others().count(), 2);
67
0 commit comments