We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c28244 commit f3d7645Copy full SHA for f3d7645
library/core/src/macros/mod.rs
@@ -255,7 +255,7 @@ macro_rules! debug_assert_ne {
255
#[macro_export]
256
#[stable(feature = "matches_macro", since = "1.42.0")]
257
macro_rules! matches {
258
- ($expression:expr, $( $pattern:pat )|+ $( if $guard: expr )?) => {
+ ($expression:expr, $( $pattern:pat )|+ $( if $guard: expr )? $(,)?) => {
259
match $expression {
260
$( $pattern )|+ $( if $guard )? => true,
261
_ => false
0 commit comments