Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| |/ | |||||
* | | internal: remove dead code | Aleksey Kladov | 2021-06-17 | 1 | -24/+0 |
| | | |||||
* | | internal: switch some tests to minicore | Aleksey Kladov | 2021-06-17 | 2 | -154/+37 |
| | | |||||
* | | internal: minimize minicore | Aleksey Kladov | 2021-06-17 | 3 | -59/+36 |
| | | | | | | | | | | | | 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: switch some tests to minicore | Aleksey Kladov | 2021-06-17 | 3 | -17/+50 |
| | | |||||
* | | Merge #9304 | bors[bot] | 2021-06-16 | 6 | -159/+212 |
|\ \ | |/ |/| | | | | | | | | | | | | | 9304: internal: cleanup tests r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | internal: cleanup tests | Aleksey Kladov | 2021-06-16 | 2 | -72/+140 |
| | | |||||
| * | internal: switch some tests to minicore | Aleksey Kladov | 2021-06-16 | 2 | -15/+8 |
| | | |||||
| * | internal: add iterator to minicore | Aleksey Kladov | 2021-06-16 | 2 | -39/+38 |
| | | |||||
| * | 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 |
| | |