Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Simplify | Aleksey Kladov | 2020-05-04 | 1 | -13/+13 | |
| | | ||||||
* | | Support auto-import in macro | Edwin Cheng | 2020-05-02 | 5 | -19/+66 | |
|/ | ||||||
* | Add unwrap block assist #4156 | Benjamin Coenen | 2020-05-02 | 1 | -3/+2 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-05-02 | 8 | -91/+134 | |
|\ | ||||||
| * | Add missing members generates indented blocks | Aleksey Kladov | 2020-05-02 | 2 | -79/+119 | |
| | | ||||||
| * | Introduce EffectExpr | Aleksey Kladov | 2020-05-02 | 4 | -11/+12 | |
| | | ||||||
| * | Remove lower_path from AssistCtx to Semantic | Edwin Cheng | 2020-05-01 | 2 | -7/+4 | |
| | | ||||||
| * | Introduce LowerCtx for path lowering | Edwin Cheng | 2020-05-01 | 3 | -4/+9 | |
| | | ||||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-05-02 | 1 | -76/+13 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-05-01 | 1 | -46/+23 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-05-01 | 6 | -90/+237 | |
|\| | ||||||
| * | More principled approach for finding From trait | Aleksey Kladov | 2020-04-29 | 3 | -37/+94 | |
| | | ||||||
| * | Use specific pattern when translating if-let-else to match | Aleksey Kladov | 2020-04-29 | 4 | -20/+123 | |
| | | | | | | | | | | | | We *probably* should actually use the same machinery here, as we do for fill match arms, but just special-casing options and results seems to be a good first step. | |||||
| * | Move shared assist code to utils | Aleksey Kladov | 2020-04-29 | 3 | -48/+35 | |
| | | ||||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-04-29 | 2 | -3/+3 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-04-29 | 3 | -0/+456 | |
|/ | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Switch to TryFrom | Aleksey Kladov | 2020-04-25 | 4 | -6/+6 | |
| | ||||||
* | Convert tests to text-size | Aleksey Kladov | 2020-04-25 | 1 | -2/+1 | |
| | ||||||
* | Convert code to text-size | Aleksey Kladov | 2020-04-25 | 21 | -56/+56 | |
| | ||||||
* | Add `pub(crate)` to functions generated in other module | Timo Freiberg | 2020-04-21 | 1 | -46/+23 | |
| | ||||||
* | Jump to sourceChanges in other files | Timo Freiberg | 2020-04-21 | 2 | -13/+10 | |
| | ||||||
* | Add target file information to AssistAction | Timo Freiberg | 2020-04-21 | 3 | -16/+78 | |
| | ||||||
* | Make add_function generate functions in other modules via qualified path | Timo Freiberg | 2020-04-21 | 2 | -26/+197 | |
| | ||||||
* | Do not add default and closure types in 'add explicit type' assist | Kirill Bulatov | 2020-04-21 | 1 | -5/+43 | |
| | ||||||
* | Fix panic in split_imports assist | Aleksey Kladov | 2020-04-20 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | | The fix is admittedly quit literally just papering over. Long-term, I see two more principled approaches: * we switch to a fully tree-based impl, without parse . to_string step; with this approach, there shouldn't be any panics. The results might be nonsensical, but so was the original input. * we preserve the invariant that re-parsing constructed node is an identity, and make all the `make_xxx` method return an `Option`. closes #4044 | |||||
* | Some clippy fixes | Jeremy Kolb | 2020-04-19 | 3 | -3/+3 | |
| | ||||||
* | Change add_function assist to use todo!() | Timo Freiberg | 2020-04-13 | 2 | -28/+28 | |
| | ||||||
* | Fix PR | IceSentry | 2020-04-13 | 1 | -14/+8 | |
| | ||||||
* | Generalize test and clean up imports | IceSentry | 2020-04-13 | 1 | -8/+7 | |
| | ||||||
* | Fix double comma when merge imports on second line | IceSentry | 2020-04-13 | 1 | -3/+37 | |
| | | | | | | | | | | | This fixes the a bug when merging imports from the second line when it already has a comma it would previously insert a comma. There's probably a better way to check for a COMMA. This also ends up with a weird indentation, but rust-fmt can easily deal with it so I'm not sure how to resolve that. Closes #3832 | |||||
* | Remove more unnecessary braces | Laurențiu Nicola | 2020-04-12 | 1 | -2/+2 | |
| | ||||||
* | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 1 | -19/+13 | |
| | | | | | | The grammar now looks like this [name_ref :] pat | |||||
* | Merge #3925 | bors[bot] | 2020-04-11 | 3 | -0/+247 | |
|\ | | | | | | | | | | | | | | | | | | | 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]> | |||||
| * | Generate doc | Geoffrey Copin | 2020-04-11 | 1 | -0/+15 | |
| | | ||||||
| * | Fix doc tests | Geoffrey Copin | 2020-04-11 | 1 | -2/+1 | |
| | | ||||||
| * | Add documentation comment | Geoffrey Copin | 2020-04-11 | 1 | -0/+16 | |
| | | ||||||
| * | Avoid adding a RecordFieldPat variant to the Pat enum | Geoffrey Copin | 2020-04-11 | 1 | -39/+47 | |
| | | ||||||
| * | Remove Option unwraping | Geoffrey Copin | 2020-04-11 | 1 | -3/+3 | |
| | | ||||||
| * | Implement assist "Reorder field names" | Geoffrey Copin | 2020-04-09 | 2 | -0/+209 | |
| | | ||||||
* | | Change missing impl assist to use todo!() instead of unimplemented() | Chris Hopman | 2020-04-10 | 2 | -18/+18 | |
| | | | | | | | | | | | | | | | | | | | | | | | | todo!() "Indicates unfinished code" (https://doc.rust-lang.org/std/macro.todo.html) Rust documentation provides further clarification: > The difference between unimplemented! and todo! is that while todo! > conveys an intent of implementing the functionality later and the > message is "not yet implemented", unimplemented! makes no such claims. todo!() seems more appropriate for assists that insert missing impls. | |||||
* | | Rename some tokens | Aleksey Kladov | 2020-04-10 | 1 | -1/+2 | |
| | | ||||||
* | | Scale token generation back | Aleksey Kladov | 2020-04-10 | 2 | -3/+2 | |
| | | ||||||
* | | Convert more tokens | Aleksey Kladov | 2020-04-10 | 1 | -2/+2 | |
| | | ||||||
* | | Curley tokens | Aleksey Kladov | 2020-04-10 | 1 | -2/+2 | |
| | | ||||||
* | | Semicolon token | Aleksey Kladov | 2020-04-10 | 1 | -1/+1 | |
|/ | ||||||
* | Simpler acessors for keywords | Aleksey Kladov | 2020-04-09 | 1 | -1/+1 | |
| | ||||||
* | Be consistent about token accesors | Aleksey Kladov | 2020-04-09 | 2 | -2/+2 | |
| | ||||||
* | Add _token suffix to token accessors | Aleksey Kladov | 2020-04-09 | 4 | -5/+5 | |
| | | | | | 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 | -2/+2 | |
| | ||||||
* | Provide more complete AST accessors to support usage in rustc | Luca Barbieri | 2020-04-09 | 4 | -8/+9 | |
| |