Mazdak Farrokhzad
dfcefa49ed
extract error_on_circular_module
2020-03-18 15:08:25 +01:00
Mazdak Farrokhzad
7108b7fbfe
extract parse_mod
2020-03-18 15:08:25 +01:00
Mazdak Farrokhzad
803de3188c
submod_path: use id.span
2020-03-18 15:08:25 +01:00
Mazdak Farrokhzad
2db5d49d47
simplify submod_path
2020-03-18 15:08:25 +01:00
Mazdak Farrokhzad
185c1d340c
extract error_decl_mod_in_block
2020-03-18 15:08:25 +01:00
Mazdak Farrokhzad
2899a58cab
extract error_cannot_declare_mod_here
2020-03-18 15:08:25 +01:00
Mazdak Farrokhzad
bc75cba23f
submod_path_from_attr: simplify & document
2020-03-18 15:08:25 +01:00
Kornel
8de1ec9ce0
Make error message clearer about creating new module
2020-03-07 12:11:51 +00:00
Yuki Okushi
4439bb09aa
Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril
...
parser: Remove `Parser::prev_span`
Follow-up to https://github.com/rust-lang/rust/pull/69384 .
r? @Centril
2020-03-01 19:28:10 +09:00
Vadim Petrochenkov
e08c279eac
Rename syntax
to rustc_ast
in source code
2020-02-29 21:59:09 +03:00
Vadim Petrochenkov
d0ba4387c2
parser: prev_span
-> prev_token.span
2020-02-29 14:57:14 +03:00
Aaron Hill
51a16e574a
Record proc macro harness order for use during metadata deserialization
...
Fixes #68690
When we generate the proc macro harness, we now explicitly recorder the
order in which we generate entries. We then use this ordering data to
deserialize the correct proc-macro-data from the crate metadata.
2020-02-15 15:48:36 -05:00
Mazdak Farrokhzad
c2026030b5
parser: remove Option<Vec<Attribute>>
in ItemInfo
.
2020-02-13 15:16:36 +01:00
Mazdak Farrokhzad
20ba6875e6
parser_item_mod: avoid cloning outer attributes
2020-02-13 15:16:36 +01: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
Caleb Cartwright
ed039e8f84
restore some rustc_parse visibilities
2020-01-11 13:19:57 -06:00
Vadim Petrochenkov
70f1d57048
Rename syntax_pos
to rustc_span
in source code
2020-01-01 09:15:18 +03:00
Mazdak Farrokhzad
51fb599849
parser::module: remove .fatal calls
2019-12-31 04:33:34 +01:00
Mazdak Farrokhzad
5a64ba6386
parser: span_fatal -> struct_span_err
2019-12-31 04:33:34 +01:00
Mazdak Farrokhzad
2091062bf6
parser: call .struct_span_err directly
2019-12-31 04:33:34 +01:00
Mazdak Farrokhzad
8456c403e1
extract parse_not_expr
2019-12-23 13:55:04 +01:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mazdak Farrokhzad
0e18ca1447
Rollup merge of #67045 - Centril:parser-import-clean, r=Mark-Simulacrum
...
rustc_parser: cleanup imports
Reorganize & canonicalize some imports + Drop `rustc_target` as a dependency.
r? @Mark-Simulacrum
2019-12-05 19:03:20 +01:00
Mazdak Farrokhzad
74804fa3e7
rustc_parser: cleanup imports
2019-12-05 06:38:06 +01:00
Esteban Küber
0103308ad3
Account for raw idents in module file finding
2019-12-03 22:25:44 -08:00
Mark Rousskov
70805e6444
Delete ProcessCfgMod
...
The previous commit removes the use of this, and now we cleanup.
2019-11-20 14:07:57 -05:00
Mark Rousskov
39c0fa847e
Move syntax_expand::config to rustc_parse::config
2019-11-19 21:35:11 -05:00
Mazdak Farrokhzad
4ae2728fa8
move syntax::parse -> librustc_parse
...
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-10 03:57:18 +01:00