Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #1884 | bors[bot] | 2019-09-20 | 2 | -0/+79 |
|\ | | | | | | | | | | | | | | | 1884: Add indexing to record_field_pat r=matklad a=kjeremy Fixes #1870 Co-authored-by: kjeremy <[email protected]> | ||||
| * | Add indexing to record_field_pat | kjeremy | 2019-09-20 | 2 | -0/+79 |
| | | |||||
* | | fix infinite loop in the parser | Aleksey Kladov | 2019-09-20 | 2 | -0/+53 |
|/ | | | | closes #1866 | ||||
* | don't confuse macro with != | Aleksey Kladov | 2019-09-20 | 2 | -0/+69 |
| | | | | closes #1871 | ||||
* | Merge #1848 | bors[bot] | 2019-09-15 | 7 | -5/+491 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 1848: Parse `..` as a full pattern r=matklad a=ecstatic-morse Resolves #1479. This PR implements [RFC 2707](https://github.com/rust-lang/rfcs/pull/2707) in the parser. It introduces a new `DotDotPat` AST node modeled on `PlaceholderPat` and changes the parsing of tuple and slice patterns to conform to the RFC. Notably, this PR does *not* change the resulting AST when `..` appears in a struct pattern (e.g. `Struct { a, b: c, .. }`). I *think* this is the behavior mandated by RFC 2707, but someone should confirm this. Co-authored-by: Dylan MacKenzie <[email protected]> | ||||
| * | Generate `dot_dot_test` | Dylan MacKenzie | 2019-09-15 | 2 | -0/+481 |
| | | |||||
| * | Bless old tests containing a `..` pattern | Dylan MacKenzie | 2019-09-15 | 5 | -5/+10 |
| | | |||||
* | | Add tests for underscores in `const` and `static` items | Dylan MacKenzie | 2019-09-15 | 3 | -38/+78 |
| | | |||||
* | | Allow an underscore as the identifier in `const` items | Dylan MacKenzie | 2019-09-15 | 1 | -0/+1 |
|/ | |||||
* | add a jointness parser tests | Aleksey Kladov | 2019-09-10 | 2 | -0/+55 |
| | | | | cc https://github.com/rust-lang/rust/issues/64242 | ||||
* | WIP: switch to fully decomposed tokens internally | Aleksey Kladov | 2019-09-10 | 2 | -0/+131 |
| | |||||
* | Fix outer doc-comments of `macro_rules` | uHOOCCOOHu | 2019-09-09 | 2 | -0/+42 |
| | |||||
* | better error recovery for use trees | Aleksey Kladov | 2019-09-05 | 3 | -1/+60 |
| | |||||
* | update test data | Aleksey Kladov | 2019-09-02 | 150 | -8970/+9245 |
| | |||||
* | Generate and bless tests | Dylan MacKenzie | 2019-08-24 | 7 | -85/+227 |
| | |||||
* | Centralize `box` pattern tests in `patterns.rs` | Dylan MacKenzie | 2019-08-24 | 1 | -0/+6 |
| | |||||
* | rename struct -> record, pos -> tuple | Aleksey Kladov | 2019-08-23 | 36 | -126/+126 |
| | |||||
* | Add test for nested box pattern | Dylan MacKenzie | 2019-08-22 | 2 | -12/+49 |
| | |||||
* | Merge #1685 | bors[bot] | 2019-08-15 | 4 | -0/+129 |
|\ | | | | | | | | | | | | | | | 1685: fix error of RangeFrom in for-loop r=DJMcNab a=bravomikekilo fix [issue-1542](https://github.com/rust-analyzer/rust-analyzer/issues/1542) @matklad Co-authored-by: bravomikekilo <[email protected]> | ||||
| * | fix test position | bravomikekilo | 2019-08-14 | 5 | -108/+124 |
| | | |||||
| * | fix test | bravomikekilo | 2019-08-14 | 1 | -2/+2 |
| | | |||||
| * | fix error of RangeFrom in for-loop | bravomikekilo | 2019-08-14 | 2 | -0/+113 |
| | | |||||
* | | Merge #1676 | bors[bot] | 2019-08-14 | 2 | -1/+83 |
|\ \ | |/ |/| | | | | | | | | | | | 1676: Fix for<'lifetime> for types specified by path r=matklad a=eupn Fixes #1467. Co-authored-by: Evgenii P <[email protected]> | ||||
| * | Fix for<'lifetime> for types specified by path | Evgenii P | 2019-08-11 | 2 | -1/+83 |
| | | |||||
* | | Merge #1636 | bors[bot] | 2019-08-13 | 2 | -0/+69 |
|\ \ | |/ |/| | | | | | | | | | | | 1636: fix block parse problem r=matklad a=bravomikekilo try to fix [issue-1598](https://github.com/rust-analyzer/rust-analyzer/issues/1598). Co-authored-by: bravomikekilo <[email protected]> | ||||
| * | add inline test | bravomikekilo | 2019-08-13 | 2 | -0/+69 |
| | | |||||
* | | Move numeric names inside of `NameRef` | Aleksey Kladov | 2019-08-09 | 3 | -7/+12 |
| | | |||||
* | | Parse tuple struct field initialization | Evgenii P | 2019-08-09 | 2 | -6/+28 |
| | | |||||
* | | Merge #1661 | bors[bot] | 2019-08-08 | 6 | -0/+555 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1661: Parse function parameters attributes r=matklad a=eupn Fixes #1397. The [RFC-2565](https://github.com/rust-lang/rfcs/blob/master/text/2565-formal-function-parameter-attributes.md) specifies `#[attributes]` to function parameters: ```rust fn foo(#[attr] a, #[unused] b, #[must_use] ...) { // ... } ``` This PR adds those attributes into grammar and to the parser, extending corresponding inline tests. Co-authored-by: Evgenii P <[email protected]> | ||||
| * | | Fix parser tests according to review | Evgenii P | 2019-08-08 | 18 | -485/+576 |
| | | | |||||
| * | | Fix variadic arg inline test | Evgenii P | 2019-08-07 | 2 | -24/+24 |
| | | | |||||
| * | | Add function parameters attributes | Evgenii P | 2019-08-07 | 12 | -21/+485 |
| |/ | |||||
* / | assoc types bounds | Aleksey Kladov | 2019-08-07 | 2 | -0/+56 |
|/ | |||||
* | move syntax tests to unit tests | Aleksey Kladov | 2019-07-24 | 470 | -0/+20115 |