]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoclippy::redundant_closure
Maan2003 [Sun, 13 Jun 2021 03:59:36 +0000 (09:29 +0530)]
clippy::redundant_closure

3 years agoclippy::clone_on_copy
Maan2003 [Sun, 13 Jun 2021 03:57:19 +0000 (09:27 +0530)]
clippy::clone_on_copy

3 years agoclippy::useless_conversion
Maan2003 [Sun, 13 Jun 2021 03:55:55 +0000 (09:25 +0530)]
clippy::useless_conversion

3 years agoclippy::redudant_borrow
Maan2003 [Sun, 13 Jun 2021 03:54:16 +0000 (09:24 +0530)]
clippy::redudant_borrow

3 years agoMerge #9239
bors[bot] [Sat, 12 Jun 2021 21:05:12 +0000 (21:05 +0000)]
Merge #9239

9239: fix: Fix coercion in match with expected type r=flodiebold a=flodiebold

Plus add infrastructure to test type mismatches without expect.

CC #8961

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
3 years agoFix coercion in match with expected type
Florian Diebold [Thu, 3 Jun 2021 21:12:35 +0000 (23:12 +0200)]
Fix coercion in match with expected type

Plus add infrastructure to test type mismatches without expect.

3 years agoMerge #9238
bors[bot] [Sat, 12 Jun 2021 20:42:46 +0000 (20:42 +0000)]
Merge #9238

9238: internal: cross-crate cov-marks r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: cross-crate cov-marks
Aleksey Kladov [Sat, 12 Jun 2021 20:39:57 +0000 (23:39 +0300)]
internal: cross-crate cov-marks

3 years agoMerge #9237
bors[bot] [Sat, 12 Jun 2021 19:05:58 +0000 (19:05 +0000)]
Merge #9237

9237: internal: move diagnostics infra to hir r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: move diagnostics infra to hir
Aleksey Kladov [Sat, 12 Jun 2021 19:05:23 +0000 (22:05 +0300)]
internal: move diagnostics infra to hir

3 years agoMerge #9236
bors[bot] [Sat, 12 Jun 2021 18:51:42 +0000 (18:51 +0000)]
Merge #9236

9236: Fix some typos in flyimport docs r=SomeoneToIgnore a=SomeoneToIgnore

bors r+

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
3 years agoFix some typos in flyimport docs
Kirill Bulatov [Sat, 12 Jun 2021 18:51:09 +0000 (21:51 +0300)]
Fix some typos in flyimport docs

3 years agoMerge #9233
bors[bot] [Sat, 12 Jun 2021 18:01:00 +0000 (18:01 +0000)]
Merge #9233

9233: Move some hir_ty diagnostics to hir r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMove some hir_ty diagnostics to hir
Aleksey Kladov [Sat, 12 Jun 2021 16:28:19 +0000 (19:28 +0300)]
Move some hir_ty diagnostics to hir

3 years agoMerge #9231
bors[bot] [Sat, 12 Jun 2021 14:50:37 +0000 (14:50 +0000)]
Merge #9231

9231: minor: optimize r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: optimize
Aleksey Kladov [Sat, 12 Jun 2021 14:49:41 +0000 (17:49 +0300)]
minor: optimize

We shouldn't be looking at the source map unless we actually have
diagnostics.

3 years agominor: reduce visibility
Aleksey Kladov [Sat, 12 Jun 2021 14:41:25 +0000 (17:41 +0300)]
minor: reduce visibility

3 years agoMerge #9230
bors[bot] [Sat, 12 Jun 2021 14:40:28 +0000 (14:40 +0000)]
Merge #9230

9230: internal: move inference diagnostics to hir r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: move missing unsafe diagnostic to hir
Aleksey Kladov [Sat, 12 Jun 2021 14:39:46 +0000 (17:39 +0300)]
internal: move missing unsafe diagnostic to hir

3 years agointernal: move inference diagnostics to hir
Aleksey Kladov [Sat, 12 Jun 2021 14:17:23 +0000 (17:17 +0300)]
internal: move inference diagnostics to hir

3 years agoMerge #9229
bors[bot] [Sat, 12 Jun 2021 12:56:58 +0000 (12:56 +0000)]
Merge #9229

