| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-11-27 | remove some unused vars | Mark Mansi | -6/+6 | |
| 2018-11-27 | remove feature gate | Mark Mansi | -39/+7 | |
| 2018-11-27 | Auto merge of #55402 - estebank:macro-eof-2, r=nikomatsakis | bors | -14/+54 | |
| Point at end of macro arm when encountering EOF Fix #52866. | ||||
| 2018-11-23 | Reword EOF in macro arm message | Esteban Küber | -1/+4 | |
| 2018-11-23 | Keep label on moved spans and point at macro invocation on parse error | Esteban Küber | -8/+12 | |
| 2018-11-23 | Point at macro arm when it doesn't expand to an expression | Esteban Küber | -3/+7 | |
| 2018-11-23 | Reword incorrect macro invocation primary label | Esteban Küber | -8/+20 | |
| 2018-11-23 | Add label when replacing primary DUMMY_SP in macro expansion | Esteban Küber | -0/+1 | |
| 2018-11-23 | Point at end of macro arm when encountering EOF | Esteban Küber | -2/+18 | |
| Fix #52866 | ||||
| 2018-11-21 | macro_literal_matcher: fixes per petrochenkov's review | Dan Aloni | -3/+3 | |
| 2018-11-21 | Stabilize macro_literal_matcher | Dan Aloni | -18/+13 | |
| 2018-11-18 | resolve: Check resolution consistency for import paths and multi-segment ↵ | Vadim Petrochenkov | -0/+7 | |
| macro paths | ||||
| 2018-11-13 | Rollup merge of #55870 - waywardmonkeys:typo-fixes, r=wesleywiser | kennytm | -2/+2 | |
| 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 | -2/+2 | |
| 2018-11-08 | Rollup merge of #55777 - nnethercote:less-P-in-ast, r=petrochenkov | Mark Rousskov | -4/+4 | |
| Use `Lit` rather than `P<Lit>` in `ast::ExprKind`. Because it results in fewer allocations and small speedups on some benchmarks. | ||||
| 2018-11-08 | Use `Lit` rather than `P<Lit>` in `ast::ExprKind`. | Nicholas Nethercote | -4/+4 | |
| Because it results in fewer allocations and small speedups on some benchmarks. | ||||
| 2018-11-07 | Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco | kennytm | -1/+1 | |
| refactor: use shorthand fields refactor: use shorthand for single fields everywhere (excluding tests). | ||||
| 2018-11-06 | refactor: use shorthand fields | teresy | -1/+1 | |
| 2018-11-05 | Auto merge of #55451 - estebank:arg-doc, r=pnkfelix | bors | -3/+3 | |
| 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-03 | Added support for trait aliases as object types. | Alexander Regueiro | -1/+1 | |
| 2018-11-01 | Rollup merge of #55558 - nnethercote:tweak-MatcherPos-matches, r=petrochenkov | Pietro Albini | -6/+13 | |
| Tweak `MatcherPos::matches` These changes reduce instruction counts on `sentry-cli-check` incremental builds by up to 2%. | ||||
| 2018-11-01 | Rollup merge of #55542 - ljedrz:syntax_alloc_improvements, r=kennytm | Pietro Albini | -0/+2 | |
| syntax: improve a few allocations Add 2 `reserve`s and a `with_capacity` where the final vector size is known. | ||||
| 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-31 | syntax: improve a few allocations | ljedrz | -0/+2 | |
| 2018-10-31 | use String::from() instead of format!() macro to construct Strings. | Matthias Krüger | -1/+1 | |
| 2018-10-28 | Provide specific label for patern parsing error | Esteban Küber | -3/+3 | |
| 2018-10-26 | Auto merge of #54929 - csmoe:cfg_lint, r=petrochenkov | bors | -1/+1 | |
| Suggest to remove prefix `b` in cfg attribute lint string Closes #54926 r? @estebank | ||||
| 2018-10-26 | Rollup merge of #55358 - sinkuu:redundant_clone2, r=estebank | kennytm | -4/+3 | |
| Remove redundant clone (2) | ||||
| 2018-10-26 | Rollup merge of #55301 - estebank:macro-allowed, r=petrochenkov | kennytm | -44/+94 | |
| List allowed tokens after macro fragments Fix #34069. | ||||
| 2018-10-26 | Rollup merge of #55298 - estebank:macro-def, r=pnkfelix | kennytm | -13/+39 | |
| Point at macro definition when no rules expect token Fix #35150. | ||||
| 2018-10-26 | Rollup merge of #55292 - estebank:macro-eof, r=pnkfelix | kennytm | -5/+28 | |
| Macro diagnostics tweaks Fix #30128, fix #10951 by adding an appropriate span to the diagnostic. Fix #26288 by suggesting adding semicolon to macro call. | ||||
| 2018-10-26 | Remove redundant clone | Shotaro Yamada | -4/+3 | |
| 2018-10-26 | Give each PathSegment a NodeId | Nick Cameron | -2/+6 | |
| 2018-10-25 | List allowed tokens after macro fragments | Esteban Küber | -44/+94 | |
| 2018-10-25 | Rollup merge of #54977 - estebank:macro-arg-parse, r=pnkfelix | Pietro Albini | -1/+2 | |
| Accept `Option<Box<$t:ty>>` in macro argument Given the following code, compile successfuly: ``` macro_rules! test { ( fn fun() -> Option<Box<$t:ty>>; ) => { fn fun(x: $t) -> Option<Box<$t>> { Some(Box::new(x)) } } } test! { fn fun() -> Option<Box<i32>>; } ``` Fix #25274. | ||||
| 2018-10-24 | Fix incorrect semicolon suggestion | Esteban Küber | -1/+3 | |
| 2018-10-24 | Point to macro def span instead of whole body | Esteban Küber | -1/+1 | |
| 2018-10-23 | Point at macro definition when no rules expect token | Esteban Küber | -13/+39 | |
| 2018-10-23 | Modify invalid macro in expression context diagnostic | Esteban Küber | -4/+20 | |
| 2018-10-23 | Add macro call span when lacking any other span in diagnostic | Esteban Küber | -1/+6 | |
| 2018-10-20 | handle errors based on parse_sess | csmoe | -1/+1 | |
| 2018-10-12 | Add missing lifetime fragment specifier to error message. | Eric Huss | -5/+6 | |
| A very minor issue, `lifetime` was missing from the error list. I left `literal` in the list, even though it is unstable. It looks like it may stabilize soon anyways. | ||||
| 2018-10-10 | Accept `Option<Box<$t:ty>>` in macro argument | Esteban Küber | -1/+2 | |
| Given the following code, compile successfuly: ``` macro_rules! test { ( fn fun() -> Option<Box<$t:ty>>; ) => { fn fun(x: $t) -> Option<Box<$t>> { Some(Box::new(x)) } } } test! { fn fun() -> Option<Box<i32>>; } ``` | ||||
| 2018-10-05 | Rollup merge of #54833 - abonander:issue-54441, r=petrochenkov | Pietro Albini | -3/+1 | |
| make `Parser::parse_foreign_item()` return a foreign item or error Fixes `Parser::parse_foreign_item()` to follow the convention of `parse_trait_item()` and `parse_impl_item()` in that it *must* parse an item or return an error, and then the caller is responsible for detecting the closing delimiter. This prevents it from looping endlessly on an unexpected token in `ext/expand.rs` where it was also leaking memory by continually pushing to `Parser::expected_tokens` via `Parser::check_keyword()`. closes #54441 r? @petrochenkov cc @dtolnay | ||||
| 2018-10-05 | Auto merge of #54336 - petrochenkov:preuni, r=alexcrichton | bors | -43/+30 | |
| resolve: Some refactorings in preparation for uniform paths 2.0 The main result is that in-scope resolution performed during macro expansion / import resolution is now consolidated in a single function (`fn early_resolve_ident_in_lexical_scope`), which can now be used for resolving first import segments as well when uniform paths are enabled. r? @ghost | ||||
| 2018-10-05 | make `Parser::parse_foreign_item()` return a foreign item or error | Austin Bonander | -3/+1 | |
| closes #54441 | ||||
| 2018-10-05 | expansion: Remove restriction on use of macro attributes with test/bench | Vadim Petrochenkov | -43/+30 | |
| The restrictions were introduced in https://github.com/rust-lang/rust/pull/54277 and no longer necessary now because legacy plugins are now expanded in usual left-to-right order | ||||
| 2018-10-02 | Merge the `proc_macro_` expansion feature gates into a single ↵ | jeb | -13/+10 | |
| `proc_macro_hygiene` gate. | ||||
