| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-12-18 | Remove scope placeholders, remove method `add_macro` of `ext::base::Resolver`. | Jeffrey Seyfried | -32/+2 | |
| 2016-12-18 | Remove `MacroDef`'s fields `imported_from` and `allow_internal_unstable`, | Jeffrey Seyfried | -5/+2 | |
| remove `export` argument of `resolver.add_macro()`. | ||||
| 2016-12-07 | macros: fix the expected paths for a non-inline module matched by an `item` ↵ | Jeffrey Seyfried | -11/+13 | |
| fragment. | ||||
| 2016-11-22 | Clean up directory ownership semantics. | Jeffrey Seyfried | -6/+7 | |
| 2016-11-21 | Cleanup `InternedString`. | Jeffrey Seyfried | -4/+3 | |
| 2016-11-20 | Move `syntax::util::interner` -> `syntax::symbol`, cleanup. | Jeffrey Seyfried | -5/+6 | |
| 2016-11-12 | Remove extra level of nesting. | Mark-Simulacrum | -35/+32 | |
| 2016-11-12 | Move next_eis out of main loop to avoid re-allocating and dropping it. | Mark-Simulacrum | -1/+2 | |
| 2016-11-12 | Use SmallVector for eof and bb eis. | Mark-Simulacrum | -6/+4 | |
| 2016-11-12 | Factor out inner current Earley item loop. | Mark-Simulacrum | -146/+153 | |
| Change multiple functions to be non-public. Change nameize to accept an iterator so as to avoid an allocation. | ||||
| 2016-11-12 | Refactor parse_nt. | Mark-Simulacrum | -8/+13 | |
| 2016-11-12 | Factor out NamedParseResult. | Mark-Simulacrum | -4/+3 | |
| 2016-11-12 | Clean up extraneous &mut. | Mark-Simulacrum | -1/+1 | |
| 2016-11-12 | Refactor to extending from a drain instead of while looping. | Mark-Simulacrum | -3/+1 | |
| 2016-11-12 | Remove unused argument from nameize. | Mark-Simulacrum | -6/+6 | |
| Also makes nameize non-public since it's only locally used. | ||||
| 2016-11-12 | Cleanup macro_parser::parse, removing a few clones. | Mark-Simulacrum | -51/+35 | |
| 2016-11-04 | Remove field `TtReader::next_tok`. | Jeffrey Seyfried | -5/+0 | |
| 2016-11-04 | Improve `tt`-heavy expansion performance. | Jeffrey Seyfried | -3/+12 | |
| 2016-11-03 | Move doc comment desugaring into the parser. | Jeffrey Seyfried | -28/+2 | |
| 2016-11-03 | Avoid recontructing the `Parser` in `macro_parser.rs`. | Jeffrey Seyfried | -21/+16 | |
| 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 | -28/+31 | |
| `Token::Interpolated(Nonterminal)` -> `Token::Interpolated(Rc<Nonterminal>)`. | ||||
| 2016-10-29 | Move `CrateConfig` from `Crate` to `ParseSess`. | Jeffrey Seyfried | -9/+4 | |
| 2016-10-28 | Auto merge of #37373 - nnethercote:html5ever-more-more, r=nrc | bors | -11/+10 | |
| Avoid more allocations when compiling html5ever These three commits reduce the number of allocations performed when compiling html5ever from 13.2M to 10.8M, which speeds up compilation by about 2%. r? @nrc | ||||
| 2016-10-25 | Don't use `Rc` in `TokenTreeOrTokenTreeVec`. | Nicholas Nethercote | -3/+3 | |
| This avoids 800,000 allocations when compiling html5ever. | ||||
| 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-25 | Use `SmallVector` for the stack in `macro_parser::parse`. | Nicholas Nethercote | -6/+4 | |
| This avoids 800,000 heap allocations when compiling html5ever. | ||||
| 2016-10-24 | Refactor away fields `MacroDef::{use_locally, export}`. | Jeffrey Seyfried | -3/+2 | |
| 2016-10-22 | Auto merge of #37318 - nnethercote:html5ever-more, r=nrc,eddyb | bors | -14/+26 | |
| Avoid some allocations in the macro parser These three commits reduce the number of heap allocations done when compiling rustc-benchmarks/html5ever-2016-08-25 by 20%, from 16.5M to 13.3M. This speeds up (debug) compilation of it with a stage1 compiler by about 7%. | ||||
| 2016-10-21 | Replace the `String` in `ParseResult::Failure` with `Token`. | Nicholas Nethercote | -13/+25 | |
| This lets us delay creation of failure messages until they are needed, which avoids ~1.6M allocations in html5ever. | ||||
| 2016-10-21 | Avoid an unnecessary clone in `generic_extensions`. | Nicholas Nethercote | -2/+2 | |
| This avoids ~800,000 allocations in html5ever. | ||||
| 2016-10-21 | Avoid an unnecessary clone in `macro_parser::parse`. | Nicholas Nethercote | -1/+1 | |
| This avoids ~800,000 allocations in html5ever. | ||||
| 2016-10-19 | Improve `$crate`. | Jeffrey Seyfried | -38/+5 | |
| 2016-10-19 | Rollup merge of #37208 - jseyfried:fix_partially_consumed_tokens_in_macros, ↵ | Eduard-Mihai Burtescu | -12/+14 | |
| r=nrc macros: fix partially consumed tokens in macro matchers Fixes #37175. This PR also avoids re-transcribing the tokens consumed by a matcher (and cloning the `TtReader` once per matcher), which improves expansion performance of the test case from #34630 by ~8%. r? @nrc | ||||
| 2016-10-17 | Fix partially consumed tokens in macro matchers. | Jeffrey Seyfried | -12/+14 | |
| 2016-10-14 | Avoid many CrateConfig clones. | Nicholas Nethercote | -3/+3 | |
| This commit changes `ExtCtx::cfg()` so it returns a `CrateConfig` reference instead of a clone. As a result, it also changes all of the `cfg()` callsites to explicitly clone... except one, because the commit also changes `macro_parser::parse()` to take `&CrateConfig`. This is good, because that function can be hot, and `CrateConfig` is expensive to clone. This change almost halves the number of heap allocations done by rustc for `html5ever` in rustc-benchmarks suite, which makes compilation 1.20x faster. | ||||
| 2016-09-28 | Rollup merge of #36789 - jseyfried:non_inline_mod_in_block, r=nikomatsakis | Jonathan Turner | -1/+1 | |
| Allow more non-inline modules in blocks Currently, non-inline modules without a `#[path]` attribute are not allowed in blocks. This PR allows non-inline modules that have an ancestor module with a `#[path]` attribute, provided there is not a nearer ancestor block. For example, ```rust fn main() { #[path = "..."] mod foo { mod bar; //< allowed by this PR fn f() { mod bar; //< still an error } } } ``` Fixes #36772. r? @nikomatsakis | ||||
| 2016-09-28 | Allow non-inline modules in more places. | Jeffrey Seyfried | -1/+1 | |
| 2016-09-26 | Rollup merge of #36721 - TimNN:infinite-emptiness, r=nrc | Jonathan Turner | -1/+38 | |
| reject macros with empty repetitions Fixes #5067 by checking the lhs of `macro_rules!` for repetitions which could match an empty token tree. | ||||
| 2016-09-26 | reject macros with empty repetitions | Tim Neumann | -1/+38 | |
| 2016-09-26 | Refactor `ensure_complete_parse`. | Jeffrey Seyfried | -24/+11 | |
| 2016-09-26 | Remove `TokResult`. | Jeffrey Seyfried | -1/+1 | |
| 2016-09-26 | Refactor `parse_expansion` out of `ResultAnyMacro`. | Jeffrey Seyfried | -88/+12 | |
| 2016-09-24 | Load macros from `#[macro_use]` extern crates in `resolve`. | Jeffrey Seyfried | -4/+5 | |
| 2016-09-24 | Refactor `ext::tt::macro_rules::compile` to take a `ParseSess` instead of an ↵ | Jeffrey Seyfried | -39/+32 | |
| `ExtCtxt`. | ||||
| 2016-09-23 | reviewer comments and rebasing | Nick Cameron | -7/+4 | |
| 2016-09-15 | Remove `MacroRulesTT`. | Jeffrey Seyfried | -3/+36 | |
| 2016-09-13 | Move macro resolution into `librustc_resolve`. | Jeffrey Seyfried | -2/+2 | |
| 2016-09-05 | Refactor `SyntaxEnv`. | Jeffrey Seyfried | -2/+2 | |
| 2016-09-05 | In `Parser` and `ExtCtxt`, replace fields `filename` and `mod_path_stack` | Jeffrey Seyfried | -2/+1 | |
| with a single field `directory: PathBuf`. | ||||