9229: minor: squelch "unused" warning r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: squelch "unused" warning
Aleksey Kladov [Sat, 12 Jun 2021 12:10:07 +0000 (15:10 +0300)]
minor: squelch "unused" warning

3 years agoMerge #9204
bors[bot] [Fri, 11 Jun 2021 22:00:23 +0000 (22:00 +0000)]
Merge #9204

9204: feat: more accurate memory usage info on glibc Linux r=jonas-schievink a=jonas-schievink

This adds support for the new `mallinfo2` API added in glibc 2.33. It addresses a shortcoming in the `mallinfo` API where it was unable to handle memory usage of more than 2 GB, which we sometimes exceed.

Blocked on https://github.com/rust-lang/libc/pull/2228

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoUpdate libc
Jonas Schievink [Fri, 11 Jun 2021 21:55:27 +0000 (23:55 +0200)]
Update libc

3 years agoMerge #9223
bors[bot] [Fri, 11 Jun 2021 21:13:28 +0000 (21:13 +0000)]
Merge #9223

9223: Complete associated types in dyn and impl trait r=Veykril a=Veykril

Fixes #9222
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoComplete associated types in dyn and impl trait
Lukas Wirth [Fri, 11 Jun 2021 21:12:30 +0000 (23:12 +0200)]
Complete associated types in dyn and impl trait

3 years agoMerge #9221
bors[bot] [Fri, 11 Jun 2021 19:20:24 +0000 (19:20 +0000)]
Merge #9221

9221: fix: Highlight tuple field accesses correctly r=Veykril a=Veykril

Fixes  #9220
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoHighlight tuple field accesses correctly
Lukas Wirth [Fri, 11 Jun 2021 19:19:19 +0000 (21:19 +0200)]
Highlight tuple field accesses correctly

3 years agoMerge #9219
bors[bot] [Fri, 11 Jun 2021 17:56:00 +0000 (17:56 +0000)]
Merge #9219

9219: minor: Replace some AssocItem::containing_trait calls trait_or_trait_impl r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoReplace some AssocItem::containing_trait calls trait_or_trait_impl
Lukas Wirth [Fri, 11 Jun 2021 17:55:24 +0000 (19:55 +0200)]
Replace some AssocItem::containing_trait calls trait_or_trait_impl

3 years agoMerge #9218
bors[bot] [Fri, 11 Jun 2021 17:33:34 +0000 (17:33 +0000)]
Merge #9218

9218: Item search now respects trait impl items r=Veykril a=Veykril

Fixes #2977

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoItem search now respects trait impl items
Lukas Wirth [Fri, 11 Jun 2021 17:23:59 +0000 (19:23 +0200)]
Item search now respects trait impl items

3 years agoMerge #9217
bors[bot] [Fri, 11 Jun 2021 16:35:38 +0000 (16:35 +0000)]
Merge #9217

9217: internal: Don't stringify and reparse `cfg_attr`-gated attributes r=jonas-schievink a=jonas-schievink

Bumps ungrammar to include https://github.com/rust-analyzer/ungrammar/pull/33

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoDon't stringify `cfg_attr`-gated attributes
Jonas Schievink [Fri, 11 Jun 2021 16:20:15 +0000 (18:20 +0200)]
Don't stringify `cfg_attr`-gated attributes

This preserves the assigned `TokenId`s

3 years agoUpdate ungrammar
Jonas Schievink [Fri, 11 Jun 2021 16:12:51 +0000 (18:12 +0200)]
Update ungrammar

3 years agoMerge #9216
bors[bot] [Fri, 11 Jun 2021 16:27:42 +0000 (16:27 +0000)]
Merge #9216

9216: fix: Don't allow lookup by self for unprefixed self access completions r=Veykril a=Veykril

Fixes #9211
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't allow lookup by self for unprefixed self access completions
Lukas Wirth [Fri, 11 Jun 2021 16:26:52 +0000 (18:26 +0200)]
Don't allow lookup by self for unprefixed self access completions

3 years agoMerge #9215
bors[bot] [Fri, 11 Jun 2021 14:10:22 +0000 (14:10 +0000)]
Merge #9215

9215: change visibility for use and macro items r=jonas-schievink a=Maan2003

