Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge #3925 | bors[bot] | 2020-04-11 | 1 | -1/+0 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3925: Implement assist "Reorder field names" r=matklad a=geoffreycopin This PR implements the "Reorder record fields" assist as discussed in issue #3821 . Adding a `RecordFieldPat` variant to the `Pat` enum seemed like the easiest way to handle the `RecordPat` children as a single sequence of elements, maybe there is a better way ? Co-authored-by: Geoffrey Copin <[email protected]> | |||||
| * | | Avoid adding a RecordFieldPat variant to the Pat enum | Geoffrey Copin | 2020-04-11 | 1 | -2/+0 | |
| | | | ||||||
| * | | Implement assist "Reorder field names" | Geoffrey Copin | 2020-04-09 | 1 | -1/+2 | |
| | | | ||||||
* | | | Remove dead code | Aleksey Kladov | 2020-04-11 | 2 | -6/+5 | |
| | | | ||||||
* | | | Make records grammar more orthogonal | Aleksey Kladov | 2020-04-11 | 3 | -32/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler | |||||
* | | | Make incremental nameres test harder | Aleksey Kladov | 2020-04-11 | 1 | -0/+6 | |
| | | | ||||||
* | | | Avoid cyclic queries in name resolution when processing enums | Aleksey Kladov | 2020-04-11 | 3 | -15/+48 | |
| | | | ||||||
* | | | Align naming | Aleksey Kladov | 2020-04-11 | 4 | -6/+5 | |
| | | | ||||||
* | | | Remove code duplication | Aleksey Kladov | 2020-04-11 | 2 | -5/+2 | |
| | | | ||||||
* | | | Use Expander for cfg handling in structs | Aleksey Kladov | 2020-04-11 | 1 | -10/+10 | |
| | | | ||||||
* | | | Use Expander for cfg handling in impls | Aleksey Kladov | 2020-04-11 | 1 | -13/+14 | |
| | | | ||||||
* | | | Pull Expander up | Aleksey Kladov | 2020-04-11 | 3 | -11/+24 | |
| | | | ||||||
* | | | Simplify | Aleksey Kladov | 2020-04-11 | 2 | -8/+8 | |
| |/ |/| | ||||||
* | | Forward compat | Aleksey Kladov | 2020-04-10 | 3 | -7/+7 | |
| | | ||||||
* | | profile queries | Aleksey Kladov | 2020-04-10 | 1 | -0/+5 | |
| | | ||||||
* | | Semicolon token | Aleksey Kladov | 2020-04-10 | 1 | -1/+1 | |
| | | ||||||
* | | add record pat missing field diagnostic | Josh Mcguigan | 2020-04-10 | 2 | -28/+9 | |
|/ | ||||||
* | Simpler acessors for keywords | Aleksey Kladov | 2020-04-09 | 3 | -10/+8 | |
| | ||||||
* | use uniform accessor | Aleksey Kladov | 2020-04-09 | 1 | -1/+1 | |
| | ||||||
* | Merge #3918 | bors[bot] | 2020-04-09 | 4 | -45/+82 | |
|\ | | | | | | | | | | | | | | | | | 3918: Add support for feature attributes in struct literal r=matklad a=bnjjj As promised here is the next PR to solve 2 different scenarios with feature flag on struct literal. close #3870 Co-authored-by: Benjamin Coenen <[email protected]> | |||||
| * | feat: add support for feature attributes in struct literal | Benjamin Coenen | 2020-04-09 | 5 | -5/+16 | |
| |\ | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
| * | | feat: add support for feature attributes in struct literal | Benjamin Coenen | 2020-04-09 | 4 | -45/+82 | |
| | | | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | | Be consistent about token accesors | Aleksey Kladov | 2020-04-09 | 5 | -9/+12 | |
| | | | ||||||
* | | | Add _token suffix to token accessors | Aleksey Kladov | 2020-04-09 | 2 | -2/+2 | |
| |/ |/| | | | | | | | I think this makes is more clear which things are : AstNode and which are : AstToken | |||||
* | | Scale back to only two traits | Aleksey Kladov | 2020-04-09 | 1 | -1/+0 | |
| | | ||||||
* | | Provide more complete AST accessors to support usage in rustc | Luca Barbieri | 2020-04-09 | 5 | -5/+17 | |
|/ | ||||||
* | feat: add attributes support on struct fields and method #3870 | Benjamin Coenen | 2020-04-08 | 2 | -31/+24 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-04-07 | 1 | -0/+5 | |
|\ | ||||||
| * | Check for eprintln on CI | Aleksey Kladov | 2020-04-06 | 1 | -0/+5 | |
| | | ||||||
* | | feat: add attributes support on struct fields #3870 | Benjamin Coenen | 2020-04-07 | 2 | -4/+33 | |
|/ | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Fix inference of function pointer return types | Laurențiu Nicola | 2020-04-05 | 1 | -1/+5 | |
| | ||||||
* | Macro patterns are not confused with expressions. | Aleksey Kladov | 2020-04-03 | 1 | -2/+1 | |
| | | | | | | | | | | | 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!() }`. | |||||
* | lower bool literal with the value from source code rather than default bool ↵ | Josh Mcguigan | 2020-04-01 | 1 | -1/+1 | |
| | | | | value | |||||
* | lower literal patterns | Josh Mcguigan | 2020-04-01 | 1 | -21/+33 | |
| | ||||||
* | Nice string formatting | Aleksey Kladov | 2020-03-28 | 2 | -2/+5 | |
| | ||||||
* | Merge #3727 | bors[bot] | 2020-03-26 | 1 | -4/+12 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 3727: Introduce ra_proc_macro r=matklad a=edwin0cheng This PR implemented: 1. Reading dylib path of proc-macro crate from cargo check , similar to how `OUTDIR` is obtained. 2. Added a new crate `ra_proc_macro` and implement the foot-work for reading result from external proc-macro expander. 3. Added a struct `ProcMacroClient` , which will be responsible to the client side communication to the External process. Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | Remove deps on tt_mbe | Edwin Cheng | 2020-03-26 | 1 | -3/+3 | |
| | | ||||||
| * | Add ProcMacroClient | Edwin Cheng | 2020-03-25 | 1 | -5/+13 | |
| | | ||||||
* | | Get rid of ItemOrMacro | Aleksey Kladov | 2020-03-26 | 2 | -6/+8 | |
| | | ||||||
* | | Minor incremental tests cleanup | Aleksey Kladov | 2020-03-26 | 1 | -8/+8 | |
| | | ||||||
* | | Cleanup memory usage stats | Aleksey Kladov | 2020-03-25 | 1 | -6/+1 | |
|/ | ||||||
* | fix typo of visibility_of | Edwin Cheng | 2020-03-25 | 1 | -1/+1 | |
| | ||||||
* | Remove collect proc_macro definitions | Edwin Cheng | 2020-03-25 | 1 | -23/+23 | |
| | ||||||
* | Rename to CustomDerive | Edwin Cheng | 2020-03-25 | 1 | -1/+1 | |
| | ||||||
* | Refactoring a bit | Edwin Cheng | 2020-03-25 | 1 | -2/+5 | |
| | ||||||
* | Add basic custom derive lowering | Edwin Cheng | 2020-03-25 | 2 | -8/+57 | |
| | ||||||
* | Add ItemScope::visibility_of | Edwin Cheng | 2020-03-24 | 1 | -0/+6 | |
| | ||||||
* | Merge #3684 | bors[bot] | 2020-03-22 | 1 | -1/+1 | |
|\ | | | | | | | | | | | | | | | 3684: ra_hir_def: fix typo r=edwin0cheng a=Veetaha Co-authored-by: veetaha <[email protected]> | |||||
| * | ra_hir_def: fix typo | veetaha | 2020-03-22 | 1 | -1/+1 | |
| | | ||||||
* | | Add support for macro in symbo_index | Edwin Cheng | 2020-03-22 | 1 | -11/+1 | |
| | |