aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Rename `parse_macro` to `parse_macro_expansion`Jonas Schievink2020-11-246-9/+9
| | | | This does not parse macros, it expands a macro and parses the *result*
* hir_expand::db: reduce fn visibilityJonas Schievink2020-11-241-15/+9
|
* Remove fixed FIXME, propagate errors betterJonas Schievink2020-11-241-6/+2
|
* hir_expand: propagate expansion errorsJonas Schievink2020-11-244-46/+91
|
* Check structs for match exhaustivenessLukas Wirth2020-11-241-31/+120
|
* Add middle ellipsis missing arm textLukas Wirth2020-11-241-0/+14
|
* Handle ellipsis in tuple patterns in match exhaustiveness checkingLukas Wirth2020-11-241-42/+41
|
* Merge #6618bors[bot]2020-11-242-12/+129
|\ | | | | | | | | | | | | | | | | | | 6618: Properly infer tuple patterns when encountering ellipsis r=Veykril a=Veykril We basically just split the subpatterns into two halves when the ellipsis is present and then offset the latter half to account for the ignored bindings. Fixes #6616 Co-authored-by: Lukas Wirth <[email protected]>
| * Properly infer tuple struct patterns when encountering ellipsisLukas Wirth2020-11-242-9/+70
| |
| * Properly infer tuple patterns when encountering ellipsisLukas Wirth2020-11-242-8/+64
| |
* | New lsp-types to fix versioningkjeremy2020-11-242-6/+17
| | | | | | | | Fixes #6603
* | Avoid string allocations in ignore_testLaurențiu Nicola2020-11-241-1/+1
|/
* Merge #6610bors[bot]2020-11-241-7/+76
|\ | | | | | | | | | | | | | | | | | | 6610: add 'Re-enable this test' assist r=SomeoneToIgnore a=jakobhellermann The `Ignore this test` assist previously allowed ignoring multiple times, each time adding a `#[ignore]` attribute. This PR instead shows an assist to undo the ignoring. Co-authored-by: Jakob Hellermann <[email protected]>
| * add 'Re-enable this test' assistJakob Hellermann2020-11-231-7/+76
| |
* | Merge #6613bors[bot]2020-11-241-1/+7
|\ \ | |/ |/| | | | | | | | | | | 6613: Don't assume DidChangeTextDocument paths exist r=SomeoneToIgnore a=mjibson Fixes #5933 Co-authored-by: Matt Jibson <[email protected]>
| * Don't assume DidChangeTextDocument paths existMatt Jibson2020-11-231-1/+7
| | | | | | | | Fixes #5933
* | Minor, import styleAleksey Kladov2020-11-231-6/+5
| |
* | Parse unsafe extern blockDavid Tolnay2020-11-233-3/+25
|/
* Don't wrap parens around expr in remove_dbg assist if its in conditionsLukas Wirth2020-11-201-7/+64
|
* Fill code_description for rust_analyzer diagnosticsLukas Wirth2020-11-181-1/+8
|
* update diagnostics test_data with code_description changesLukas Wirth2020-11-186-6/+108
|
* Link clippy lint codes in diagnosticsLukas Wirth2020-11-181-7/+22
|
* Link rustc error codes in diagnosticsLukas Wirth2020-11-181-3/+19
|
* Merge #6553bors[bot]2020-11-1721-96/+368
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6553: Auto imports in completion r=matklad a=SomeoneToIgnore ![completion](https://user-images.githubusercontent.com/2690773/99155339-ae4fb380-26bf-11eb-805a-655b1706ce70.gif) Closes https://github.com/rust-analyzer/rust-analyzer/issues/1062 but does not handle the completion order, since it's a separate task for https://github.com/rust-analyzer/rust-analyzer/issues/4922 , https://github.com/rust-analyzer/rust-analyzer/issues/4922 and maybe something else. 2 quirks in the current implementation: * traits are not auto imported during method completion If I understand the current situation right, we cannot search for traits by a **part** of a method name, we need a full name with correct case to get a trait for it. * VSCode (?) autocompletion is not as rigid as in Intellij Rust as you can notice on the animation. Intellij is able to refresh the completions on every new symbol added, yet VS Code does not query the completions on every symbol for me. With a few debug prints placed in RA, I've observed the following behaviour: after the first set of completion suggestions is received, next symbol input does not trigger a server request, if the completions contain this symbol. When more symbols added, the existing completion suggestions are filtered out until none are left and only then, on the next symbol it queries for completions. It seems like the only alternative to get an updated set of results is to manually retrigger it with Esc and Ctrl + Space. Despite the eerie latter bullet, the completion seems to work pretty fine and fast nontheless, but if you have any ideas on how to make it more smooth, I'll gladly try it out. Co-authored-by: Kirill Bulatov <[email protected]>
| * Actually enable eager completionKirill Bulatov2020-11-171-1/+1
| |
| * Avoid turning completion objects into buildersKirill Bulatov2020-11-169-84/+117
| |
| * Remove query aliasesKirill Bulatov2020-11-163-10/+10
| |
| * Properly fill the completion settingsKirill Bulatov2020-11-161-4/+5
| |
| * Fix the other testKirill Bulatov2020-11-162-3/+25
| |
| * Qualify autoimport completion suggestionsKirill Bulatov2020-11-162-16/+43
| |
| * Better filter mod pathsKirill Bulatov2020-11-162-26/+28
| |
| * Move autoimport completion into the unqialified_path moduleKirill Bulatov2020-11-165-156/+139
| |
| * Omit modules during autocompletionKirill Bulatov2020-11-161-13/+13
| |
| * Tweak the search limits a bitKirill Bulatov2020-11-162-3/+6
| |
| * Reuse existing element renderingKirill Bulatov2020-11-164-88/+74
| |
| * Use imports_locatorKirill Bulatov2020-11-166-86/+119
| |
| * Rename the moduleKirill Bulatov2020-11-162-6/+2
| |
| * Allow to configure the merge behaviorKirill Bulatov2020-11-162-5/+6
| |
| * Add braces to functions and macrosKirill Bulatov2020-11-162-39/+99
| |
| * Tidy up the testsKirill Bulatov2020-11-161-49/+15
| |
| * Use rewriter api to add both changesKirill Bulatov2020-11-161-11/+51
| |
| * Add imports in auto completionKirill Bulatov2020-11-1613-25/+144
| |
* | Merge #6582bors[bot]2020-11-174-12/+38
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6582: Fill the diagnostic code field in publish_diagnostics r=kjeremy a=Veykril Fixes #6580 Before: ![Code_znn6VgLLH9](https://user-images.githubusercontent.com/3757771/99408084-213f7100-28f0-11eb-8317-3f5c2b93313d.png) After: ![Code_c4jJsvzOEA](https://user-images.githubusercontent.com/3757771/99408096-23093480-28f0-11eb-9bb2-8ebf2fb3d5a1.png) Co-authored-by: Lukas Wirth <[email protected]>
| * | Fill the diagnostic code field in publish_diagnosticsLukas Wirth2020-11-174-12/+38
| | |
* | | SimplifyAleksey Kladov2020-11-171-54/+50
| | |
* | | Make code more readableAleksey Kladov2020-11-171-186/+207
| | |
* | | MinorAleksey Kladov2020-11-171-4/+4
| | |
* | | Remove dead codeAleksey Kladov2020-11-171-6/+0
| | |
* | | SimplifyAleksey Kladov2020-11-172-17/+15
| | |
* | | Use standard code style for test fixturesAleksey Kladov2020-11-171-270/+270
| | |