Reject empty pattern in `assert_.._matches`.
PiperOrigin-RevId: 521471750
diff --git a/rs_bindings_from_cc/ir_matchers.rs b/rs_bindings_from_cc/ir_matchers.rs
index 4202ee7..423ddf2 100644
--- a/rs_bindings_from_cc/ir_matchers.rs
+++ b/rs_bindings_from_cc/ir_matchers.rs
@@ -134,8 +134,8 @@
#[test]
fn test_optional_trailing_comma() {
- assert_ir_matches!(ir_from_cc("").unwrap(), quote! {});
- assert_ir_matches!(ir_from_cc("").unwrap(), quote! {},);
+ assert_ir_matches!(ir_from_cc("").unwrap(), quote! { FlatIR { ... }});
+ assert_ir_matches!(ir_from_cc("").unwrap(), quote! { FlatIR { ... }},);
assert_ir_not_matches!(ir_from_cc("").unwrap(), quote! {this pattern is not in the ir});
assert_ir_not_matches!(ir_from_cc("").unwrap(), quote! {this pattern is not in the ir},);