From 6bfd24861e65649a7b00a9a8345273fe1d853a90 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 10 Jan 2025 19:58:27 +0100 Subject: [PATCH] tests: avoid ICE in beta --- quinn-proto/src/tests/mod.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/quinn-proto/src/tests/mod.rs b/quinn-proto/src/tests/mod.rs index ac254d555..48d07020d 100644 --- a/quinn-proto/src/tests/mod.rs +++ b/quinn-proto/src/tests/mod.rs @@ -1635,10 +1635,14 @@ fn cid_retirement() { pair.drive(); assert!(!pair.client_conn_mut(client_ch).is_closed()); assert!(!pair.server_conn_mut(server_ch).is_closed()); - assert_matches!( - pair.client_conn_mut(client_ch).active_rem_cid_seq(), - _next_retire_prior_to - ); + + #[allow(unreachable_patterns)] // https://github.com/rust-lang/rust/issues/135289 + { + assert_matches!( + pair.client_conn_mut(client_ch).active_rem_cid_seq(), + _next_retire_prior_to + ); + } } #[test]