Vadim Petrochenkov
d134385823
syntax: Remove Nt(Impl,Trait,Foreign)Item
2020-02-24 20:25:32 +03:00
Vadim Petrochenkov
06fbb0b4fa
parser: Remove Option
s from unnormalized tokens
...
They are always set synchronously with normalized tokens now
2020-02-17 22:12:39 +03:00
Vadim Petrochenkov
ed2fd28d38
parser: Set previous and unnormalized tokens in couple more places
2020-02-17 22:12:39 +03:00
Nicholas Nethercote
f840a955bd
Remove the Cow
from Directory
.
...
The previous commit wrapped `Parser` within a `Cow` for the hot macro
parsing path. As a result, there's no need for the `Cow` within
`Directory`, because it lies within `Parser`.
2020-02-06 16:42:58 +11:00
bors
126ad2b813
Auto merge of #68708 - Mark-Simulacrum:stage0-step, r=pietroalbini
...
Step stage0 to bootstrap from 1.42
This also includes a commit which fixes the rustfmt downloading logic to redownload when the rustfmt channel changes, and bumps rustfmt to a more recent version.
2020-02-04 14:16:18 +00:00
Mazdak Farrokhzad
e233331a51
syntax::print -> new crate rustc_ast_pretty
2020-02-01 18:59:49 +01:00
Mazdak Farrokhzad
097d5e1c5e
1. move node_id to syntax
...
2. invert rustc_session & syntax deps
3. drop rustc_session dep in rustc_hir
2020-02-01 18:58:08 +01:00
Mark Rousskov
31dcdc9e13
Drop cfg(bootstrap) code
2020-01-31 12:31:09 -05:00
Mazdak Farrokhzad
3ccb0f9b8f
slice_patterns: remove internal uses of gate
2020-01-18 19:33:47 +01:00
Vadim Petrochenkov
70f1d57048
Rename syntax_pos
to rustc_span
in source code
2020-01-01 09:15:18 +03:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mazdak Farrokhzad
66470d3217
recover #[attr] if expr {}
2019-12-20 22:53:40 +01:00
Mazdak Farrokhzad
c6c17e3e00
Simplify nt_to_tokenstream
.
2019-12-12 17:54:49 +01:00
Mazdak Farrokhzad
941c4cd56b
Rollup merge of #67052 - Centril:config-1, r=petrochenkov
...
Ditch `parse_in_attr`
Fixes #66940
r? @petrochenkov
2019-12-06 23:26:59 +01:00
Mazdak Farrokhzad
99191c2e71
parse_meta: ditch parse_in_attr
2019-12-06 21:17:18 +01:00
Mazdak Farrokhzad
cbc9f68312
derive: avoid parse_in_attr
2019-12-06 20:37:59 +01:00
Mazdak Farrokhzad
bbcda98d41
cfg_attr: avoid .outer_tokens
2019-12-06 20:37:59 +01:00
varkor
f1db60ca95
Fix rebase issues
2019-12-06 13:09:03 +00:00
Mazdak Farrokhzad
74804fa3e7
rustc_parser: cleanup imports
2019-12-05 06:38:06 +01:00
Vadim Petrochenkov
498737c8e9
Address review comments
2019-12-02 22:13:13 +03:00
Vadim Petrochenkov
1a496f3379
syntax: Use ast::MacArgs
for attributes
2019-12-02 21:56:34 +03:00
Mark Rousskov
39c0fa847e
Move syntax_expand::config to rustc_parse::config
2019-11-19 21:35:11 -05:00
Guillaume Gomez
798e389e57
Update to use new librustc_error_codes library
2019-11-14 13:05:42 +01:00
Mazdak Farrokhzad
4ae2728fa8
move syntax::parse -> librustc_parse
...
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-10 03:57:18 +01:00