aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add test for nested box patternDylan MacKenzie2019-08-222-12/+49
|/
* Don't add `?` bounds as real boundsAleksey Kladov2019-08-221-0/+12
| | | | closes #1709
* :arrow_up: rustc_lexerAleksey Kladov2019-08-203-117/+75
|
* remove ast::*Kind enumsAleksey Kladov2019-08-192-353/+347
| | | | With the new owned trees, we don't need an indirection here
* use new quote-generated astAleksey Kladov2019-08-182-1289/+1408
|
* use quote! macro to generate grammarAleksey Kladov2019-08-181-27/+27
| | | | | We already use syn&quote elsewhere (transitively), so it make sense to cut down on the number of technologies and get rid of tera
* deserialize grammarAleksey Kladov2019-08-181-53/+53
|
* Introduce separate hir::BinaryOpAleksey Kladov2019-08-171-6/+0
| | | | | Unlike ast::BinOp, it has significantly more structure to it, so it's easier to, say, handle all assignment-like operations in the same way.
* implement accessors for IndexExprAleksey Kladov2019-08-171-0/+9
|
* simplifyAleksey Kladov2019-08-171-35/+36
|
* Merge #1685bors[bot]2019-08-154-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 positionbravomikekilo2019-08-145-108/+124
| |
| * fix testbravomikekilo2019-08-141-2/+2
| |
| * fix error of RangeFrom in for-loopbravomikekilo2019-08-142-0/+113
| |
* | Merge #1676bors[bot]2019-08-142-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 pathEvgenii P2019-08-112-1/+83
| |
* | Merge #1636bors[bot]2019-08-132-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 testbravomikekilo2019-08-132-0/+69
| | |
* | | Lower fully qualified associated type pathsFlorian Diebold2019-08-121-0/+10
| |/ |/| | | | | I.e. `<T as Trait>::Foo`.
* | Move numeric names inside of `NameRef`Aleksey Kladov2019-08-095-25/+32
| |
* | Parse tuple struct field initializationEvgenii P2019-08-092-6/+28
| |
* | Change macro to functionEvgenii P2019-08-091-15/+13
| |
* | rustfmtEvgenii P2019-08-091-10/+10
| |
* | Reduce code duplication in lexer by introducing small macroEvgenii P2019-08-091-20/+17
| |
* | Merge #1661bors[bot]2019-08-088-0/+559
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 reviewEvgenii P2019-08-0818-485/+576
| | |
| * | Fix variadic arg inline testEvgenii P2019-08-072-24/+24
| | |
| * | Add function parameters attributesEvgenii P2019-08-0714-21/+489
| | |
* | | assoc types boundsAleksey Kladov2019-08-072-0/+56
|/ /
* | Merge #1640bors[bot]2019-08-041-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | 1640: Bump deps r=matklad a=lnicola `insta`, `unicode-xid` and others Co-authored-by: LaurenČ›iu Nicola <[email protected]>
| * | Bump depsLaurențiu Nicola2019-08-041-1/+0
| |/
* | Unconditionally trim the end of commentskjeremy2019-07-312-13/+5
| |
* | Removes `*/` in block doc commentskjeremy2019-07-312-2/+62
|/
* Add explicit newline preserving testskjeremy2019-07-311-0/+17
|
* Add merge_match_arm assist, bump rowan to 0.6.1Phil Ellison2019-07-291-1/+1
|
* Merge #1604bors[bot]2019-07-291-3/+19
|\ | | | | | | | | | | | | | | 1604: Fix failing type interference for floating point literal r=matklad a=theotherphil Fixes https://github.com/rust-analyzer/rust-analyzer/issues/1592 Co-authored-by: Phil Ellison <[email protected]>
| * cargo formatPhil Ellison2019-07-281-3/+1
| |
| * Add special case for f32 and f43 suffices on Literal.kindPhil Ellison2019-07-282-17/+21
| |
| * Add issue link and trailing newlinePhil Ellison2019-07-281-1/+2
| |
| * More direct failing testPhil Ellison2019-07-281-0/+13
| |
* | move syntax tests to unit testsAleksey Kladov2019-07-24510-10/+9
| |
* | Merge #1584bors[bot]2019-07-243-526/+88
|\ \ | | | | | | | | | | | | | | | | | | | | | 1584: switch to upstream unescape r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | switch to upstream unescapeAleksey Kladov2019-07-243-526/+88
| | |
* | | Merge #1583bors[bot]2019-07-241-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 1583: :arrow_up: rowan r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | :arrow_up: rowanAleksey Kladov2019-07-241-1/+1
| |/
* | Merge #1573bors[bot]2019-07-242-6/+66
|\ \ | |/ |/| | | | | | | | | | | 1573: fix: parse box syntax inside parentheses r=matklad a=csmoe r? @matklad Co-authored-by: csmoe <[email protected]>
| * fix: parse box syntax inside parenthesescsmoe2019-07-222-6/+66
| |
* | kill old lexerAleksey Kladov2019-07-226-571/+17
| |
* | add rustc_lexerAleksey Kladov2019-07-227-25/+149
|/
* simiplifyAleksey Kladov2019-07-212-11/+10
|