Co-authored-by: Maan2003 <manmeetmann2003@gmail.com>
3 years agochange visibility for use and macro items
Maan2003 [Fri, 11 Jun 2021 13:40:56 +0000 (19:10 +0530)]
change visibility for use and macro items

3 years agoMerge #9192
bors[bot] [Fri, 11 Jun 2021 10:44:07 +0000 (10:44 +0000)]
Merge #9192

9192: internal: Build test-macros in a build script r=jonas-schievink a=jonas-schievink

This build the test-proc-macros in `proc_macro_test` in a build script, and copies the artifact to `OUT_DIR`. This should make it available throughout all of rust-analyzer at no cost other than depending on `proc_macro_test`, fixing https://github.com/rust-analyzer/rust-analyzer/issues/9067.

This hopefully will let us later write inline tests that utilize proc macros, which makes my life fixing proc macro bugs easier.

Opening this as a sort of RFC, because I'm not totally sure this approach is the best.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMerge #9209
bors[bot] [Fri, 11 Jun 2021 10:05:28 +0000 (10:05 +0000)]
Merge #9209

9209: Don't suggest Remove unused param in trait impls r=Veykril a=Maan2003

See the added test for description

Co-authored-by: Maan2003 <manmeetmann2003@gmail.com>
3 years agoDon't suggest Remove unused param in trait impls
Maan2003 [Fri, 11 Jun 2021 06:54:56 +0000 (12:24 +0530)]
Don't suggest Remove unused param in trait impls

3 years agoMerge #9208
bors[bot] [Fri, 11 Jun 2021 06:28:32 +0000 (06:28 +0000)]
Merge #9208

9208: minor: Populate import maps eagerly to speed up flyimports r=SomeoneToIgnore a=SomeoneToIgnore

Part of #7542
Follow up of https://github.com/rust-analyzer/rust-analyzer/pull/9206#issuecomment-859097783
Reduces `import_on_the_fly @ sel` case in the `integrated_completion_benchmark` by ~300ms.

Also enables cache priming for manual workspace loading to reflect the results in the benchmarks.

Before:
<img width="1198" alt="image" src="https://user-images.githubusercontent.com/2690773/121606148-4a734a80-ca56-11eb-812a-7955e93817f1.png">

After:
<img width="1200" alt="image" src="https://user-images.githubusercontent.com/2690773/121606156-4e06d180-ca56-11eb-891b-1ed878b53d7e.png">

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
3 years agoOnly prefill caches in the completion benchmark
Kirill Bulatov [Fri, 11 Jun 2021 06:27:25 +0000 (09:27 +0300)]
Only prefill caches in the completion benchmark

3 years agoFix visibility issues
Kirill Bulatov [Thu, 10 Jun 2021 22:48:15 +0000 (01:48 +0300)]
Fix visibility issues

3 years agoPrime caches on workspace load
Kirill Bulatov [Thu, 10 Jun 2021 22:35:14 +0000 (01:35 +0300)]
Prime caches on workspace load

3 years agoPopulate import maps eagerly
Kirill Bulatov [Thu, 10 Jun 2021 22:27:20 +0000 (01:27 +0300)]
Populate import maps eagerly

3 years agoMerge #9206
bors[bot] [Thu, 10 Jun 2021 21:28:14 +0000 (21:28 +0000)]
Merge #9206

9206: minor: Speed up fst items lookup during completions r=SomeoneToIgnore a=SomeoneToIgnore

Part of https://github.com/rust-analyzer/rust-analyzer/issues/7542

A number of profile calls added for `import_on_the_fly` contents.
Before:
<img width="606" alt="Screenshot 2021-06-11 at 00 19 13" src="https://user-images.githubusercontent.com/2690773/121598998-22321e80-ca4b-11eb-9a3d-dc9cb2936705.png">

After:
<img width="859" alt="Screenshot 2021-06-11 at 00 19 27" src="https://user-images.githubusercontent.com/2690773/121599022-2a8a5980-ca4b-11eb-82b6-13ab0ed56d58.png">

As a result, low hanging fruit was spotted: crazy amount of `fst_path` calls. Reducing that won ~200ms in the `import_on_the_fly @ sel` case in the `integrated_completion_benchmark`:

