diff options
| author | Jakub Kozlowski <mail@jakub-kozlowski.com> | 2018-08-15 00:24:55 +0100 |
|---|---|---|
| committer | Jakub Kozlowski <mail@jakub-kozlowski.com> | 2018-08-19 17:08:00 +0100 |
| commit | 00920c0024860cec91b71a8a1fe57d1af37938f9 (patch) | |
| tree | 8338da004d3412c100b2c11f32c6c7fb0e0f4af6 /src/libsyntax/ext | |
| parent | b355906919927ab3c879becd14392f023af883a1 (diff) | |
| download | rust-00920c0024860cec91b71a8a1fe57d1af37938f9.tar.gz rust-00920c0024860cec91b71a8a1fe57d1af37938f9.zip | |
Stabilize macro_vis_matcher
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 770561fe326..2c738ac2a04 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -964,7 +964,7 @@ fn is_legal_fragment_specifier(sess: &ParseSess, frag_span: Span) -> bool { match frag_name { "item" | "block" | "stmt" | "expr" | "pat" | "lifetime" | - "path" | "ty" | "ident" | "meta" | "tt" | "" => true, + "path" | "ty" | "ident" | "meta" | "tt" | "vis" | "" => true, "literal" => { if !features.macro_literal_matcher && !attr::contains_name(attrs, "allow_internal_unstable") { @@ -977,18 +977,6 @@ fn is_legal_fragment_specifier(sess: &ParseSess, } true }, - "vis" => { - if !features.macro_vis_matcher && - !attr::contains_name(attrs, "allow_internal_unstable") { - let explain = feature_gate::EXPLAIN_VIS_MATCHER; - emit_feature_err(sess, - "macro_vis_matcher", - frag_span, - GateIssue::Language, - explain); - } - true - }, _ => false, } } |
