rust/src/librustc_parse/parser
Dylan DPC 8872d90572
Rollup merge of #69989 - petrochenkov:nolegacy, r=eddyb,matthewjasper
resolve/hygiene: `macro_rules` are not "legacy"

The "modern" vs "legacy" naming was introduced by jseyfried during initial implementation of macros 2.0.
At this point it's clear that `macro_rules` are not going anywhere and won't be deprecated in the near future.
So this PR changes the naming "legacy" (when it implies "macro_rules") to "macro_rules".
This should also help people reading this code because it's wasn't obvious that "legacy" actually meant "macro_rules" in these contexts.

The most contentious renaming here is probably
```
fn modern -> fn normalize_to_macros_2_0
fn modern_and_legacy -> fn normalize_to_macro_rules
```
Other alternatives that I could think of are `normalize_to_opaque`/`normalize_to_semitransparent`, or `strip_non_opaque`/`strip_transparent`, but they seemed less intuitive.
The documentation to these functions can be found in `symbol.rs`.

r? @matthewjasper
2020-03-16 13:16:44 +01:00
..
attr.rs parser/attr: adjust indentation. 2020-03-10 08:35:23 +01:00
diagnostics.rs Rollup merge of #69520 - kornelski:e69492, r=cramertj 2020-03-16 13:16:38 +01:00
expr.rs ast: Mac/Macro -> MacCall 2020-03-12 22:26:52 +03:00
generics.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
item.rs Other legacy -> macro_rules 2020-03-16 00:29:42 +03:00
mod.rs rustc_parse: Remove Parser::normalized(_prev)_token 2020-03-09 12:42:41 +03:00
module.rs Make error message clearer about creating new module 2020-03-07 12:11:51 +00:00
pat.rs ast: Mac/Macro -> MacCall 2020-03-12 22:26:52 +03:00
path.rs rustc_parse: Use Token::ident where possible 2020-03-09 12:42:41 +03:00
stmt.rs ast: Mac/Macro -> MacCall 2020-03-12 22:26:52 +03:00
ty.rs ast: Mac/Macro -> MacCall 2020-03-12 22:26:52 +03:00