<img width="861" alt="Screenshot 2021-06-11 at 00 19 38" src="https://user-images.githubusercontent.com/2690773/121599277-7d641100-ca4b-11eb-8667-53206994de27.png">

I'm not sure how to proceed with the remaining `???` marks in such methods as `collect_import_map` though: there's nothing but library calls in cycles, but maybe I'll come up with something later.

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
3 years agoReduce fst_path calls
Kirill Bulatov [Thu, 10 Jun 2021 21:10:09 +0000 (00:10 +0300)]
Reduce fst_path calls

3 years agoAdd more profiling for flyimports
Kirill Bulatov [Thu, 10 Jun 2021 20:03:16 +0000 (23:03 +0300)]
Add more profiling for flyimports

3 years agoAdd support for mallinfo2 on glibc Linux
Jonas Schievink [Thu, 10 Jun 2021 12:58:52 +0000 (14:58 +0200)]
Add support for mallinfo2 on glibc Linux

3 years agoMerge #9202
bors[bot] [Thu, 10 Jun 2021 12:09:54 +0000 (12:09 +0000)]
Merge #9202

9202: feat: Make `MemoryUsage` work on Windows r=jonas-schievink a=jonas-schievink

Unfortunately there is no convenient API for heap statistics, so this instead uses the Commit Charge value, which is the amount of memory that needs to be allocated either in physical RAM or in the page file. This approximation seems to be good enough to find queries that waste a large amount of memory, but it should generally be expected to be off by several MB.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMake `MemoryUsage` work on Windows
Jonas Schievink [Wed, 9 Jun 2021 20:55:50 +0000 (22:55 +0200)]
Make `MemoryUsage` work on Windows

3 years agoMerge #9196
bors[bot] [Wed, 9 Jun 2021 22:27:07 +0000 (22:27 +0000)]
Merge #9196

9196: fix: Don't classify attributes on macro-calls are the macro itself r=Veykril a=Veykril

Fixes #9184
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't classify attributes on macro-calls are the macro itself
Lukas Wirth [Wed, 9 Jun 2021 22:25:36 +0000 (00:25 +0200)]
Don't classify attributes on macro-calls are the macro itself

3 years agoMerge #9195
bors[bot] [Wed, 9 Jun 2021 21:45:35 +0000 (21:45 +0000)]
Merge #9195

9195: minor: Simplify r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoSimplify
Lukas Wirth [Wed, 9 Jun 2021 21:43:22 +0000 (23:43 +0200)]
Simplify

3 years agoMerge #9193
bors[bot] [Wed, 9 Jun 2021 17:21:50 +0000 (17:21 +0000)]
Merge #9193

9193: Implement dummy expansions for builtin attributes r=jonas-schievink a=Veykril

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoRemove unnecessary duplication
Lukas Wirth [Wed, 9 Jun 2021 16:42:01 +0000 (18:42 +0200)]
Remove unnecessary duplication

3 years agoImplement dummy expansions for builtin attributes
Lukas Wirth [Wed, 9 Jun 2021 16:02:31 +0000 (18:02 +0200)]
Implement dummy expansions for builtin attributes

3 years agoTry to fix unique file names on Windows
Jonas Schievink [Wed, 9 Jun 2021 16:02:04 +0000 (18:02 +0200)]
Try to fix unique file names on Windows

3 years agoBuild test-macros in a build script
Jonas Schievink [Wed, 9 Jun 2021 15:16:52 +0000 (17:16 +0200)]
Build test-macros in a build script

3 years agoMerge #9191
bors[bot] [Wed, 9 Jun 2021 13:17:38 +0000 (13:17 +0000)]
Merge #9191

9191: fix: Don't descend MacroCall TokenTree delimiters r=jonas-schievink a=Veykril

Fixes #9190

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't descend MacroCall TokenTree delimiters
Lukas Wirth [Wed, 9 Jun 2021 13:02:11 +0000 (15:02 +0200)]
Don't descend MacroCall TokenTree delimiters

3 years agoMerge #9186
bors[bot] [Tue, 8 Jun 2021 21:08:58 +0000 (21:08 +0000)]
Merge #9186

9186: fix: Prefer attr macros in "expand macro recursively" r=jonas-schievink a=jonas-schievink

