aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup insert_use testsLukas Wirth2021-06-191-32/+77
|
* Don't insert imports outside of cfg attributed itemsLukas Wirth2021-06-181-25/+45
|
* Merge #9334bors[bot]2021-06-182-13/+67
|\ | | | | | | | | | | | | | | | | | | 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 importsLukas Wirth2021-06-182-13/+67
| |
* | Feat: inline generics in const and func trait completionsrdambrosio2021-06-182-0/+161
| |
* | internal: retire famous_defs_fixtureAleksey Kladov2021-06-172-28/+9
| | | | | | | | This is now done declaratively via `minicore`.
* | internal: add derive and ord support to minicoreAleksey Kladov2021-06-171-10/+0
|/
* internal: add From to minicoreAleksey Kladov2021-06-171-10/+0
|
* minor: dead codeAleksey Kladov2021-06-171-7/+0
|
* internal: add default to minicoreAleksey Kladov2021-06-171-6/+0
|
* internal: remove dead codeAleksey Kladov2021-06-171-24/+0
|
* internal: switch some tests to minicoreAleksey Kladov2021-06-171-70/+0
|
* internal: cleanup testsAleksey Kladov2021-06-151-3/+4
| | | | | | * ensure standard, non-indented style (should add this check to `fixture` some day) * removed a couple of ignores
* internal: more natural order of sources for TypeParamAleksey Kladov2021-06-141-2/+2
| | | | | We usually use first (left) variant of `Either` for "usual" case, and use right for odd things. For example, pat source is Pat | SelfParam.
* minor: less ambiguous nameAleksey Kladov2021-06-141-3/+4
|
* internal: document rename challengesAleksey Kladov2021-06-141-1/+24
|
* internal: adapt diagnostics to the new rename APIAleksey Kladov2021-06-142-1/+447
|
* internal: cut deps between assists and diagnosticsAleksey Kladov2021-06-142-0/+137
|
* cargo fmtMaan20032021-06-131-3/+1
|
* clippy::redudant_borrowMaan20032021-06-134-11/+11
|
* internal: cross-crate cov-marksAleksey Kladov2021-06-121-1/+1
|
* Merge #9218bors[bot]2021-06-111-10/+37
|\ | | | | | | | | | | | | | | 9218: Item search now respects trait impl items r=Veykril a=Veykril Fixes #2977 Co-authored-by: Lukas Wirth <[email protected]>
| * Item search now respects trait impl itemsLukas Wirth2021-06-111-10/+37
| |
* | Update ungrammarJonas Schievink2021-06-111-1/+1
| |
* | Add more profiling for flyimportsKirill Bulatov2021-06-101-0/+2
| |
* | Don't classify attributes on macro-calls are the macro itselfLukas Wirth2021-06-091-5/+3
|/
* Fix edge case for ImportGranularity guessingLukas Wirth2021-06-082-7/+26
|
* Reorder CompletionContext fieldsLukas Wirth2021-06-071-2/+1
|
* Unescape generated clippy lintsLukas Wirth2021-06-051-314/+726
|
* Replace `-` with `_` in generated lint namesLukas Wirth2021-06-041-137/+135
|
* Generate default lint groupsLukas Wirth2021-06-041-0/+29
|
* Generate default lint completionsLukas Wirth2021-06-042-0/+6892
|
* Make it opt-inJonas Schievink2021-06-031-0/+1
|
* Implement per-edition preludesJonas Schievink2021-06-011-10/+12
|
* Merge #8866bors[bot]2021-05-312-18/+4
|\ | | | | | | | | | | | | | | 8866: Update salsa r=matklad a=jonas-schievink This updates salsa to include https://github.com/salsa-rs/salsa/pull/265, and removes all cancellation-related code from rust-analyzer Co-authored-by: Jonas Schievink <[email protected]>
| * Update salsaJonas Schievink2021-05-272-18/+4
| |
* | simplifyLukas Wirth2021-05-282-10/+2
|/
* Exclude inherent traits more eagerlyKirill Bulatov2021-05-271-11/+8
|
* Merge #8945bors[bot]2021-05-232-1/+19
|\ | | | | | | | | | | | | | | | | | | | | | | 8945: fix: Make expected type work in more situations r=flodiebold a=flodiebold Also makes call info show the correct types for generic methods. ![2021-05-23-182952_1134x616_scrot](https://user-images.githubusercontent.com/906069/119269023-dd5a5b00-bbf5-11eb-993a-b6e122c3b9a6.png) ![2021-05-23-183117_922x696_scrot](https://user-images.githubusercontent.com/906069/119269025-dfbcb500-bbf5-11eb-983c-fc415b8428e0.png) Co-authored-by: Florian Diebold <[email protected]>
| * Get rid of field_type againFlorian Diebold2021-05-231-1/+1
| |
| * Record method call substs and use them in call infoFlorian Diebold2021-05-231-0/+18
| |
* | minor: align import style with styleguideAleksey Kladov2021-05-231-3/+3
|/
* Don't compare ast::Visibility by stringifyingLukas Tobias Wirth2021-05-201-6/+9
|
* Merge #8873bors[bot]2021-05-203-15/+237
|\ | | | | | | | | | | | | | | | | | | | | | | 8873: Implement import-granularity guessing r=matklad a=Veykril This renames our `MergeBehavior` to `ImportGranularity` as rustfmt has it as the purpose of them are basically the same. `ImportGranularity::Preserve` currently has no specific purpose for us as we don't have an organize imports assist yet, so it currently acts the same as `ImportGranularity::Item`. We now try to guess the import style on a per file basis and fall back to the user granularity setting if the file has no specific style yet or where it is ambiguous. This can be turned off by setting `import.enforceGranularity` to `true`. Closes https://github.com/rust-analyzer/rust-analyzer/issues/8870 Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * Check for differing attributes in granularity guessingLukas Tobias Wirth2021-05-203-7/+21
| |
| * Replace ImportGranularity::Guess with guessing boolean flagLukas Tobias Wirth2021-05-193-21/+183
| |
| * Add ImportGranularity::GuessLukas Tobias Wirth2021-05-181-12/+4
| |
| * Implement import-granularity guessingLukas Tobias Wirth2021-05-181-2/+33
| |
| * MergeBehavior -> ImportGranularityLukas Tobias Wirth2021-05-182-10/+33
| |
* | Simplify eager macro representationJonas Schievink2021-05-191-1/+0
| |