]>
git.lizzy.rs Git - rust.git/log
Aleksey Kladov [Mon, 27 Dec 2021 13:17:29 +0000 (16:17 +0300)]
move expr
Aleksey Kladov [Mon, 27 Dec 2021 13:08:35 +0000 (16:08 +0300)]
move ty
Aleksey Kladov [Mon, 27 Dec 2021 13:06:02 +0000 (16:06 +0300)]
move pat to prefix entry points
Aleksey Kladov [Mon, 27 Dec 2021 12:54:00 +0000 (15:54 +0300)]
move stmt to entry points
Aleksey Kladov [Mon, 27 Dec 2021 12:39:17 +0000 (15:39 +0300)]
internal: move block to prefix entry point
Aleksey Kladov [Mon, 27 Dec 2021 12:22:44 +0000 (15:22 +0300)]
internal: move visibility to a prefix entry point
Aleksey Kladov [Mon, 27 Dec 2021 12:17:48 +0000 (15:17 +0300)]
internal: add prefix entry points
Aleksey Kladov [Mon, 27 Dec 2021 12:03:05 +0000 (15:03 +0300)]
cleanup imports
Aleksey Kladov [Mon, 27 Dec 2021 11:58:24 +0000 (14:58 +0300)]
simplify
bors[bot] [Tue, 28 Dec 2021 13:52:52 +0000 (13:52 +0000)]
Merge #11131
11131: internal: avoid speculation when completing macros r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Tue, 28 Dec 2021 13:51:17 +0000 (16:51 +0300)]
minor: simplify
Aleksey Kladov [Tue, 28 Dec 2021 13:50:13 +0000 (16:50 +0300)]
minor: dedup
Aleksey Kladov [Tue, 28 Dec 2021 13:47:21 +0000 (16:47 +0300)]
avoid speculation when completing macros
bors[bot] [Tue, 28 Dec 2021 10:53:02 +0000 (10:53 +0000)]
Merge #11128
11128: import style r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Tue, 28 Dec 2021 10:52:40 +0000 (13:52 +0300)]
import style
bors[bot] [Tue, 28 Dec 2021 09:04:26 +0000 (09:04 +0000)]
Merge #11127
11127: internal: Set a timeout on the Octokit client r=lnicola a=lnicola
CC #11056
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Tue, 28 Dec 2021 08:34:14 +0000 (10:34 +0200)]
Set a timeout on the Octokit client
bors[bot] [Mon, 27 Dec 2021 18:46:05 +0000 (18:46 +0000)]
Merge #11125
11125: minor r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Mon, 27 Dec 2021 18:45:42 +0000 (21:45 +0300)]
minor
bors[bot] [Mon, 27 Dec 2021 06:47:01 +0000 (06:47 +0000)]
Merge #11122
11122: Remove note about alpha status from vscode extension descritpion r=lnicola a=aDotInTheVoid
See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/156 and https://github.com/rust-analyzer/rust-analyzer/pull/8237
Co-authored-by: Nixon Enraght-Moony <nixon.emoony@gmail.com>
Nixon Enraght-Moony [Mon, 27 Dec 2021 01:26:25 +0000 (01:26 +0000)]
Remove note about alpha status from vscode extension descritpion
See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/156 and https://github.com/rust-analyzer/rust-analyzer/pull/8237
bors[bot] [Sun, 26 Dec 2021 15:54:02 +0000 (15:54 +0000)]
Merge #11120
11120: internal: move parser tests to parser crate r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 26 Dec 2021 15:46:21 +0000 (18:46 +0300)]
fix line endings
Aleksey Kladov [Sun, 26 Dec 2021 15:19:09 +0000 (18:19 +0300)]
internal: move inline parser tests to parser crate
Aleksey Kladov [Sun, 26 Dec 2021 14:58:33 +0000 (17:58 +0300)]
internal: move outlined parser tests
bors[bot] [Sun, 26 Dec 2021 13:49:59 +0000 (13:49 +0000)]
Merge #11118
11118: internal: move ws attachment logic to the parser crate r=matklad a=matklad
This has to re-introduce the `sink` pattern, because doing this purely
with iterators is awkward :( Maaaybe the event vector was a false start?
But, anyway, I like the current factoring more -- it sort-of obvious
that we do want to keep ws-attachment business in the parser, and that
we also don't want that to depend on the particular tree structure. I
think `shortcuts` module achieves that.
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sun, 26 Dec 2021 13:47:10 +0000 (16:47 +0300)]
internal: move ws attachment logic to the parser crate
This has to re-introduce the `sink` pattern, because doing this purely
with iterators is awkward :( Maaaybe the event vector was a false start?
But, anyway, I like the current factoring more -- it sort-of obvious
that we do want to keep ws-attachment business in the parser, and that
we also don't want that to depend on the particular tree structure. I
think `shortcuts` module achieves that.
bors[bot] [Sat, 25 Dec 2021 19:13:56 +0000 (19:13 +0000)]
Merge #11117
11117: internal: replace TreeSink with a data structure r=matklad a=matklad
The general theme of this is to make parser a better independent
library.
The specific thing we do here is replacing callback based TreeSink with
a data structure. That is, rather than calling user-provided tree
construction methods, the parser now spits out a very bare-bones tree,
effectively a log of a DFS traversal.
This makes the parser usable without any *specifc* tree sink, and allows
us to, eg, move tests into this crate.
Now, it's also true that this is a distinction without a difference, as
the old and the new interface are equivalent in expressiveness. Still,
this new thing seems somewhat simpler. But yeah, I admit I don't have a
suuper strong motivation here, just a hunch that this is better.
cc #10765
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 25 Dec 2021 19:02:12 +0000 (22:02 +0300)]
rename
Aleksey Kladov [Sat, 25 Dec 2021 18:59:02 +0000 (21:59 +0300)]
internal: rename
Aleksey Kladov [Sun, 19 Dec 2021 14:36:23 +0000 (17:36 +0300)]
internal: replace TreeSink with a data structure
The general theme of this is to make parser a better independent
library.
The specific thing we do here is replacing callback based TreeSink with
a data structure. That is, rather than calling user-provided tree
construction methods, the parser now spits out a very bare-bones tree,
effectively a log of a DFS traversal.
This makes the parser usable without any *specifc* tree sink, and allows
us to, eg, move tests into this crate.
Now, it's also true that this is a distinction without a difference, as
the old and the new interface are equivalent in expressiveness. Still,
this new thing seems somewhat simpler. But yeah, I admit I don't have a
suuper strong motivation here, just a hunch that this is better.
bors[bot] [Sat, 25 Dec 2021 14:42:16 +0000 (14:42 +0000)]
Merge #11116
11116: :arrow_up: expect test r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Aleksey Kladov [Sat, 25 Dec 2021 14:41:17 +0000 (17:41 +0300)]
:arrow_up: expect test
bors[bot] [Thu, 23 Dec 2021 14:39:21 +0000 (14:39 +0000)]
Merge #10933
10933: show values of constants in hover r=lnicola a=HKalbasi
Fix #8497
cc #8655
Co-authored-by: hkalbasi <hamidrezakalbasi@protonmail.com>
hkalbasi [Sat, 4 Dec 2021 22:21:36 +0000 (01:51 +0330)]
show values of constants in hover
bors[bot] [Thu, 23 Dec 2021 12:43:54 +0000 (12:43 +0000)]
Merge #11106
11106: internal: Remove network access from Code extension r=lnicola a=lnicola
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Thu, 23 Dec 2021 12:04:46 +0000 (14:04 +0200)]
Spelling fix
Laurențiu Nicola [Thu, 23 Dec 2021 11:08:06 +0000 (13:08 +0200)]
Simplify conflict check
Laurențiu Nicola [Thu, 23 Dec 2021 11:05:58 +0000 (13:05 +0200)]
Drop kalitaalexey.vscode-rust check
Laurențiu Nicola [Thu, 23 Dec 2021 11:04:27 +0000 (13:04 +0200)]
Don't check for platform details
Laurențiu Nicola [Thu, 23 Dec 2021 07:55:39 +0000 (09:55 +0200)]
Update privacy note
Laurențiu Nicola [Thu, 23 Dec 2021 07:50:09 +0000 (09:50 +0200)]
Remove ETXTBUSY check, we don't overwrite binaries
Laurențiu Nicola [Thu, 23 Dec 2021 07:49:24 +0000 (09:49 +0200)]
Improve NixOS handling
Laurențiu Nicola [Thu, 23 Dec 2021 06:44:23 +0000 (08:44 +0200)]
Drop extensionUri copy
Laurențiu Nicola [Thu, 23 Dec 2021 06:33:34 +0000 (08:33 +0200)]
Remove proxy settings
Laurențiu Nicola [Thu, 23 Dec 2021 06:32:58 +0000 (08:32 +0200)]
Remove channel and ask before download prefs
Laurențiu Nicola [Thu, 23 Dec 2021 06:31:16 +0000 (08:31 +0200)]
Remove node-fetch and https-proxy-agent deps
Laurențiu Nicola [Thu, 23 Dec 2021 06:28:25 +0000 (08:28 +0200)]
Remove network functions
Laurențiu Nicola [Thu, 23 Dec 2021 06:24:58 +0000 (08:24 +0200)]
Remove server download and update checks
bors[bot] [Wed, 22 Dec 2021 19:34:12 +0000 (19:34 +0000)]
Merge #11103
11103: internal: Improve `github-release` action r=lnicola a=lnicola
Upgrade ``@actions/github`` to get `listReleaseAssets` and retry individual uploads in addition to the whole thing.
Also disables `ci`, `metrics` and `rustdoc` on forks to save some CPU time.
CC #11056
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Wed, 22 Dec 2021 18:57:26 +0000 (20:57 +0200)]
Gate workflows to only run on upstream
Laurențiu Nicola [Wed, 22 Dec 2021 17:56:54 +0000 (19:56 +0200)]
Improve github-release action
bors[bot] [Wed, 22 Dec 2021 12:31:00 +0000 (12:31 +0000)]
Merge #11102
11102: minor: Update known issues in the bug report template r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Wed, 22 Dec 2021 12:30:19 +0000 (14:30 +0200)]
Update known issues in the bug report template
bors[bot] [Wed, 22 Dec 2021 08:29:03 +0000 (08:29 +0000)]
Merge #11096
11096: Code: Use the same `displayName` for pre-release versions r=lnicola a=lnicola
Otherwise the Marketplace shows `(nightly)` for the stable version.
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Wed, 22 Dec 2021 08:24:49 +0000 (10:24 +0200)]
Use the same displayName for pre-release versions
bors[bot] [Wed, 22 Dec 2021 07:21:49 +0000 (07:21 +0000)]
Merge #11095
11095: internal: Disable unstable APIs for nightly releases r=lnicola a=lnicola
bors r+
The Marketplace doesn't allow us to publish extensions using these, even as pre-release versions.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Wed, 22 Dec 2021 07:20:46 +0000 (09:20 +0200)]
Disable unstable APIs for nightly releases
bors[bot] [Wed, 22 Dec 2021 05:44:54 +0000 (05:44 +0000)]
Merge #11094
11094: Actually nightly releases to Matketplace r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Wed, 22 Dec 2021 05:44:04 +0000 (07:44 +0200)]
Actually nightly releases to Matketplace
bors[bot] [Wed, 22 Dec 2021 01:48:31 +0000 (01:48 +0000)]
Merge #11093
11093: fix: Do not complete `Drop::drop`, complete `std::mem::drop` instead r=Veykril a=Veykril
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5005
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Wed, 22 Dec 2021 01:36:31 +0000 (02:36 +0100)]
Make hover test not relient on minicore structure
Lukas Wirth [Wed, 22 Dec 2021 01:25:38 +0000 (02:25 +0100)]
fix: Do not complete `Drop::drop`, complete `std::mem::drop` instead
bors[bot] [Tue, 21 Dec 2021 23:20:16 +0000 (23:20 +0000)]
Merge #11092
11092: internal: Directly use self param in completions instead of searching r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 21 Dec 2021 23:18:39 +0000 (00:18 +0100)]
internal: Directly use self param in completions instead of searching
bors[bot] [Tue, 21 Dec 2021 17:37:56 +0000 (17:37 +0000)]
Merge #11071 #11090
11071: feat: Build and publish pre-release Code extension versions r=matklad a=lnicola
Closes #11026
11090: internal: Deduplicate lower ctx hygiene field r=Veykril a=Veykril
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
bors[bot] [Tue, 21 Dec 2021 17:29:26 +0000 (17:29 +0000)]
Merge #11089
11089: internal: Render more completions from hir instead of ast r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 21 Dec 2021 17:25:50 +0000 (18:25 +0100)]
Simplify
Lukas Wirth [Tue, 21 Dec 2021 16:14:57 +0000 (17:14 +0100)]
Deduplicate lower ctx hygiene field
Lukas Wirth [Tue, 21 Dec 2021 15:57:16 +0000 (16:57 +0100)]
Replace a few String instances with SmolStr in completions
Lukas Wirth [Tue, 21 Dec 2021 15:36:04 +0000 (16:36 +0100)]
Fully render type alias completions from hir
Lukas Wirth [Tue, 21 Dec 2021 15:34:55 +0000 (16:34 +0100)]
Fully render const item completions from hir
bors[bot] [Tue, 21 Dec 2021 15:22:51 +0000 (15:22 +0000)]
Merge #11086
11086: internal: Simplify completion rendering r=Veykril a=Veykril
Removes all the helper render structs in favor of simple functions, making things a lot easier to oversee(imho)
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 21 Dec 2021 14:48:12 +0000 (15:48 +0100)]
fmt +stable
Lukas Wirth [Tue, 21 Dec 2021 14:37:43 +0000 (15:37 +0100)]
Simplify type alias rendering, remove constructor structs
Lukas Wirth [Tue, 21 Dec 2021 14:20:15 +0000 (15:20 +0100)]
Simplify macro rendering, remove constructor structs
Lukas Wirth [Tue, 21 Dec 2021 14:04:19 +0000 (15:04 +0100)]
Simplify const rendering, remove constructor structs
Lukas Wirth [Tue, 21 Dec 2021 14:01:52 +0000 (15:01 +0100)]
Simplify enum variant rendering, remove constructor structs
Lukas Wirth [Tue, 21 Dec 2021 13:51:06 +0000 (14:51 +0100)]
Simplify function rendering, remove constructor structs
Lukas Wirth [Tue, 21 Dec 2021 13:07:48 +0000 (14:07 +0100)]
Simplify
bors[bot] [Tue, 21 Dec 2021 13:04:43 +0000 (13:04 +0000)]
Merge #11083
11083: fix: Fix inline local assist not working in let stmt initializer r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 21 Dec 2021 13:03:59 +0000 (14:03 +0100)]
fix: Fix inline local assist not working in let stmt initializer
bors[bot] [Tue, 21 Dec 2021 12:39:32 +0000 (12:39 +0000)]
Merge #11082
11082: internal: Do less work in `hir::Semantics` r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Tue, 21 Dec 2021 12:38:58 +0000 (13:38 +0100)]
internal: Do less work in `hir::Semantics`
bors[bot] [Tue, 21 Dec 2021 08:00:59 +0000 (08:00 +0000)]
Merge #11078
11078: minor: Fix typo in reformat number assist label r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Tue, 21 Dec 2021 07:45:20 +0000 (09:45 +0200)]
Fix typo in reformat number assist label
Laurențiu Nicola [Mon, 20 Dec 2021 17:36:07 +0000 (19:36 +0200)]
Bump vscode in package.json
Laurențiu Nicola [Mon, 20 Dec 2021 17:28:00 +0000 (19:28 +0200)]
Build and publish pre-release Code extension versions
bors[bot] [Mon, 20 Dec 2021 18:38:47 +0000 (18:38 +0000)]
Merge #11074
11074: Bump default CHALK_SOLVER_MAX_SIZE to 150 r=lnicola a=lnicola
Fixes #11072
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Laurențiu Nicola [Mon, 20 Dec 2021 18:35:45 +0000 (20:35 +0200)]
Bump default CHALK_SOLVER_MAX_SIZE to 150
bors[bot] [Mon, 20 Dec 2021 18:20:08 +0000 (18:20 +0000)]
Merge #11073
11073: fix: Fix windows not finding the pdb file r=lnicola a=Veykril
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10371
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Mon, 20 Dec 2021 18:11:21 +0000 (19:11 +0100)]
fix: Fix windows not finding the pdb file
bors[bot] [Mon, 20 Dec 2021 16:50:35 +0000 (16:50 +0000)]
Merge #11069
11069: fix: Partially fix `ide_db::search` for crate roots r=Veykril a=Veykril
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10007
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Mon, 20 Dec 2021 16:48:47 +0000 (17:48 +0100)]
fix: Partially fix `ide_db::search` for crate roots
bors[bot] [Mon, 20 Dec 2021 14:43:39 +0000 (14:43 +0000)]
Merge #11067
11067: internal: Store function param names in ItemTree r=Veykril a=Veykril
This prevents us reparsing source files for completions, sometimes slowing them down massively if the source file is not cached at the expense of a slightly bigger memory usage.
related info https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Completion.20performance
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Lukas Wirth [Mon, 20 Dec 2021 14:33:57 +0000 (15:33 +0100)]
Update test output
Lukas Wirth [Mon, 20 Dec 2021 14:24:37 +0000 (15:24 +0100)]
internal: Store function param names in ItemTree
bors[bot] [Mon, 20 Dec 2021 13:45:35 +0000 (13:45 +0000)]
Merge #11028
11028: Bump MSRV (1.57) r=Veykril a=iDawer
This bumps MSRV on all crates to 1.57 except `la-arena`
#10986 requires >=1.57
Co-authored-by: iDawer <ilnur.iskhakov.oss@outlook.com>
Lukas Wirth [Mon, 20 Dec 2021 13:38:22 +0000 (14:38 +0100)]
Simplify
iDawer [Mon, 20 Dec 2021 13:10:37 +0000 (18:10 +0500)]
Don't bump la-arena