File tree 5 files changed +1
-7
lines changed
5 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -252,16 +252,14 @@ macro_rules! debug_assert_ne {
252
252
/// # Examples
253
253
///
254
254
/// ```
255
- /// #![feature(matches_macro)]
256
- ///
257
255
/// let foo = 'f';
258
256
/// assert!(matches!(foo, 'A'..='Z' | 'a'..='z'));
259
257
///
260
258
/// let bar = Some(4);
261
259
/// assert!(matches!(bar, Some(x) if x > 2));
262
260
/// ```
263
261
#[ macro_export]
264
- #[ unstable ( feature = "matches_macro" , issue = "65721 " ) ]
262
+ #[ stable ( feature = "matches_macro" , since = "1.42.0 " ) ]
265
263
macro_rules! matches {
266
264
( $expression: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ?) => {
267
265
match $expression {
Original file line number Diff line number Diff line change 15
15
#![ feature( box_patterns) ]
16
16
#![ feature( box_syntax) ]
17
17
#![ feature( nll) ]
18
- #![ feature( matches_macro) ]
19
18
#![ recursion_limit = "256" ]
20
19
21
20
#[ macro_use]
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
29
29
#![ feature( range_is_empty) ]
30
30
#![ feature( stmt_expr_attributes) ]
31
31
#![ feature( trait_alias) ]
32
- #![ feature( matches_macro) ]
33
32
#![ recursion_limit = "256" ]
34
33
35
34
#[ macro_use]
Original file line number Diff line number Diff line change 277
277
#![ feature( linkage) ]
278
278
#![ feature( log_syntax) ]
279
279
#![ feature( manually_drop_take) ]
280
- #![ feature( matches_macro) ]
281
280
#![ feature( maybe_uninit_ref) ]
282
281
#![ feature( maybe_uninit_slice) ]
283
282
#![ feature( needs_panic_runtime) ]
Original file line number Diff line number Diff line change 11
11
#![ feature( const_transmute) ]
12
12
#![ feature( crate_visibility_modifier) ]
13
13
#![ feature( label_break_value) ]
14
- #![ feature( matches_macro) ]
15
14
#![ feature( nll) ]
16
15
#![ feature( try_trait) ]
17
16
#![ feature( slice_patterns) ]
You can’t perform that action at this time.
0 commit comments