We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 130359c + f3d7645 commit 383da5eCopy full SHA for 383da5e
library/core/src/macros/mod.rs
@@ -242,7 +242,7 @@ macro_rules! debug_assert_ne {
242
#[macro_export]
243
#[stable(feature = "matches_macro", since = "1.42.0")]
244
macro_rules! matches {
245
- ($expression:expr, $( $pattern:pat )|+ $( if $guard: expr )?) => {
+ ($expression:expr, $( $pattern:pat )|+ $( if $guard: expr )? $(,)?) => {
246
match $expression {
247
$( $pattern )|+ $( if $guard )? => true,
248
_ => false
0 commit comments