Mazdak Farrokhzad
a833be2162
parser: fuse free fn
parsing together.
2020-02-13 10:39:24 +01:00
Nicholas Nethercote
7d2173ed27
Use P
for NtMeta
.
...
This commit reduces the size of `Nonterminal` from a 72 bytes to 40 bytes (on
x86-64).
2020-01-30 11:19:40 +11:00
Nicholas Nethercote
0d69fe8308
Use P
for NtTraitItem
, NtImplItem
, and NtForeignItem
.
...
This commit reduces the size of `Nonterminal` from a whopping 240 bytes
to 72 bytes (on x86-64), which gets it below the `memcpy` threshold.
It also removes some impedance mismatches with `Annotatable`, which
already uses `P` for these variants.
2020-01-30 11:18:56 +11:00
Mazdak Farrokhzad
4ff12ce4c1
Normalize syntax::symbol
imports.
2020-01-02 13:57:04 +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
abf2e7aa95
Remove ast::{Impl,Trait}{Item,ItemKind}
.
2019-12-12 18:05:05 +01:00
Camille GILLOT
782cc9f65c
Derive HashStable for TokenKind.
2019-11-23 18:52:23 +01:00
Camille GILLOT
4d1674f620
Use proc-macro for TokenTree.
2019-11-23 18:22:24 +01:00
Camille GILLOT
ce301075c0
Rename StableHashingContextLike to HashStableContext.
2019-11-23 17:57:00 +01:00
Camille GILLOT
31298b41d6
Invert implementations for TokenKind.
...
Also export a bunch of Token-related impls.
2019-11-22 20:01:45 +01:00
Camille GILLOT
3d97a91e7f
Remove extern crate.
2019-11-17 22:37:16 +01:00
Camille GILLOT
2a67986eb6
HashStable literals in libsyntax.
2019-11-17 22:37:10 +01:00
Vadim Petrochenkov
e7c42f0cf0
Tiny cleanup to size assertions
2019-11-11 22:23:25 +03:00
Mazdak Farrokhzad
4ae2728fa8
move syntax::parse -> librustc_parse
...
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-10 03:57:18 +01:00
Mazdak Farrokhzad
9d6768a478
syntax::parser::token -> syntax::token
2019-11-07 13:50:12 +01:00