This allows expanding attribute macros on fn-like macro invocations

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMerge #9183
bors[bot] [Tue, 8 Jun 2021 20:47:10 +0000 (20:47 +0000)]
Merge #9183

9183: Fix typo r=lnicola a=phynalle

Co-authored-by: phynalle <phynalism@gmail.com>
3 years agoPrefer attr macros in "expand macro recursively"
Jonas Schievink [Tue, 8 Jun 2021 20:13:22 +0000 (22:13 +0200)]
Prefer attr macros in "expand macro recursively"

3 years agoMerge #9187
bors[bot] [Tue, 8 Jun 2021 20:18:54 +0000 (20:18 +0000)]
Merge #9187

9187: fix: Fix edge case for ImportGranularity guessing r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoFix edge case for ImportGranularity guessing
Lukas Wirth [Tue, 8 Jun 2021 20:14:30 +0000 (22:14 +0200)]
Fix edge case for ImportGranularity guessing

3 years agoFix typo
phynalle [Tue, 8 Jun 2021 19:51:28 +0000 (04:51 +0900)]
Fix typo

3 years agoMerge #9181 #9182
bors[bot] [Tue, 8 Jun 2021 19:09:13 +0000 (19:09 +0000)]
Merge #9181 #9182

9181: Don't complete values in type position r=jonas-schievink a=Veykril

Will add some proper tests in a bit

9182: fix: don't complete derive macros as fn-like macros r=jonas-schievink a=jonas-schievink

Part of https://github.com/rust-analyzer/rust-analyzer/issues/8518

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMerge #9180
bors[bot] [Tue, 8 Jun 2021 19:01:23 +0000 (19:01 +0000)]
Merge #9180

9180: fix: fix some IDE functionality inside attribute macros r=jonas-schievink a=jonas-schievink

In `SourceToDefCtx::find_container`, we might encounter a container that has an attribute macro. We need to skip that item, instead of bailing out and creating an empty `Resolver`, otherwise all names in the macro stay unresolved.

Part of https://github.com/rust-analyzer/rust-analyzer/issues/9142

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoAdd tests checking no value completion in type pos
Lukas Wirth [Tue, 8 Jun 2021 18:27:25 +0000 (20:27 +0200)]
Add tests checking no value completion in type pos

3 years agofix: don't complete derive macros as fn-like macros
Jonas Schievink [Tue, 8 Jun 2021 15:31:47 +0000 (17:31 +0200)]
fix: don't complete derive macros as fn-like macros

3 years agoDon't complete values in type position
Lukas Wirth [Tue, 8 Jun 2021 14:50:10 +0000 (16:50 +0200)]
Don't complete values in type position

3 years agosource_to_def: skip items with no def
Jonas Schievink [Tue, 8 Jun 2021 14:42:48 +0000 (16:42 +0200)]
source_to_def: skip items with no def

3 years agoRevert "Merge #9177"
Aleksey Kladov [Tue, 8 Jun 2021 12:31:36 +0000 (15:31 +0300)]
Revert "Merge #9177"

This reverts commit f1818cb7ba2808cba3fd9bf8f199c382060a1f19, reversing
changes made to 6c9362d61b895c11b1d0cf6837ada9f2a0a30eaf.

This broke things

3 years agoMerge #9177
bors[bot] [Tue, 8 Jun 2021 11:00:19 +0000 (11:00 +0000)]
Merge #9177

9177: :arrow_up: npm packages r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years ago:arrow_up: npm packages
Aleksey Kladov [Tue, 8 Jun 2021 10:55:20 +0000 (13:55 +0300)]
:arrow_up: npm packages

3 years agoMerge #9153
bors[bot] [Tue, 8 Jun 2021 10:53:20 +0000 (10:53 +0000)]
Merge #9153

9153: QOL: VSCode status bar icon on click now shows server status r=matklad a=Milo123459

Now, when you click the little status bar text, it will automatically reload the server. I don't think I've ever seen anyone click it randomly, and, it's there to save you a few clicks.

Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com>
3 years agoMerge #9171
bors[bot] [Mon, 7 Jun 2021 18:46:18 +0000 (18:46 +0000)]
Merge #9171

9171: internal: simplify r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agosimplify
Lukas Wirth [Mon, 7 Jun 2021 18:45:17 +0000 (20:45 +0200)]
simplify

