about summary refs log tree commit diff
path: root/src/librustc_ast/token.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-884/+0
2020-08-22Add backwards-compat hack for certain '$name' tokensAaron Hill-1/+28
See issue #74616
2020-08-14Rework `rustc_serialize`Matthew Jasper-9/+9
- Move the type parameter from `encode` and `decode` methods to the trait. - Remove `UseSpecialized(En|De)codable` traits. - Remove blanket impls for references. - Add `RefDecodable` trait to allow deserializing to arena-allocated references safely. - Remove ability to (de)serialize HIR. - Create proc-macros `(Ty)?(En|De)codable` to help implement these new traits.
2020-08-06rustc_ast: Stop using "string typing" for doc comment tokensVadim Petrochenkov-3/+10
Explicitly store their kind and style retrieved during lexing in the token
2020-08-02Auto merge of #74826 - matklad:mbe-fragment, r=petrochenkovbors-0/+61
Introduce NonterminalKind for more type-safe mbe parsing It encapsulate the (part of) the interface between the parser and macro by example (macro_rules) parser. The second bit is somewhat more general `parse_ast_fragment`, which is the reason why we keep some `parse_xxx` functions as public.
2020-08-02Use NonterminalKind for MetaVarDeclAleksey Kladov-1/+24
This is more type safe and allows us to remove a few dead branches
2020-08-02Introduce NonterminalKindAleksey Kladov-0/+38
It encapsulate the (part of) the interface between the parser and macro by example (macro_rules) parser. The second bit is somewhat more general `parse_ast_fragment`, which is the reason why we keep some `parse_xxx` functions as public.
2020-08-01Move 'probably equal' methods to librustc_parseAaron Hill-56/+0
This is preparation for PR #73084
2020-07-01Add an issue number for the pretty_printing_compatibility_hack FIXMEVadim Petrochenkov-1/+1
2020-07-01Remove `token::FlattenGroup`Vadim Petrochenkov-19/+10
2020-07-01expand: Stop using nonterminals for passing tokens to attribute and derive ↵Vadim Petrochenkov-1/+21
macros
2020-06-26proc_macro: Stop flattening groups with dummy spansVadim Petrochenkov-11/+20
2020-05-29Revert "Move functions to librustc_parse"Aaron Hill-0/+56
This reverts commit 7a4c1865fb2f58c57e3f09645515dec8be3022c6.
2020-05-22Move functions to librustc_parseAaron Hill-56/+0
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-22/+22
2020-03-20can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs.Mazdak Farrokhzad-4/+13
2020-03-10more reuse in block parsing & improve diagnostics.Mazdak Farrokhzad-0/+10
2020-03-09Address review commentsVadim Petrochenkov-5/+14
2020-03-09Use `Token::uninterpolate` in couple more places matching on `(Nt)Ident`Vadim Petrochenkov-21/+11
2020-03-09rustc_ast: Introduce `Token::uninterpolate`Vadim Petrochenkov-2/+18
2020-03-09rustc_ast: Introduce `Token::uninterpolated_span`Vadim Petrochenkov-0/+30
2020-02-29Move directory `libsyntax` -> `librustc_ast`Vadim Petrochenkov-0/+761