Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add coverage mark for block local impls | Florian Diebold | 2021-06-20 | 1 | -1/+4 |
| | |||||
* | fix: don't add duplicate `&` during completion | Aleksey Kladov | 2021-06-20 | 2 | -68/+72 |
| | |||||
* | Merge #9344 | bors[bot] | 2021-06-20 | 1 | -24/+22 |
|\ | | | | | | | | | | | | | | | | | 9344: fix: rename works when invoked on a reference r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | fix: rename works when invoked on a reference | Aleksey Kladov | 2021-06-20 | 1 | -24/+22 |
| | | |||||
* | | Merge #9328 | bors[bot] | 2021-06-20 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 9328: internal: Update deps r=lnicola a=kjeremy Co-authored-by: kjeremy <[email protected]> | ||||
| * | | Update test | kjeremy | 2021-06-18 | 1 | -1/+1 |
| | | | |||||
* | | | Cleanup insert_use tests | Lukas Wirth | 2021-06-19 | 3 | -91/+78 |
| | | | |||||
* | | | Merge #9338 | bors[bot] | 2021-06-19 | 1 | -6/+1 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9338: minor: use minicore r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | | minor: use minicore | Aleksey Kladov | 2021-06-19 | 1 | -6/+1 |
| | | | | |||||
* | | | | Don't insert imports outside of cfg attributed items | Lukas Wirth | 2021-06-18 | 4 | -32/+118 |
| | | | | |||||
* | | | | Merge #9334 | bors[bot] | 2021-06-18 | 12 | -17/+89 |
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 12 | -17/+89 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 4 | -36/+18 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 2 | -69/+43 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 3 | -27/+10 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 3 | -85/+13 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 2 | -76/+43 |
| | | | | |||||
* | | | | internal: use minicore deref more | Aleksey Kladov | 2021-06-18 | 5 | -127/+81 |
| | | | | |||||
* | | | | internal: add index to minicore | Aleksey Kladov | 2021-06-18 | 2 | -38/+50 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 3 | -87/+69 |
| | | | | |||||
* | | | | minor: use minicore | Aleksey Kladov | 2021-06-18 | 3 | -17/+3 |
| |_|/ |/| | | |||||
* | | | internal: add Copy to minicore | Aleksey Kladov | 2021-06-18 | 3 | -307/+465 |
| |/ |/| | |||||
* | | Merge #9321 | bors[bot] | 2021-06-18 | 5 | -54/+275 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]> | ||||
| * | | Lift ast -> hir out of the for_each | rdambrosio | 2021-06-18 | 1 | -20/+18 |
| | | | |||||
| * | | Remove extra whitespace | rdambrosio | 2021-06-18 | 1 | -2/+2 |
| | | | |||||
| * | | Feat: inline generics in const and func trait completions | rdambrosio | 2021-06-18 | 5 | -38/+261 |
| | | | |||||
* | | | Avoid string allocation | Laurențiu Nicola | 2021-06-18 | 1 | -1/+1 |
| | | | |||||
* | | | Minor clippy perf fixes | Laurențiu Nicola | 2021-06-18 | 11 | -21/+22 |
|/ / | |||||
* | | Merge #9313 | bors[bot] | 2021-06-17 | 2 | -2/+5 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 9313: fix: Don't complete keywords in attributes inside expressions r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Don't complete keywords in attributes inside expressions | Lukas Wirth | 2021-06-17 | 2 | -2/+5 |
| | | | |||||
* | | | internal: retire famous_defs_fixture | Aleksey Kladov | 2021-06-17 | 3 | -38/+24 |
| | | | | | | | | | | | | This is now done declaratively via `minicore`. | ||||
* | | | minor: simplify | Aleksey Kladov | 2021-06-17 | 1 | -15/+12 |
| | | | |||||
* | | | internal: add derive and ord support to minicore | Aleksey Kladov | 2021-06-17 | 5 | -61/+130 |
| | | | |||||
* | | | Complete `repr` attribute parameters | Lukas Wirth | 2021-06-17 | 3 | -2/+202 |
| |/ |/| | |||||
* | | internal: add From to minicore | Aleksey Kladov | 2021-06-17 | 5 | -62/+129 |
| | | |||||
* | | minor: dead code | Aleksey Kladov | 2021-06-17 | 1 | -7/+0 |
| | | |||||
* | | internal: add default to minicore | Aleksey Kladov | 2021-06-17 | 6 | -78/+94 |
| | | |||||
* | | Merge #9315 | bors[bot] | 2021-06-17 | 81 | -354/+334 |
|\ \ | |/ |/| | | | | | | | | | | | 9315: Nest all the or-patterns! r=Veykril a=Veykril `cargo +nightly clippy --fix -Z unstable-options --allow-dirty -- -A clippy::all -D clippy::unnested_or_patterns` Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Fix parser tests for 1.53 | Lukas Wirth | 2021-06-17 | 54 | -198/+198 |
| | | |||||
| * | simplify | Lukas Wirth | 2021-06-17 | 3 | -11/+9 |
| | | |||||
| * | Nest all the or-patterns! | Lukas Wirth | 2021-06-17 | 25 | -150/+132 |
| | | |||||
* | | Correct completions in items tests | Lukas Wirth | 2021-06-17 | 5 | -24/+57 |
| | | |||||
* | | Move item specific completion tests | Lukas Wirth | 2021-06-17 | 6 | -71/+111 |
| | | |||||
* | | Less filtering in completion tests | Lukas Wirth | 2021-06-17 | 7 | -98/+96 |
|/ | |||||
* | Merge #9310 | bors[bot] | 2021-06-17 | 10 | -255/+299 |
|\ | | | | | | | | | | | | | | | 9310: internal: Refine and test UseTree completions r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Fix incorrect completions in empty braced use statement | Lukas Wirth | 2021-06-17 | 3 | -5/+18 |
| | | |||||
| * | Refine `self`, `super` and `crate` completion in use paths | Lukas Wirth | 2021-06-17 | 9 | -54/+47 |
| | | |||||
| * | Move out and rewrite UseTree completion tests | Lukas Wirth | 2021-06-17 | 5 | -224/+262 |
| | | |||||
* | | Merge #9308 | bors[bot] | 2021-06-17 | 2 | -13/+60 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -13/+60 |
| |/ |