assert_matches
debug_assert_matches
This resolves a FIXME which was added in https://github.com/rust-lang/rust/pull/151423.