aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* internal: use minicore deref moreAleksey Kladov2021-06-185-127/+81
|
* internal: add index to minicoreAleksey Kladov2021-06-182-38/+50
|
* minor: use minicoreAleksey Kladov2021-06-183-87/+69
|
* minor: use minicoreAleksey Kladov2021-06-183-17/+3
|
* internal: add Copy to minicoreAleksey Kladov2021-06-183-307/+465
|
* Merge #9321bors[bot]2021-06-185-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_eachrdambrosio2021-06-181-20/+18
| |
| * Remove extra whitespacerdambrosio2021-06-181-2/+2
| |
| * Feat: inline generics in const and func trait completionsrdambrosio2021-06-185-38/+261
| |
* | Avoid string allocationLaurențiu Nicola2021-06-181-1/+1
| |
* | Minor clippy perf fixesLaurențiu Nicola2021-06-1811-21/+22
|/
* Merge #9313bors[bot]2021-06-172-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 expressionsLukas Wirth2021-06-172-2/+5
| |
* | internal: retire famous_defs_fixtureAleksey Kladov2021-06-173-38/+24
| | | | | | | | This is now done declaratively via `minicore`.
* | minor: simplifyAleksey Kladov2021-06-171-15/+12
| |
* | internal: add derive and ord support to minicoreAleksey Kladov2021-06-175-61/+130
| |
* | Complete `repr` attribute parametersLukas Wirth2021-06-173-2/+202
| |
* | internal: add From to minicoreAleksey Kladov2021-06-175-62/+129
| |
* | minor: dead codeAleksey Kladov2021-06-171-7/+0
| |
* | internal: add default to minicoreAleksey Kladov2021-06-176-78/+94
| |
* | Merge #9315bors[bot]2021-06-1781-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.53Lukas Wirth2021-06-1754-198/+198
| |
| * simplifyLukas Wirth2021-06-173-11/+9
| |
| * Nest all the or-patterns!Lukas Wirth2021-06-1725-150/+132
| |
* | Correct completions in items testsLukas Wirth2021-06-175-24/+57
| |
* | Move item specific completion testsLukas Wirth2021-06-176-71/+111
| |
* | Less filtering in completion testsLukas Wirth2021-06-177-98/+96
|/
* Merge #9310bors[bot]2021-06-1710-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 statementLukas Wirth2021-06-173-5/+18
| |
| * Refine `self`, `super` and `crate` completion in use pathsLukas Wirth2021-06-179-54/+47
| |
| * Move out and rewrite UseTree completion testsLukas Wirth2021-06-175-224/+262
| |
* | Merge #9308bors[bot]2021-06-172-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 assistLukas Wirth2021-06-172-13/+60
| |/
* | internal: remove dead codeAleksey Kladov2021-06-171-24/+0
| |
* | internal: switch some tests to minicoreAleksey Kladov2021-06-172-154/+37
| |
* | internal: minimize minicoreAleksey Kladov2021-06-173-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 minicoreAleksey Kladov2021-06-173-17/+50
| |
* | Merge #9304bors[bot]2021-06-166-159/+212
|\ \ | |/ |/| | | | | | | | | | | | | 9304: internal: cleanup tests r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * internal: cleanup testsAleksey Kladov2021-06-162-72/+140
| |
| * internal: switch some tests to minicoreAleksey Kladov2021-06-162-15/+8
| |
| * internal: add iterator to minicoreAleksey Kladov2021-06-162-39/+38
| |
| * internal: switch some tests to minicoreAleksey Kladov2021-06-161-15/+12
| |
| * internal: switch some tests to minicoreAleksey Kladov2021-06-161-19/+15
| |
* | Move test_utils into tests moduleLukas Wirth2021-06-1626-238/+194
| |
* | Don't complete paths after attributesLukas Wirth2021-06-167-135/+123
| |
* | Don't show incorrect completions after unsafe or visiblity nodeLukas Wirth2021-06-164-42/+38
| |
* | Don't complete visibility accessors after existing onesLukas Wirth2021-06-164-3/+24
| |
* | Start refactoring ide_completion testsLukas Wirth2021-06-169-247/+302
|/
* Merge #9302bors[bot]2021-06-161-7/+67
|\ | | | | | | | | | | | | | | 9302: internal: Add builtin derives to attribute completion fixtures r=Veykril a=Veykril bors R+ Co-authored-by: Lukas Wirth <[email protected]>
| * Don't complete already used derive attributesLukas Wirth2021-06-161-20/+20
| |