Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix var name | Daiki Ihara | 2021-06-21 | 1 | -7/+7 |
| | |||||
* | Fix pointed out | Daiki Ihara | 2021-06-21 | 1 | -5/+16 |
| | |||||
* | Fix extract_function with await | Daiki Ihara | 2021-06-21 | 1 | -2/+5 |
| | |||||
* | Cleanup insert_use tests | Lukas Wirth | 2021-06-19 | 1 | -58/+0 |
| | |||||
* | Don't insert imports outside of cfg attributed items | Lukas Wirth | 2021-06-18 | 2 | -6/+66 |
| | |||||
* | Merge #9334 | bors[bot] | 2021-06-18 | 4 | -3/+4 |
|\ | | | | | | | | | | | | | | | | | | | 9334: feat: Allow to disable import insertion on single path glob imports r=Veykril a=Veykril On by default as I feel like this is something the majority would prefer. Closes #8490 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Allow to disable import insertion on single path glob imports | Lukas Wirth | 2021-06-18 | 4 | -3/+4 |
| | | |||||
* | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 4 | -36/+18 |
| | | |||||
* | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 1 | -8/+3 |
| | | |||||
* | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 2 | -76/+43 |
| | | |||||
* | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 1 | -11/+1 |
| | | |||||
* | | internal: add Copy to minicore | Aleksey Kladov | 2021-06-18 | 1 | -302/+409 |
| | | |||||
* | | Merge #9321 | bors[bot] | 2021-06-18 | 3 | -165/+2 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9321: Inline generics in const and function trait completions r=Veykril a=RDambrosio016 This PR does a couple of things: - moves path_transform from ide_assists to ide_db to be shared by both assists and completions - when completing a const or a function for a trait, it will "inline" any generics in those associated items instead of leaving the generic's name. For example: ```rust trait Foo<T> { const BAR: T; fn foo() -> T; } struct Bar; impl Foo<u32> for Bar { // autocompletes to this fn foo() -> u32; // and not this (old) fn foo() -> T; // also works for associated consts and where clauses const BAR: u32 = /* */ } ``` Currently this does not work for const generics, because `PathTransform` does not seem to account for them. If this should work on const generics too, `PathTransform` will need to be changed. However, it is uncommon to implement a trait only for a single const value, so this isnt a huge concern. Co-authored-by: rdambrosio <[email protected]> | ||||
| * | | Feat: inline generics in const and func trait completions | rdambrosio | 2021-06-18 | 3 | -165/+2 |
| | | | |||||
* | | | Minor clippy perf fixes | Laurențiu Nicola | 2021-06-18 | 1 | -2/+2 |
|/ / | |||||
* | | minor: simplify | Aleksey Kladov | 2021-06-17 | 1 | -15/+12 |
| | | |||||
* | | internal: add derive and ord support to minicore | Aleksey Kladov | 2021-06-17 | 2 | -48/+67 |
|/ | |||||
* | internal: add From to minicore | Aleksey Kladov | 2021-06-17 | 2 | -50/+99 |
| | |||||
* | internal: add default to minicore | Aleksey Kladov | 2021-06-17 | 2 | -49/+75 |
| | |||||
* | simplify | Lukas Wirth | 2021-06-17 | 1 | -9/+7 |
| | |||||
* | Nest all the or-patterns! | Lukas Wirth | 2021-06-17 | 3 | -26/+32 |
| | |||||
* | Merge #9308 | bors[bot] | 2021-06-17 | 1 | -13/+52 |
|\ | | | | | | | | | | | | | | | 9308: fix: Create modules in correct directory for nested modules in move_module assist r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Create modules in correct directory for nested modules in move_module assist | Lukas Wirth | 2021-06-17 | 1 | -13/+52 |
| | | |||||
* | | internal: switch some tests to minicore | Aleksey Kladov | 2021-06-17 | 1 | -84/+37 |
| | | |||||
* | | internal: minimize minicore | Aleksey Kladov | 2021-06-17 | 1 | -53/+25 |
| | | | | | | | | | | | | We want to keep minicore small, so let's split out iterator adapters and sources into a separate `iterators` region, and use them only when needed. | ||||
* | | internal: cleanup tests | Aleksey Kladov | 2021-06-16 | 1 | -71/+114 |
| | | |||||
* | | internal: switch some tests to minicore | Aleksey Kladov | 2021-06-16 | 1 | -15/+12 |
| | | |||||
* | | internal: switch some tests to minicore | Aleksey Kladov | 2021-06-16 | 1 | -19/+15 |
|/ | |||||
* | internal: don't #[ignore] tests | Aleksey Kladov | 2021-06-15 | 2 | -35/+16 |
| | | | | See the style.md for motivation | ||||
* | internal: cleanup tests | Aleksey Kladov | 2021-06-15 | 2 | -610/+596 |
| | | | | | | * ensure standard, non-indented style (should add this check to `fixture` some day) * removed a couple of ignores | ||||
* | internal: document that we don't #[ignore] tests | Aleksey Kladov | 2021-06-15 | 1 | -16/+16 |
| | |||||
* | internal: cut deps between assists and diagnostics | Aleksey Kladov | 2021-06-14 | 1 | -127/+4 |
| | |||||
* | internal: prepare to move assist definitions | Aleksey Kladov | 2021-06-14 | 2 | -29/+27 |
| | |||||
* | Don't keep a trailing self token in import paths after unmerge_use | Lukas Wirth | 2021-06-14 | 1 | -1/+15 |
| | |||||
* | Merge #9242 | bors[bot] | 2021-06-13 | 22 | -37/+36 |
|\ | | | | | | | | | | | | | | | 9242: Clippy r=matklad a=Maan2003 Best viewed commit wise Co-authored-by: Maan2003 <[email protected]> | ||||
| * | cargo fmt | Maan2003 | 2021-06-13 | 1 | -2/+1 |
| | | |||||
| * | clippy::redundant_field_names | Maan2003 | 2021-06-13 | 1 | -1/+1 |
| | | |||||
| * | clippy::useless_return | Maan2003 | 2021-06-13 | 1 | -4/+4 |
| | | |||||
| * | clippy::redundant_closure | Maan2003 | 2021-06-13 | 2 | -3/+3 |
| | | |||||
| * | clippy::redudant_borrow | Maan2003 | 2021-06-13 | 19 | -28/+28 |
| | | |||||
* | | Merge #9240 | bors[bot] | 2021-06-13 | 1 | -1/+1 |
|\ \ | |/ |/| | | | | | | | | | | | 9240: Fixed a small typo in comment r=matklad a=fee1-dead Co-authored-by: fee1-dead <[email protected]> | ||||
| * | Fixed a small typo in comment | fee1-dead | 2021-06-11 | 1 | -1/+1 |
| | | |||||
* | | internal: cross-crate cov-marks | Aleksey Kladov | 2021-06-12 | 1 | -1/+1 |
| | | |||||
* | | Merge #9215 | bors[bot] | 2021-06-11 | 1 | -2/+9 |
|\ \ | |/ |/| | | | | | | | | | | | 9215: change visibility for use and macro items r=jonas-schievink a=Maan2003 Co-authored-by: Maan2003 <[email protected]> | ||||
| * | change visibility for use and macro items | Maan2003 | 2021-06-11 | 1 | -2/+9 |
| | | |||||
* | | Don't suggest Remove unused param in trait impls | Maan2003 | 2021-06-11 | 1 | -1/+29 |
|/ | |||||
* | fmt | Joshua Warner | 2021-06-06 | 1 | -3/+12 |
| | |||||
* | Refactor to be just one assist | Joshua Warner | 2021-06-05 | 3 | -532/+328 |
| | |||||
* | Add assist for converting a tuple enum variant to a named variant | Joshua Warner | 2021-06-05 | 2 | -0/+517 |
| | |||||
* | Don't inline mutable locals in 'inline_local_variable' | Lukas Wirth | 2021-06-04 | 1 | -0/+17 |
| |