| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-16 | move syntax::ext to new crate syntax_expand | Mazdak Farrokhzad | -712/+0 | |
| 2019-10-15 | Rollup merge of #64623 - matthewjasper:underscore-imports, r=petrochenkov | Tyler Mandry | -2/+1 | |
| Remove last uses of gensyms Underscore bindings now use unique `SyntaxContext`s to avoid collisions. This was the last use of gensyms in the compiler, so this PR also removes them. closes #49300 cc #60869 r? @petrochenkov | ||||
| 2019-10-15 | Remove some mentions of gensyms | Matthew Jasper | -2/+1 | |
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -1/+2 | |
| 2019-10-14 | Rollup merge of #65261 - nnethercote:rm-Option-from-TokenStream, r=petrochenkov | Tyler Mandry | -1/+1 | |
| Remove `Option` from `TokenStream` A code simplification. r? @petrochenkov | ||||
| 2019-10-14 | Rollup merge of #65392 - Centril:nt-to-tt, r=Mark-Simulacrum | Mazdak Farrokhzad | -1/+1 | |
| Move `Nonterminal::to_tokenstream` to parser & don't rely directly on parser in lowering Split out from https://github.com/rust-lang/rust/pull/65324. r? @petrochenkov | ||||
| 2019-10-14 | Remove the `Option` in `TokenStream`. | Nicholas Nethercote | -1/+1 | |
| It means an allocation is required to create an empty `TokenStream`, but all other operations are simpler and marginally faster due to not having to check for `None`. Overall it simplifies the code for a negligible performance effect. The commit also removes `TokenStream::empty` by implementing `Default`, which is now possible. | ||||
| 2019-10-13 | token: extract Nonterminal::to_tokenstream to parser. | Mazdak Farrokhzad | -1/+1 | |
| 2019-10-13 | tokenstream: don't depend on pprust | Mazdak Farrokhzad | -1/+2 | |
| 2019-10-03 | proc_macro: Add `Span::mixed_site` exposing `macro_rules` hygiene | Vadim Petrochenkov | -0/+5 | |
| 2019-09-17 | Privatize DiagnosticBuilder constructors | Mark Rousskov | -2/+2 | |
| 2019-09-04 | flatten rustc_lexer::character_properties module | Aleksey Kladov | -2/+1 | |
| On the call site, `rustc_lexer::is_whitespace` reads much better than `character_properties::is_whitespace`. | ||||
| 2019-09-04 | remove XID and Pattern_White_Space unicode tables from libcore | Aleksey Kladov | -2/+2 | |
| They are only used by rustc_lexer, and are not needed elsewhere. So we move the relevant definitions into rustc_lexer (while the actual unicode data comes from the unicode-xid crate) and make the rest of the compiler use it. | ||||
| 2019-08-27 | proc_macro: Update `Span::def_site` to use the proc macro definition location | Vadim Petrochenkov | -4/+3 | |
| Which is no longer dummy and is available from metadata now. | ||||
| 2019-08-23 | Audit uses of `apply_mark` in built-in macros | Vadim Petrochenkov | -9/+2 | |
| Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API. The new API is much less error prone and doesn't rely on macros having default transparency. | ||||
| 2019-08-15 | hygiene: `ExpnInfo` -> `ExpnData` | Vadim Petrochenkov | -1/+1 | |
| For naming consistency with everything else in this area | ||||
| 2019-08-15 | hygiene: Remove `Option`s from functions returning `ExpnInfo` | Vadim Petrochenkov | -2/+2 | |
| The expansion info is not optional and should always exist | ||||
| 2019-08-15 | syntax_pos: `NO_EXPANSION`/`SyntaxContext::empty()` -> `SyntaxContext::root()` | Vadim Petrochenkov | -1/+1 | |
| For consistency with `ExpnId::root`. Also introduce a helper `Span::with_root_ctxt` for creating spans with `SyntaxContext::root()` context | ||||
| 2019-08-05 | add unknown token | Aleksey Kladov | -1/+1 | |
| 2019-07-27 | Move proc macro server into libsyntax | Vadim Petrochenkov | -0/+715 | |
