Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename TypeParamList -> GenericParamList | Aleksey Kladov | 2020-07-30 | 15 | -22/+22 |
| | |||||
* | Rename TypeAliasDef -> TypeAlias | Aleksey Kladov | 2020-07-30 | 33 | -46/+46 |
| | |||||
* | Rename FnDef -> Fn | Aleksey Kladov | 2020-07-30 | 113 | -133/+133 |
| | |||||
* | Update tests | Aleksey Kladov | 2020-07-30 | 7 | -18/+18 |
| | |||||
* | Update tests | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Update tests | Aleksey Kladov | 2020-07-30 | 1 | -4/+4 |
| | |||||
* | Update tests | Aleksey Kladov | 2020-07-30 | 21 | -25/+25 |
| | |||||
* | Fix panic in split and merge import assists | Laurențiu Nicola | 2020-06-23 | 2 | -0/+16 |
| | |||||
* | Update parser tests with env var | Aleksey Kladov | 2020-06-15 | 1 | -1/+0 |
| | |||||
* | Add example of old trait object syntax | Matthew Jasper | 2020-06-11 | 2 | -1/+38 |
| | |||||
* | Move complex inline test to own file | Matthew Jasper | 2020-06-11 | 2 | -267/+1 |
| | |||||
* | Separating parsing of `for` in predicates and types | Matthew Jasper | 2020-06-10 | 4 | -273/+372 |
| | |||||
* | Correctly parse <_> paths in patterns | Aleksey Kladov | 2020-06-09 | 2 | -0/+39 |
| | | | | closes #3659 | ||||
* | Parse default unsafe fn | Avi Dessauer | 2020-06-08 | 2 | -0/+43 |
| | |||||
* | Move default const test out of line | Avi Dessauer | 2020-06-04 | 4 | -90/+0 |
| | |||||
* | Update tests | Avi Dessauer | 2020-06-04 | 6 | -0/+109 |
| | |||||
* | Parse default unsafe & default const | Avi Dessauer | 2020-06-04 | 1 | -14/+20 |
| | |||||
* | Support raw_ref_op's raw reference operator | robojumper | 2020-05-28 | 2 | -44/+134 |
| | |||||
* | Fix parsing of blocks without `{` | Aleksey Kladov | 2020-05-02 | 2 | -24/+0 |
| | |||||
* | Cleanup inline tests | Aleksey Kladov | 2020-05-02 | 8 | -30/+59 |
| | |||||
* | Update test data | Aleksey Kladov | 2020-05-02 | 110 | -5120/+4929 |
| | |||||
* | Merge #4227 | bors[bot] | 2020-04-30 | 2 | -25/+26 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4227: Report invalid, nested, multi-segment crate-paths r=matklad a=djrenren There was a bug in the previous path-validating code that didn't detect multi-segment paths that started with `crate`. ```rust // Successfully reported use foo::{crate}; // BUG: was not being reported use foo::{crate::bar}; ``` This was due to my confusion about path-associativity. That is, the path with no qualifier is the innermost path, not the outermost. I've updated the code with a lot of comments to explain what's going on. This bug was discovered when I found an erroneous `ok` test which I reported here: https://github.com/rust-analyzer/rust-analyzer/issues/4226 This test now fails and has been modified, hopefully in the spirit of the original test, to be correct. Sorry about submitting the bug in the first place! Co-authored-by: John Renner <[email protected]> | ||||
| * | Report invalid, nested, multi-segment crate-paths | John Renner | 2020-04-30 | 2 | -25/+26 |
| | | | | | | | | | | | | | | | | | | | | Specifically, things like: use foo::{crate::bar}; Are now being caught, when before we only caught: use foo::{crate}; | ||||
* | | Special-case try macro_rules | Edwin Cheng | 2020-04-30 | 2 | -0/+28 |
|/ | |||||
* | Special-case try macro to better support 2015 edition | Aleksey Kladov | 2020-04-30 | 2 | -0/+36 |
| | |||||
* | Convert tests to text-size | Aleksey Kladov | 2020-04-25 | 172 | -10327/+10327 |
| | |||||
* | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 3 | -21/+25 |
| | | | | | | The grammar now looks like this [name_ref :] pat | ||||
* | Make records grammar more orthogonal | Aleksey Kladov | 2020-04-11 | 3 | -4/+62 |
| | | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler | ||||
* | Rename some tokens | Aleksey Kladov | 2020-04-10 | 120 | -405/+405 |
| | |||||
* | Migrate tests .txt -> .rast | veetaha | 2020-04-06 | 171 | -0/+0 |
| | | | | | | | | The sytax tree output files now use .rast extension (rust-analyzer syntax tree or rust abstract syntax tree (whatever)). This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration that supplies nice syntax highlighting for .rast files. | ||||
* | Macro patterns are not confused with expressions. | Aleksey Kladov | 2020-04-03 | 1 | -10/+11 |
| | | | | | | | | | | | We treat macro calls as expressions (there's appropriate Into impl), which causes problem if there's expresison and non-expression macro in the same node (like in the match arm). We fix this problem by nesting macor patterns into another node (the same way we nest path into PathExpr or PathPat). Ideally, we probably should add a similar nesting for macro expressions, but that needs some careful thinking about macros in blocks: `{ am_i_expression!() }`. | ||||
* | Fix parsing lambdas with return type | Aleksey Kladov | 2020-03-25 | 2 | -0/+46 |
| | | | | | | | We should eat only a single block, and not whatever larger expression may start with a block. closes #3721 | ||||
* | Support arbitrary discriminants | Aleksey Kladov | 2020-03-20 | 2 | -0/+31 |
| | | | | Closes #3661 | ||||
* | Parse variadics correctly | Aleksey Kladov | 2020-03-13 | 2 | -2/+4 |
| | | | | closes #3571 | ||||
* | Move verbose tests out of line | Aleksey Kladov | 2020-03-13 | 8 | -387/+45 |
| | |||||
* | Fix parsing of stement-ish binary expressions | Aleksey Kladov | 2020-03-11 | 2 | -0/+41 |
| | | | | closes #3512 | ||||
* | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 17 | -20/+20 |
| | |||||
* | Parse attr in rhs of let stmts | Edwin Cheng | 2020-02-28 | 2 | -7/+35 |
| | |||||
* | ra_syntax: migrate test data to 0-length text-range of SyntaxError when ↵ | Veetaha | 2020-02-17 | 12 | -34/+34 |
| | | | | constructed from TextUnit | ||||
* | ra_syntax: reshape SyntaxError for the sake of removing redundancy | Veetaha | 2020-02-17 | 11 | -32/+32 |
| | |||||
* | Run cargo test | Han Mertens | 2020-02-12 | 1 | -0/+26 |
| | |||||
* | Run cargo xtask codegen | Han Mertens | 2020-02-12 | 1 | -0/+1 |
| | |||||
* | Address review comments | Matthew Jasper | 2020-02-10 | 2 | -7/+58 |
| | |||||
* | Update tests for or-patterns | Matthew Jasper | 2020-02-09 | 4 | -60/+184 |
| | |||||
* | Merge #3047 | bors[bot] | 2020-02-07 | 4 | -11/+11 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 3047: Update async unsafe fn ordering in parser r=matklad a=kiljacken As of rust-lang/rust#61319 the correct order for functions that are both unsafe and async is: `async unsafe fn` and not `unsafe async fn`. This commit updates the parser tests to reflect this, and corrects parsing behavior to accept the correct ordering. Fixes #3025 Co-authored-by: Emil Lauridsen <[email protected]> | ||||
| * | Update async unsafe fn ordering. | Emil Lauridsen | 2020-02-07 | 4 | -11/+11 |
| | | | | | | | | | | | | | | | | | | | | As of rust-lang/rust#61319 the correct order for functions that are both unsafe and async is: `async unsafe fn` and not `unsafe async fn`. This commit updates the parser tests to reflect this, and corrects parsing behavior to accept the correct ordering. Fixes #3025 | ||||
* | | Closure params test | Toby Dimmick | 2020-02-06 | 2 | -0/+73 |
| | | |||||
* | | Rework value parameter parsing | Toby Dimmick | 2020-02-06 | 10 | -103/+474 |
|/ | | | | | | | - `Fn__(...)` parameters with idents/patterns no longer parse - Trait function parameters with arbitrary patterns parse - Trait function parameters without idents/patterns no longer parse - `fn(...)` parameters no longer parse with patterns other than a single ident | ||||
* | Nest attrs into exprs in function args | Aleksey Kladov | 2020-01-17 | 1 | -10/+10 |
| | |||||
* | Merge pull request #2813 from jyn514/arg_attributes | Aleksey Kladov | 2020-01-17 | 2 | -0/+40 |
|\ | | | | | Allow attributes before function arguments |