about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-31 14:52:26 +0000
committerbors <bors@rust-lang.org>2020-12-31 14:52:26 +0000
commit44e3daf5eee8263dfc3a2509e78ddd1f6f783a0e (patch)
tree502e89e6bb2a8acdbf99d6dbdbf01dd76a53a182 /compiler/rustc_span/src
parentb33e234155b33ab6bce280fb2445b62b68622b61 (diff)
parent40bf3c0f09240836d55431165f20cf221816c958 (diff)
downloadrust-44e3daf5eee8263dfc3a2509e78ddd1f6f783a0e.tar.gz
rust-44e3daf5eee8263dfc3a2509e78ddd1f6f783a0e.zip
Auto merge of #80459 - mark-i-m:or-pat-reg, r=petrochenkov
Implement edition-based macro :pat feature

This PR does two things:
1. Fixes the perf regression from https://github.com/rust-lang/rust/pull/80100#issuecomment-750893149
2. Implements `:pat2018` and `:pat2021` matchers, as described by `@joshtriplett`  in https://github.com/rust-lang/rust/issues/54883#issuecomment-745509090 behind the feature gate `edition_macro_pat`.

r? `@petrochenkov`

cc `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 7ca2ff4f1fb..382b7a4f2db 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -470,6 +470,7 @@ symbols! {
         dropck_parametricity,
         dylib,
         dyn_trait,
+        edition_macro_pats,
         eh_catch_typeinfo,
         eh_personality,
         emit_enum,
@@ -808,6 +809,8 @@ symbols! {
         partial_ord,
         passes,
         pat,
+        pat2018,
+        pat2021,
         path,
         pattern_parentheses,
         phantom_data,