| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-01-09 | Change `String` to `&'static str` in `ParseResult::Failure`. | Nicholas Nethercote | -3/+3 | |
| This avoids 770,000 allocations when compiling the `html5ever` benchmark, reducing instruction counts by up to 2%. | ||||
| 2019-01-03 | Fix repeated word typos | Wiktor Kuchta | -1/+1 | |
| Found with `git grep -P '\b([a-z]+)\s+\1\b'` | ||||
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -4/+4 | |
| 2018-12-04 | Remove redundant clone | Shotaro Yamada | -1/+1 | |
| 2018-11-23 | Reword incorrect macro invocation primary label | Esteban Küber | -4/+9 | |
| 2018-11-23 | Point at end of macro arm when encountering EOF | Esteban Küber | -2/+9 | |
| Fix #52866 | ||||
| 2018-11-13 | Rollup merge of #55870 - waywardmonkeys:typo-fixes, r=wesleywiser | kennytm | -1/+1 | |
| Fix typos. | ||||
| 2018-11-12 | Make `MatcherPos::stack` a `SmallVec`. | Niko Matsakis | -34/+57 | |
| This avoids some allocations. | ||||
| 2018-11-11 | Fix typos. | Bruce Mitchener | -1/+1 | |
| 2018-11-05 | Auto merge of #55451 - estebank:arg-doc, r=pnkfelix | bors | -1/+1 | |
| Custom diagnostic when trying to doc comment argument When writing ``` pub fn f( /// Comment id: u8, ) {} ``` Produce a targeted diagnostic ``` error: documentation comments cannot be applied to method arguments --> $DIR/fn-arg-doc-comment.rs:2:5 | LL | /// Comment | ^^^^^^^^^^^ doc comments are not allowed here ``` Fix #54801. | ||||
| 2018-11-01 | Use `SmallVec` for the inner vectors in `MatcherPos::matches`. | Nicholas Nethercote | -5/+7 | |
| This avoids some allocations. | ||||
| 2018-11-01 | Share empty `Vec`s more within `MatcherPos::matches`. | Nicholas Nethercote | -4/+9 | |
| `create_matches` creates a `Vec<Rc<Vec<NamedMatch>>>`. Even though all the inner `Vec`s are empty, each one is created separately. This commit changes `create_matches` so it instead creates one empty inner `Vec`, and shares it. The commit also changes `MatcherPos::matches` to a boxed slice, because its length doesn't change. | ||||
| 2018-10-28 | Provide specific label for patern parsing error | Esteban Küber | -1/+1 | |
| 2018-09-26 | Remove OneVector | ljedrz | -6/+6 | |
| 2018-09-08 | Rename sp_lo to sp_open | David Tolnay | -10/+10 | |
| 2018-09-08 | Track distinct spans for open and close delimiter | David Tolnay | -8/+8 | |
| 2018-08-28 | Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc. | Eduard-Mihai Burtescu | -5/+5 | |
| 2018-08-23 | Use optimized SmallVec implementation | Igor Gutorov | -1/+1 | |
| 2018-08-19 | Fix typos found by codespell. | Matthias Krüger | -2/+2 | |
| 2018-08-13 | Move SmallVec and ThinVec out of libsyntax | ljedrz | -7/+7 | |
| 2018-07-16 | cleanup unnecessary else | Michael Lamparski | -6/+4 | |
| 2018-07-07 | fix perf issue in macro parser | Michael Lamparski | -1/+8 | |
| For a fuller description of the performance issue fixed by this: https://github.com/rust-lang/rust/issues/51754#issuecomment-403242159 | ||||
| 2018-06-10 | Enable fall through past $:lifetime matcher | David Tolnay | -0/+8 | |
| 2018-05-27 | innacurate -> inaccurate | Takanori Ishibashi | -1/+1 | |
| 2018-05-26 | Add `Ident::as_str` helper | Vadim Petrochenkov | -2/+2 | |
| 2018-05-20 | Auto merge of #50855 - nnethercote:fewer-macro_parser-allocs, r=petrochenkov | bors | -23/+71 | |
| Speed up the macro parser These three commits reduce the number of allocations done by the macro parser, in some cases dramatically. For example, for a clean check builds of html5ever, the number of allocations is reduced by 40%. Here are the rustc-benchmarks that are sped up by at least 1%. ``` html5ever-check avg: -6.6% min: -10.3% max: -4.1% html5ever avg: -5.2% min: -9.5% max: -2.8% html5ever-opt avg: -4.3% min: -9.3% max: -1.6% crates.io-check avg: -1.8% min: -2.9% max: -0.6% crates.io-opt avg: -1.0% min: -2.2% max: -0.1% crates.io avg: -1.1% min: -2.2% max: -0.2% ``` | ||||
| 2018-05-18 | Introduce `MatcherPosHandle`. | Nicholas Nethercote | -11/+59 | |
| This lets us store most `MatcherPos` instances on the stack. This speeds up various runs of html5ever, the best by 3%. | ||||
| 2018-05-17 | Change `TokenTreeOrTokenTreeVec` to `TokenTreeOrTokenTreeSlice`. | Nicholas Nethercote | -19/+19 | |
| This avoids a `to_owned` call that can be hot, speeding up the various runs of html5ever by 1--5%, and some runs of crates.io by 2--3%. | ||||
| 2018-05-13 | Macros: Add a 'literal' fragment specifier | Dan Aloni | -0/+2 | |
| Implements RFC 1576. See: https://github.com/rust-lang/rfcs/blob/master/text/1576-macros-literal-matcher.md Changes are mostly in libsyntax, docs, and tests. Feature gate is enabled for 1.27.0. Many thanks to Vadim Petrochenkov for following through code reviews and suggestions. Example: ````rust macro_rules! test_literal { ($l:literal) => { println!("literal: {}", $l); }; ($e:expr) => { println!("expr: {}", $e); }; } fn main() { let a = 1; test_literal!(a); test_literal!(2); test_literal!(-3); } ``` Output: ``` expr: 1 literal: 2 literal: -3 ``` | ||||
| 2018-05-03 | check if the token is a lifetime before parsing | rleungx | -1/+7 | |
| 2018-04-06 | Make lifetime nonterminals closer to identifier nonterminals | Vadim Petrochenkov | -2/+2 | |
| 2018-04-06 | Remove more duplicated spans | Vadim Petrochenkov | -1/+1 | |
| 2018-04-06 | Get rid of `SpannedIdent` | Vadim Petrochenkov | -3/+3 | |
| 2018-03-18 | Return a is_raw parameter from Token::ident rather than having separate methods. | Lymia Aluysia | -2/+2 | |
| 2018-03-18 | Initial implementation of RFC 2151, Raw Identifiers | Lymia Aluysia | -9/+10 | |
| 2018-03-17 | Reject `_` in `ident` matcher | Vadim Petrochenkov | -17/+19 | |
| 2018-03-17 | syntax: Make `_` an identifier | Vadim Petrochenkov | -2/+1 | |
| 2018-01-30 | Update a few comments | Mark Mansi | -1/+0 | |
| 2018-01-30 | Fix trailing whitespace | Mark Mansi | -1/+1 | |
| 2018-01-30 | Attempted fix for `?` kleene op | Mark Mansi | -23/+21 | |
| 2018-01-30 | Run rustfmt on macro_parser.rs | Mark Mansi | -4/+6 | |
| 2018-01-30 | Update the macro parser to allow at most once repetitions for `?` Kleene | Mark Mansi | -16/+22 | |
| 2018-01-29 | Update comment | Mark Mansi | -1/+2 | |
| 2018-01-26 | A few more comments | Mark Mansi | -0/+8 | |
| 2018-01-26 | Still more comments | Mark Mansi | -2/+26 | |
| 2018-01-26 | Added/improved comments | Mark Mansi | -17/+61 | |
| 2018-01-26 | Added lots of comments + minor reorganization | Mark Mansi | -34/+94 | |
| 2018-01-26 | Added a bunch of comments to macro_parser.rs | Mark Mansi | -10/+62 | |
| 2018-01-26 | Run rustfmt on /libsyntax/ext/tt/macro_parser.rs | Mark Mansi | -78/+114 | |
