Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Replace ImportGranularity::Guess with guessing boolean flag | Lukas Tobias Wirth | 2021-05-19 | 1 | -0/+1 | |
| | | ||||||
| * | MergeBehavior -> ImportGranularity | Lukas Tobias Wirth | 2021-05-18 | 1 | -2/+5 | |
| | | ||||||
* | | add_explicit_type respects `@` patterns | Dawer | 2021-05-19 | 1 | -5/+20 | |
|/ | ||||||
* | Extract function assist will add async if required | Jamie Cunliffe | 2021-05-17 | 1 | -2/+63 | |
| | | | | | The extract function assist will check for an AWAIT_EXPR in the body and if found, will add async to the generated function. | |||||
* | Merge #8845 | bors[bot] | 2021-05-16 | 1 | -12/+275 | |
|\ | | | | | | | | | | | | | | | 8845: Generate the impl block via generate_trait_impl_text_from_impl r=Veykril a=hi-rustin Try to close https://github.com/rust-analyzer/rust-analyzer/issues/8827 Co-authored-by: hi-rustin <[email protected]> | |||||
| * | Remove attrs | hi-rustin | 2021-05-15 | 1 | -5/+1 | |
| | | ||||||
| * | Address comments and add more tests | hi-rustin | 2021-05-15 | 1 | -25/+249 | |
| | | | | | | | | | | | | Fix tests Fmt code | |||||
| * | Generate the impl block via generate_trait_impl_text | hi-rustin | 2021-05-15 | 1 | -2/+45 | |
| | | ||||||
* | | internal: use standard test style | Aleksey Kladov | 2021-05-16 | 1 | -304/+305 | |
| | | ||||||
* | | internal: use mutable trees when filling match arms | Aleksey Kladov | 2021-05-16 | 1 | -8/+20 | |
| | | ||||||
* | | minor: use uniform names | Aleksey Kladov | 2021-05-16 | 12 | -30/+29 | |
| | | ||||||
* | | Merge #8813 | bors[bot] | 2021-05-16 | 3 | -2/+30 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 8813: Get some more array lengths! r=lf- a=lf- This is built on #8799 and thus contains its changes. I'll rebase it onto master when that one gets merged. It adds support for r-a understanding the length of: * `let a: [u8; 2] = ...` * `let a = b"aaa"` * `let a = [0u8; 4]` I have added support for getting the values of byte strings, which was not previously there. I am least confident in the correctness of this part and it probably needs some more tests, as we currently have only one test that exercised that part (!). Fixes #2922. Co-authored-by: Jade <[email protected]> | |||||
| * | Add more tests, refactor array lengths/consteval work | Jade | 2021-05-14 | 1 | -0/+28 | |
| | | | | | | | | | | | | | | | | | | | | | | Fix #2922: add unknown length as a condition for a type having unknown. Incorporate reviews: * Extract some of the const evaluation workings into functions * Add fixmes on the hacks * Add tests for impls on specific array lengths (these work!!! 😁) * Add tests for const generics (indeed we don't support it yet) | |||||
| * | Support length for ByteStrings | Jade | 2021-05-13 | 2 | -2/+2 | |
| | | | | | | | | I am not confident that my added byte string parsing is right. | |||||
* | | internal: use more mutable APIs | Aleksey Kladov | 2021-05-14 | 1 | -18/+16 | |
| | | ||||||
* | | internal: use standard style for tests | Aleksey Kladov | 2021-05-14 | 1 | -54/+99 | |
| | | ||||||
* | | internal: rewrite assoc item manipulaion to use mutable trees | Aleksey Kladov | 2021-05-14 | 3 | -14/+16 | |
| | | ||||||
* | | Merge #8814 | bors[bot] | 2021-05-13 | 1 | -5/+33 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 8814: fix: Keep doc comments and outer attrs on "Move module to file" assist r=Veykril a=Jesse-Bakker Fixes #8804 Co-authored-by: Jesse Bakker <[email protected]> | |||||
| * | | fix: Keep doc comments and outer attrs on "Move module to file" assist | Jesse Bakker | 2021-05-13 | 1 | -5/+33 | |
| | | | ||||||
* | | | Merge #8820 | bors[bot] | 2021-05-13 | 1 | -0/+26 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8820: fix: Return absolute paths in find_path if crate start is ambiguous r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | | Return absolute paths in find_path if crate start is ambiguous | Lukas Wirth | 2021-05-13 | 1 | -0/+26 | |
| | | | | ||||||
* | | | | Corrected minor typo on line 20 | mixio | 2021-05-13 | 1 | -1/+1 | |
| |_|/ |/| | | ||||||
* | | | Merge #8802 | bors[bot] | 2021-05-12 | 1 | -9/+126 | |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | 8802: Keep comments and attrs when extracting struct from enum variant r=Veykril a=DropDemBits Fixes #6730 Still unsure if existing visibilities of fields should be forced to pub (which is what was previously done), or if it's okay to keep it in the extracted struct. Co-authored-by: DropDemBits <[email protected]> | |||||
| * | | Keep comments and attrs when extracting struct from enum variant | DropDemBits | 2021-05-11 | 1 | -9/+126 | |
| | | | ||||||
* | | | Merge #8800 | bors[bot] | 2021-05-11 | 1 | -16/+34 | |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | 8800: feat: Make "pull assignments up" assist work in more cases r=Jesse-Bakker a=Jesse-Bakker Fixes #8771 Co-authored-by: Jesse Bakker <[email protected]> | |||||
| * | | Make "pull assignments up" assist work in more cases | Jesse Bakker | 2021-05-11 | 1 | -16/+34 | |
| | | | ||||||
* | | | Give MergeBehaviour variants better names | Lukas Wirth | 2021-05-10 | 2 | -3/+3 | |
| |/ |/| | ||||||
* | | simplify | Aleksey Kladov | 2021-05-10 | 1 | -12/+9 | |
| | | ||||||
* | | internal: introduce `ast::make::ext` module with common shortcuts | Aleksey Kladov | 2021-05-09 | 11 | -70/+48 | |
| | | | | | | | | | | | | | | | | | | | | There's a tension between keeping a well-architectured minimal orthogonal set of constructs, and providing convenience functions. Relieve this pressure by introducing an dedicated module for non-orthogonal shortcuts. This is inspired by the django.shortcuts module which serves a similar purpose architecturally. | |||||
* | | internal: fix make API | Aleksey Kladov | 2021-05-09 | 3 | -36/+18 | |
| | | ||||||
* | | internal: rewrite **Repalce impl Trait** assist to mutable syntax trees | Aleksey Kladov | 2021-05-09 | 1 | -11/+13 | |
| | | ||||||
* | | cleanups | Aleksey Kladov | 2021-05-09 | 3 | -5/+6 | |
| | | ||||||
* | | cleanups | Aleksey Kladov | 2021-05-09 | 3 | -15/+23 | |
| | | ||||||
* | | minor: fix test style | Aleksey Kladov | 2021-05-09 | 1 | -55/+31 | |
| | | ||||||
* | | Merge #8773 | bors[bot] | 2021-05-08 | 1 | -1/+1 | |
|\ \ | |/ |/| | | | | | | | | | | | 8773: fix: Correctly support SelfType when searching for usages r=Veykril a=Veykril Fixes #7443 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Correctly support SelfType when searching for usages | Lukas Wirth | 2021-05-08 | 1 | -1/+1 | |
| | | ||||||
* | | feat: add "mentoring instructions" test for pull up assist | Aleksey Kladov | 2021-05-08 | 1 | -1/+32 | |
| | | ||||||
* | | internal: pull_assignment_up uses mutable trees | Aleksey Kladov | 2021-05-08 | 1 | -69/+68 | |
| | | ||||||
* | | minor: add missing test | Aleksey Kladov | 2021-05-08 | 1 | -16/+36 | |
|/ | ||||||
* | internal: remove one more usage of SyntaxRewriter | Aleksey Kladov | 2021-05-08 | 1 | -56/+46 | |
| | ||||||
* | internal: remove one more syntax rewriter | Aleksey Kladov | 2021-05-08 | 2 | -64/+34 | |
| | ||||||
* | Merge #8711 | bors[bot] | 2021-05-04 | 3 | -14/+326 | |
|\ | | | | | | | | | | | | | | | | | | | 8711: Only resolve selected assist r=matklad a=SomeoneToIgnore Part of https://github.com/rust-analyzer/rust-analyzer/issues/8700 Now resolves only the assist that was selected out of the list, while before the whole assist list was resolved despite a single popup selection. Co-authored-by: Kirill Bulatov <[email protected]> | |||||
| * | Index retrieval fix | Kirill Bulatov | 2021-05-03 | 1 | -1/+1 | |
| | | ||||||
| * | Small fixes | Kirill Bulatov | 2021-05-03 | 1 | -2/+2 | |
| | | ||||||
| * | Tests added | Kirill Bulatov | 2021-05-03 | 1 | -1/+242 | |
| | | ||||||
| * | Add docs and use better naming | Kirill Bulatov | 2021-05-03 | 1 | -5/+20 | |
| | | ||||||
| * | Resolve single assist only | Kirill Bulatov | 2021-05-03 | 1 | -3/+36 | |
| | | ||||||
| * | Add a way to resolve certain assists | Kirill Bulatov | 2021-05-03 | 3 | -16/+39 | |
| | | ||||||
* | | internal: remove one more usage of the rewriter | Aleksey Kladov | 2021-05-04 | 2 | -23/+49 | |
| | | ||||||
* | | Don't mutate the tree while traversing in reorder_impl | Lukas Tobias Wirth | 2021-05-03 | 1 | -4/+36 | |
|/ |