Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | algo::diff tests | Lukas Wirth | 2020-10-22 | 1 | -2/+326 |
| | |||||
* | Rewrite algo::diff to support insertion and deletion | Lukas Wirth | 2020-10-22 | 1 | -23/+64 |
| | |||||
* | Merge #6172 | bors[bot] | 2020-10-20 | 1 | -0/+3 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6172: Add qualify path assist r=matklad a=Veykril This implements a `qualify_path` assist which works quite similar to the `auto_import` assist but instead of adding imports to the file it well, qualifies the path. This PR also moves out the `AutoImportAssets` struct and functions from `auto_import` into a utils submodule as most of this is now shared between `auto_import` and `qualify_path`. Changes made to `AutoImportAssets` are solely in its `search_for_imports` function which now takes a prefixed parameter to discern between using `find_use_path_prefixed` and `find_use_path` as the former is the required behavior by `auto_import` and the latter by this assist. For missing imported traits instead of importing this will qualify the path with a trait cast as in: ```rust test_mod::TestStruct::TEST_CONST<|> ``` becomes ```rust <test_mod::TestStruct as test_mod::TestTrait>::TEST_CONST ``` and for trait methods ideally it would do the following: ```rust let test_struct = test_mod::TestStruct {}; test_struct.test_meth<|>od() ``` becomes ```rust let test_struct = test_mod::TestStruct {}; test_mod::TestTrait::test_method(&test_struct) ``` Fixes #4124. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Properly qualify trait methods in qualify_path assist | Lukas Wirth | 2020-10-15 | 1 | -0/+3 |
| | | |||||
* | | Extract call_info and completion into separate crates | Igor Aleksanov | 2020-10-18 | 2 | -0/+84 |
|/ | |||||
* | when generating new function, focus on return type instead of body | Benjamin Coenen | 2020-10-08 | 1 | -1/+11 |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | Cleanup | Aleksey Kladov | 2020-10-07 | 1 | -10/+13 |
| | |||||
* | Merge #6160 | bors[bot] | 2020-10-07 | 1 | -1/+44 |
|\ | | | | | | | | | | | | | | | 6160: Add validation check for ambiguous trait objects r=matklad a=Veykril Fixes #285. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add validation check for ambiguous trait objects | Lukas Wirth | 2020-10-06 | 1 | -1/+44 |
| | | |||||
* | | Document privacy invariant of SyntaxPtr | Aleksey Kladov | 2020-10-06 | 1 | -0/+2 |
|/ | |||||
* | Merge #6104 | bors[bot] | 2020-10-02 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | 6104: Minor clippy performance suggestions r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]> | ||||
| * | Minor clippy performance suggestions | kjeremy | 2020-09-30 | 1 | -1/+1 |
| | | |||||
* | | Up rustc-ap-rustc_lexer to 681 | kjeremy | 2020-10-01 | 1 | -4/+4 |
|/ | | | | cargo update as well | ||||
* | Merge #6019 | bors[bot] | 2020-09-29 | 1 | -5/+28 |
|\ | | | | | | | | | | | | | | | 6019: Remove make::path_from_text r=matklad a=Veykril This removes the `make::path_from_text` function, which according to a note should've been private. I removed it since it didn't really serve a purpose as it was simply wrapping `make::ast_from_text`. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Remove make::path_from_text | Lukas Wirth | 2020-09-16 | 1 | -5/+28 |
| | | |||||
* | | Rename impl edit method to be more explicit | Matt Hooper | 2020-09-21 | 1 | -1/+1 |
| | | |||||
* | | Add make utility for empty associated item lists | Matt Hooper | 2020-09-21 | 1 | -0/+4 |
| | | |||||
* | | Add edit utility for adding an associated item list to a impl def | Matt Hooper | 2020-09-21 | 1 | -0/+16 |
| | | |||||
* | | Add make::glob_use_tree function to create star-only UseTree | Lukas Wirth | 2020-09-16 | 1 | -0/+4 |
| | | |||||
* | | Reimplement import merging by making it recursive properly nesting all levels | Lukas Wirth | 2020-09-12 | 1 | -0/+1 |
|/ | |||||
* | Merge #5940 | bors[bot] | 2020-09-04 | 2 | -1/+84 |
|\ | | | | | | | | | | | | | | | 5940: Implement "Replace `impl Trait` function argument with the named generic" assist. r=matklad a=alekseysidorov Fixes #5085 Co-authored-by: Aleksei Sidorov <[email protected]> | ||||
| * | Remove unnecessary comma | Aleksei Sidorov | 2020-09-04 | 1 | -1/+0 |
| | | |||||
| * | Fix tests | Aleksei Sidorov | 2020-09-04 | 1 | -1/+1 |
| | | |||||
| * | Fix nitpicks | Aleksei Sidorov | 2020-09-04 | 1 | -17/+2 |
| | | |||||
| * | Resolve most of corner cases | Aleksei Sidorov | 2020-09-03 | 1 | -4/+22 |
| | | |||||
| * | Initial implementation of the #5085 issue | Aleksei Sidorov | 2020-09-03 | 2 | -0/+81 |
| | | |||||
* | | Impl make::blank_line | Lukas Wirth | 2020-09-03 | 1 | -1/+11 |
|/ | |||||
* | Unify naming | Aleksey Kladov | 2020-09-03 | 1 | -4/+4 |
| | |||||
* | Reduce path_from_text usage | Aleksey Kladov | 2020-08-31 | 1 | -0/+1 |
| | |||||
* | Remove dead code | Aleksey Kladov | 2020-08-31 | 1 | -14/+0 |
| | |||||
* | :arrow_up: crates | Aleksey Kladov | 2020-08-27 | 1 | -1/+1 |
| | |||||
* | Cleanup invert-if | Aleksey Kladov | 2020-08-25 | 1 | -6/+3 |
| | | | | | * stick to trivial factory functions in make * compress the logic for inverting Option/Result | ||||
* | Support extern types | Jonas Schievink | 2020-08-24 | 1 | -1/+7 |
| | |||||
* | Merge #5845 | bors[bot] | 2020-08-24 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | 5845: Omit lenses for not runnable doctests r=matklad a=SomeoneToIgnore Ideally, we should properly parse the doctest attributes before, but since I need it for the code lens only, this way should suffice for now Co-authored-by: Kirill Bulatov <[email protected]> | ||||
| * | Omit lenses for not runnable doctests | Kirill Bulatov | 2020-08-22 | 1 | -1/+1 |
| | | |||||
* | | Invert if should be smart about is_some, is_none, is_ok, is_err | dragfire | 2020-08-24 | 1 | -1/+7 |
|/ | |||||
* | :arrow_up: ungrammar | Aleksey Kladov | 2020-08-21 | 1 | -1/+2 |
| | |||||
* | Switch to expect_test from crates.io | Aleksey Kladov | 2020-08-21 | 1 | -1/+1 |
| | |||||
* | format | jDomantas | 2020-08-17 | 1 | -13/+9 |
| | |||||
* | fixup whitespace when adding missing impl items | jDomantas | 2020-08-14 | 1 | -3/+30 |
| | |||||
* | Remove deprecated function | Aleksey Kladov | 2020-08-13 | 1 | -0/+7 |
| | |||||
* | Cleanup **Move Guard** assist | Aleksey Kladov | 2020-08-13 | 1 | -0/+3 |
| | |||||
* | **Merge Imports** assist handles self | Aleksey Kladov | 2020-08-12 | 2 | -3/+11 |
| | |||||
* | Rename ra_syntax -> syntax | Aleksey Kladov | 2020-08-12 | 24 | -0/+9869 |