| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-12 | Rename `TokenStream::concat` and remove `TokenStream::concat_rc_vec`. | Nicholas Nethercote | -2/+2 | |
| `TokenStream::new` is a better name for the former, and the latter is now just equivalent to `TokenStream::Stream`. | ||||
| 2018-12-10 | Remove `tokenstream::Delimited`. | Nicholas Nethercote | -5/+6 | |
| Because it's an extra type layer that doesn't really help; in a couple of places it actively gets in the way, and overall removing it makes the code nicer. It does, however, move `tokenstream::TokenTree` further away from the `TokenTree` in `quote.rs`. More importantly, this change reduces the size of `TokenStream` from 48 bytes to 40 bytes on x86-64, which is enough to slightly reduce instruction counts on numerous benchmarks, the best by 1.5%. Note that `open_tt` and `close_tt` have gone from being methods on `Delimited` to associated methods of `TokenTree`. | ||||
| 2018-10-26 | Remove redundant clone | Shotaro Yamada | -2/+2 | |
| 2018-09-26 | Remove OneVector | ljedrz | -2/+2 | |
| 2018-09-08 | Track distinct spans for open and close delimiter | David Tolnay | -7/+7 | |
| 2018-08-28 | Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc. | Eduard-Mihai Burtescu | -6/+6 | |
| 2018-08-23 | Use optimized SmallVec implementation | Igor Gutorov | -1/+1 | |
| 2018-08-13 | Move SmallVec and ThinVec out of libsyntax | ljedrz | -2/+2 | |
| 2018-04-06 | Use `Span::apply_mark` where possible | Vadim Petrochenkov | -3/+3 | |
| 2018-04-06 | Use `Span` instead of `SyntaxContext` in `Ident` | Vadim Petrochenkov | -1/+1 | |
| 2018-03-22 | Clean up raw identifier handling when recovering tokens from AST. | Lymia Aluysia | -1/+1 | |
| 2018-03-18 | Initial implementation of RFC 2151, Raw Identifiers | Lymia Aluysia | -1/+1 | |
| 2018-03-02 | Replace Rc with Lrc for shared data | John Kåre Alsaker | -3/+4 | |
| 2017-08-30 | Make fields of `Span` private | Vadim Petrochenkov | -3/+3 | |
| 2017-06-26 | Add `LazyTokenStream`. | Jeffrey Seyfried | -1/+1 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -26/+34 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-06-08 | Speed up expansion. | Mark Simulacrum | -8/+9 | |
| This reduces duplication, thereby increasing expansion speed. | ||||
| 2017-05-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -3/+3 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
| 2017-03-30 | Improve `Path` spans. | Jeffrey Seyfried | -8/+1 | |
| 2017-03-03 | Integrate `TokenStream`. | Jeffrey Seyfried | -16/+20 | |
| 2017-02-28 | Merge `repeat_idx` and `repeat_len`. | Jeffrey Seyfried | -17/+15 | |
| 2017-02-28 | Remove `Token::MatchNt`. | Jeffrey Seyfried | -3/+4 | |
| 2017-02-28 | Add `syntax::ext::tt::quoted::{TokenTree, ..}` and remove ↵ | Jeffrey Seyfried | -34/+17 | |
| `tokenstream::TokenTree::Sequence`. | ||||
| 2017-02-28 | Avoid `Token::{OpenDelim, CloseDelim}`. | Jeffrey Seyfried | -16/+22 | |
| 2017-02-28 | Remove `ext::tt::transcribe::tt_next_token`. | Jeffrey Seyfried | -149/+124 | |
| 2017-02-28 | Clean up `ext::tt::transcribe::TtFrame`, rename to `Frame`. | Jeffrey Seyfried | -57/+84 | |
| 2017-02-28 | Remove a `loop` in `ext::tt::transcribe`. | Jeffrey Seyfried | -32/+23 | |
| 2017-01-17 | Avoid interpolated token trees. | Jeffrey Seyfried | -1/+2 | |
| 2017-01-17 | Clean up `ext::tt::transcribe`. | Jeffrey Seyfried | -63/+33 | |
| 2017-01-17 | Refactor the parser to consume token trees. | Jeffrey Seyfried | -4/+7 | |
| 2016-11-04 | Remove field `TtReader::next_tok`. | Jeffrey Seyfried | -5/+0 | |
| 2016-11-03 | Move doc comment desugaring into the parser. | Jeffrey Seyfried | -27/+1 | |
| 2016-11-03 | Revert "macros: Improve `tt` fragments" | Jeffrey Seyfried | -13/+3 | |
| This reverts commit 41745f30f751364bdce14428b7d3ffa5dd028903. | ||||
| 2016-11-03 | Reduce the size of `Token` and make it cheaper to clone by refactoring | Jeffrey Seyfried | -13/+11 | |
| `Token::Interpolated(Nonterminal)` -> `Token::Interpolated(Rc<Nonterminal>)`. | ||||
| 2016-10-25 | Use `SmallVector` for `TtReader::stack`. | Nicholas Nethercote | -3/+4 | |
| This avoids 800,000 heap allocations when compiling html5ever. It requires tweaking `SmallVector` a little. | ||||
| 2016-10-19 | Improve `$crate`. | Jeffrey Seyfried | -29/+2 | |
| 2016-10-17 | Fix partially consumed tokens in macro matchers. | Jeffrey Seyfried | -0/+5 | |
| 2016-08-07 | Make metavariables hygienic. | Jeffrey Seyfried | -5/+5 | |
| 2016-07-23 | macros: Improve `tt` fragments | Jeffrey Seyfried | -3/+13 | |
| 2016-07-06 | Auto merge of #34652 - jseyfried:fix_expansion_perf, r=nrc | bors | -2/+2 | |
| Fix expansion performance regression **syntax-[breaking-change] cc #31645** This fixes #34630 by reverting commit 5bf7970 of PR #33943, which landed in #34424. By removing the `Rc<_>` wrapping around `Delimited` and `SequenceRepetition` in `TokenTree`, 5bf7970 made cloning `TokenTree`s more expensive. While this had no measurable performance impact on the compiler's crates, it caused an order of magnitude performance regression on some macro-heavy code in the wild. I believe this is due to clones of `TokenTree`s in `macro_parser.rs` and/or `macro_rules.rs`. r? @nrc | ||||
| 2016-07-04 | Revert "Change `fold_tt` and `fold_tts` to take token trees by value ↵ | Jeffrey Seyfried | -2/+2 | |
| (instead of by reference)" This reverts commit 5bf7970ac70b4e7781e7b2f3816720aa62fac6fd. | ||||
| 2016-07-03 | prefer `if let` to match with `None => {}` arm in some places | Zack M. Davis | -6/+3 | |
| This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block. | ||||
| 2016-06-26 | Rollup merge of #33943 - jseyfried:libsyntax_cleanup, r=nrc | Jeffrey Seyfried | -2/+2 | |
| Miscellaneous low priority cleanup in `libsyntax`. | ||||
| 2016-06-26 | Rollup merge of #34385 - cgswords:tstream, r=nrc | Jeffrey Seyfried | -7/+7 | |
| syntax-[breaking-change] cc #31645 (Only breaking because ast::TokenTree is now tokenstream::TokenTree.) This pull request refactors TokenTrees into their own file as src/libsyntax/tokenstream.rs, moving them out of src/libsyntax/ast.rs, in order to prepare for an accompanying TokenStream implementation (per RFC 1566). | ||||
| 2016-06-23 | Move errors from libsyntax to its own crate | Jonathan Turner | -1/+1 | |
| 2016-06-21 | Refactored tokentrees into their own files in preparation for tokenstreams. ↵ | cgswords | -7/+7 | |
| Modified tests to point to the new file now. | ||||
| 2016-06-14 | Change `fold_tt` and `fold_tts` to take token trees by value (instead of by ↵ | Jeffrey Seyfried | -2/+2 | |
| reference) | ||||
| 2016-04-27 | Make some fatal lexer errors recoverable | mitaa | -1/+3 | |
| 2016-04-24 | syntax: Get rid of token::IdentStyle | Vadim Petrochenkov | -6/+6 | |
