| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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-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-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 | -7/+18 | |
| Point at macro definition when no rules expect token Fix #35150. | ||||
| 2018-10-26 | Rollup merge of #55292 - estebank:macro-eof, r=pnkfelix | kennytm | -1/+6 | |
| 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-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 | 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 | -7/+18 | |
| 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-09-26 | Remove OneVector | ljedrz | -8/+8 | |
| 2018-09-17 | Whitespace fix again. | Vitaly _Vi Shukela | -4/+4 | |
| 2018-09-17 | Fill in suggestions Applicability according to @estebank | Vitaly _Vi Shukela | -4/+4 | |
| Also fix some formatting along the way. | ||||
| 2018-09-16 | Remove usages of span_suggestion without Applicability | Vitaly _Vi Shukela | -1/+3 | |
| Use Applicability::Unspecified for all of them instead. | ||||
| 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 | -37/+38 | |
| 2018-08-28 | Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc. | Eduard-Mihai Burtescu | -14/+14 | |
| 2018-08-23 | Use optimized SmallVec implementation | Igor Gutorov | -2/+2 | |
| 2018-08-21 | Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor | kennytm | -3/+3 | |
| Fix typos found by codespell. | ||||
| 2018-08-19 | Stabilize macro_vis_matcher | Jakub Kozlowski | -13/+1 | |
| 2018-08-19 | Fix typos found by codespell. | Matthias Krüger | -3/+3 | |
| 2018-08-18 | Use the new Entry::or_default method where possible. | Eduard-Mihai Burtescu | -2/+1 | |
| 2018-08-13 | Move SmallVec and ThinVec out of libsyntax | ljedrz | -9/+9 | |
| 2018-08-07 | Suggest comma when missing in macro call | Esteban Küber | -2/+2 | |
| When missing a comma in a macro call, suggest it, regardless of position. When a macro call doesn't match any of the patterns, check if the call's token stream could be missing a comma between two idents, and if so, create a new token stream containing the comma and try to match against the macro patterns. If successful, emit the suggestion. | ||||
| 2018-08-06 | Suggest comma when writing `println!("{}" a);` | Esteban Küber | -1/+26 | |
| 2018-07-23 | make it a migration lint | mark | -3/+32 | |
| 2018-07-23 | Fix test and errors | mark | -266/+183 | |
| 2018-07-23 | Implement 2015 vs 2018 `?` kleene op + test | mark | -249/+476 | |
| 2018-07-17 | Auto merge of #52145 - ExpHP:drop-it-like-its-eof, r=nikomatsakis | bors | -1/+6 | |
| Fix macro parser quadratic complexity in small repeating groups Observed in #51754, and more easily demonstrated with the following: ```rust macro_rules! stress { ($($t:tt)+) => { }; } fn main() { stress!{ a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a // ... 65536 copies of "a" total ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a } } ``` which takes 50 seconds to compile prior to the fix and <1s after. I hope this has a visible impact on the compile times for real code. (I think it is most likely to affect incremental TT munchers that deal with large inputs, though it depends on how they are written) For a fuller description of the performance issue: https://github.com/rust-lang/rust/issues/51754#issuecomment-403242159 --- There is no test (yet) because I'm not sure how easily to measure this for regressions. | ||||
| 2018-07-16 | cleanup unnecessary else | Michael Lamparski | -6/+4 | |
| 2018-07-14 | Remove most of `Hash` impls from AST and HIR structures | Vadim Petrochenkov | -3/+3 | |
| 2018-07-14 | Remove most of `PartialEq` impls from AST and HIR structures | Vadim Petrochenkov | -4/+4 | |
| 2018-07-10 | Deny bare trait objects in in src/libsyntax | ljedrz | -2/+2 | |
| 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-30 | Fortify dummy span checking | Vadim Petrochenkov | -5/+5 | |
| 2018-06-30 | hygiene: Implement transparent marks | Vadim Petrochenkov | -0/+3 | |
| 2018-06-30 | expansion: Give names to some fields of `SyntaxExtension` | Vadim Petrochenkov | -1/+5 | |
| 2018-06-27 | Implement `#[macro_export(local_inner_macros)]` | Vadim Petrochenkov | -0/+7 | |
| 2018-06-23 | expansion: Rename `Expansion` to `AstFragment` | Vadim Petrochenkov | -5/+5 | |
