-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(assert_matches)]
This is a tracking issue for the assert_matches!() and debug_assert_matches!() macros.
Public API
// core
macro_rules! assert_matches { .. }
macro_rules! debug_assert_matches { .. }Steps / History
- Implementation: Add assert_matches macro. #82770
- Temporarily move the macro into
std::assert_matches::assert_matchesto avoid breakage: Is there a gentler way to land the assert_matches macro? #82913 - Final commenting period (FCP)
- Stabilization PR
- Update the
must_usemessage onis_none(per Add messages toOption's andResult'smust_useannotation foris_*#62431 (review)) - Mention this macro in the documentation of
matches!()
- Update the
Unresolved Questions
- Add
=> exprsyntax?- Nope, too confusing. (See discussion below.)
Demiu, hartwork, Andlon, nyurik, dimo414 and 40 moreschneiderfelipe, aliksend, musjj and thennothinghappenedelpiel, shirshak55, MattiasBuelens, athre0z, kaleidawave and 118 moreandrew-ares, CBenoit, mohe2015, elichai, roylaurie and 6 moreDzuchun, musjj, ldanko, bbb651 and schneiderfelipe
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.