3 years agoMerge #9170
bors[bot] [Mon, 7 Jun 2021 17:47:23 +0000 (17:47 +0000)]
Merge #9170

9170: internal: Remove unnecessary `completion::macro_in_item_position` module r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoRemove unnecessary completion::macro_in_item_position
Lukas Wirth [Mon, 7 Jun 2021 17:35:24 +0000 (19:35 +0200)]
Remove unnecessary completion::macro_in_item_position

3 years agoMerge #9169
bors[bot] [Mon, 7 Jun 2021 17:37:48 +0000 (17:37 +0000)]
Merge #9169

9169: internal: steps towards attribute macro token mapping r=jonas-schievink a=jonas-schievink

This doesn't work yet, but we seem to be getting a bit further along (for example, we now stop highlighting `use` items inside item with attribute macros as if they were written verbatim).

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoAttempt to track attr macros during highlighting
Jonas Schievink [Mon, 7 Jun 2021 17:32:28 +0000 (19:32 +0200)]
Attempt to track attr macros during highlighting

3 years agoReorder CompletionContext fields
Lukas Wirth [Mon, 7 Jun 2021 17:06:03 +0000 (19:06 +0200)]
Reorder CompletionContext fields

3 years agofix
Milo [Mon, 7 Jun 2021 16:56:40 +0000 (17:56 +0100)]
fix

3 years agoMerge #9144
bors[bot] [Mon, 7 Jun 2021 16:17:14 +0000 (16:17 +0000)]
Merge #9144

9144: Extend convert_tuple_struct_to_named_struct to also apply to enum tuple variants r=matklad a=joshuawarner32

This is largely copied and adapted from the existing `convert_tuple_struct_to_named_struct` code.

Not sure if maybe some of this code can/should be shared between those two assists - but the differences are significant enough to make it at least seem like a non-trivial refactor.

Co-authored-by: Joshua Warner <joshuawarner32@gmail.com>
3 years agoMerge #9166
bors[bot] [Mon, 7 Jun 2021 15:49:50 +0000 (15:49 +0000)]
Merge #9166

9166: Clarify label documentation r=matklad a=flodiebold

Also some other cleanups while I'm there.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
3 years agoMake "expand macro" command work with attribute macros
Jonas Schievink [Mon, 7 Jun 2021 14:05:36 +0000 (16:05 +0200)]
Make "expand macro" command work with attribute macros

3 years agoFurther clarification
Florian Diebold [Mon, 7 Jun 2021 12:50:03 +0000 (14:50 +0200)]
Further clarification

3 years agoOne additional grammar fix
Florian Diebold [Mon, 7 Jun 2021 12:43:58 +0000 (14:43 +0200)]
One additional grammar fix

3 years agoClarify label documentation
Florian Diebold [Mon, 7 Jun 2021 12:34:41 +0000 (14:34 +0200)]
Clarify label documentation

Also some other cleanups while I'm there.

3 years agoMerge #9164
bors[bot] [Mon, 7 Jun 2021 12:17:28 +0000 (12:17 +0000)]
Merge #9164

9164: internal: Reduce the number of direct fields in `CompletionContext` some more r=Veykril a=Veykril

Doesn't make the code much simpler yet.
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoMove more things into PathCompletionContext
Lukas Wirth [Mon, 7 Jun 2021 10:29:46 +0000 (12:29 +0200)]
Move more things into PathCompletionContext

3 years agoMerge #9161
bors[bot] [Mon, 7 Jun 2021 10:33:13 +0000 (10:33 +0000)]
Merge #9161

9161: Fix incorrect config usage in hover references r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoFix incorrect config usage in hover references
Lukas Wirth [Mon, 7 Jun 2021 10:32:25 +0000 (12:32 +0200)]
Fix incorrect config usage in hover references

3 years agoMerge #9160
bors[bot] [Mon, 7 Jun 2021 09:59:32 +0000 (09:59 +0000)]
Merge #9160

9160: internal: make `Documentation::new` non-generic r=lnicola a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoMake Documentation::new non-generic
Laurențiu Nicola [Mon, 7 Jun 2021 09:58:51 +0000 (12:58 +0300)]
Make Documentation::new non-generic