]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoMerge #9304
bors[bot] [Wed, 16 Jun 2021 20:28:23 +0000 (20:28 +0000)]
Merge #9304

9304: internal: cleanup tests r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: cleanup tests
Aleksey Kladov [Wed, 16 Jun 2021 20:27:04 +0000 (23:27 +0300)]
internal: cleanup tests

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Wed, 16 Jun 2021 19:54:57 +0000 (22:54 +0300)]
internal: switch some tests to minicore

3 years agoMerge #9301
bors[bot] [Wed, 16 Jun 2021 19:53:43 +0000 (19:53 +0000)]
Merge #9301

9301: internal: Start refactoring ide_completion tests r=Veykril a=Veykril

Our current completion test infra resovles around usually just checking a specific `CompletionKind` which is suboptimal. We only see what we want to see in tests with this causing us to miss a lot of incorrect completions we are doing. Instead we should test for different cursor locations for all kinds(sans the magic kind maybe? not sure yet). This way we will also see potential duplicate completions that merely different in their kind.

Also since most completion submodules complete things in tests of other modules due to the tests overlapping it makes more sense to group these tests differently which implies moving them to a new module. Exceptions for this might be stuff like attribute completion as these cannot currently interfere.

I only wrote a few tests to check for completions in `ItemList` position so far and I already found a few incorrect/irrelevant completions as these haven't been tested properly due to them being hidden by the `CompletionKind` filtering.

I think `CompletionKind` doesn't really seem to be beneficial to me as to I can't think of a occasion where we would want to only check a specific completion kind.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoMove test_utils into tests module
Lukas Wirth [Wed, 16 Jun 2021 19:45:02 +0000 (21:45 +0200)]
Move test_utils into tests module

3 years agoDon't complete paths after attributes
Lukas Wirth [Wed, 16 Jun 2021 16:50:18 +0000 (18:50 +0200)]
Don't complete paths after attributes

3 years agoDon't show incorrect completions after unsafe or visiblity node
Lukas Wirth [Wed, 16 Jun 2021 15:56:04 +0000 (17:56 +0200)]
Don't show incorrect completions after unsafe or visiblity node

3 years agoDon't complete visibility accessors after existing ones
Lukas Wirth [Wed, 16 Jun 2021 15:45:58 +0000 (17:45 +0200)]
Don't complete visibility accessors after existing ones

3 years agoStart refactoring ide_completion tests
Lukas Wirth [Wed, 16 Jun 2021 15:37:23 +0000 (17:37 +0200)]
Start refactoring ide_completion tests

3 years agointernal: add iterator to minicore
Aleksey Kladov [Wed, 16 Jun 2021 19:48:48 +0000 (22:48 +0300)]
internal: add iterator to minicore

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Wed, 16 Jun 2021 19:26:46 +0000 (22:26 +0300)]
internal: switch some tests to minicore

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Wed, 16 Jun 2021 19:24:11 +0000 (22:24 +0300)]
internal: switch some tests to minicore

3 years agoMerge #9302
bors[bot] [Wed, 16 Jun 2021 17:28:13 +0000 (17:28 +0000)]
Merge #9302

9302: internal: Add builtin derives to attribute completion fixtures r=Veykril a=Veykril

bors R+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't complete already used derive attributes
Lukas Wirth [Wed, 16 Jun 2021 17:27:06 +0000 (19:27 +0200)]
Don't complete already used derive attributes

3 years agoAdd builtin derives to attribute completion fixtures
Lukas Wirth [Wed, 16 Jun 2021 17:25:09 +0000 (19:25 +0200)]
Add builtin derives to attribute completion fixtures

3 years agoMerge #9258
bors[bot] [Wed, 16 Jun 2021 14:53:06 +0000 (14:53 +0000)]
Merge #9258

9258: minor: Give `ImportPrefix` variants better config names r=matklad a=Veykril

I feel like `crate` and `self` work better than `by_crate` and `by_self`. The only reason for the current names were that `Self` doesn't work for the variant name on the rust side so I forgot about setting proper config names on serde layer.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoMerge #9300
bors[bot] [Wed, 16 Jun 2021 13:52:15 +0000 (13:52 +0000)]
Merge #9300

9300: minor: Simplify r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoSimplify
Lukas Wirth [Wed, 16 Jun 2021 13:46:58 +0000 (15:46 +0200)]
Simplify

3 years agoMerge #9299
bors[bot] [Wed, 16 Jun 2021 13:10:44 +0000 (13:10 +0000)]
Merge #9299

9299: minor: Filter out non-type completions in the respective completions modules instead r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoFilter out non-type completions in the respective completions modules instead
Lukas Wirth [Wed, 16 Jun 2021 13:08:44 +0000 (15:08 +0200)]
Filter out non-type completions in the respective completions modules instead

3 years agoMerge #9297
bors[bot] [Wed, 16 Jun 2021 09:21:29 +0000 (09:21 +0000)]
Merge #9297

9297: internal: add fn to minicore r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: add fn to minicore
Aleksey Kladov [Wed, 16 Jun 2021 07:48:07 +0000 (10:48 +0300)]
internal: add fn to minicore

3 years agointernal: add deref_mut to minicore
Aleksey Kladov [Wed, 16 Jun 2021 07:30:29 +0000 (10:30 +0300)]
internal: add deref_mut to minicore

3 years agoMerge #9267 #9279
bors[bot] [Tue, 15 Jun 2021 20:45:54 +0000 (20:45 +0000)]
Merge #9267 #9279

9267: fix: Code: update the LSP server without asking r=matklad a=lnicola

Most LSP extensions seem to do the same thing, and this is causing some
confusion for users who don't notice the update prompt before Code hides
it.

9279: minor: Document installation via Homebrew r=matklad a=Svetlitski

`rust-analyzer` can be installed via [Homebrew](https://brew.sh) (AKA`brew`) on macOS. I've added instructions on how to do so to the documentation. Additionally, I added a `.gitignore` rule to ignore the HTML documentation produced by  `asciidoctor manual.adoc` so that it is not accidentally checked into `git`.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Co-authored-by: Kevin Svetlitski <kevin_svetlitski@berkeley.edu>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoUpdate docs/user/manual.adoc
Aleksey Kladov [Tue, 15 Jun 2021 20:40:07 +0000 (23:40 +0300)]
Update docs/user/manual.adoc

3 years agoMerge #9293
bors[bot] [Tue, 15 Jun 2021 20:38:29 +0000 (20:38 +0000)]
Merge #9293

9293: fix: Show diagnostic fixes before assists r=matklad a=lnicola

Closes #9212

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoMerge #9294
bors[bot] [Tue, 15 Jun 2021 20:14:36 +0000 (20:14 +0000)]
Merge #9294

9294: internal: introduce minicore -- a subset of libcore for testing r=matklad a=matklad

Clearly, we need one more fixed point iteration loop!

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 20:11:53 +0000 (23:11 +0300)]
internal: switch some tests to minicore

3 years agointernal: add result to minicore
Aleksey Kladov [Tue, 15 Jun 2021 20:07:25 +0000 (23:07 +0300)]
internal: add result to minicore

3 years agoMerge #9292
bors[bot] [Tue, 15 Jun 2021 20:05:07 +0000 (20:05 +0000)]
Merge #9292

9292: fix: Code: clean-up #8951 r=wxb1ank a=wxb1ank

#8951 was a major change in the VS Code extension and caused quite a few problems. This PR is a catch-all for bugs and improvements in the new code.

This should fix:
- #9284
- [this unreported bug](https://github.com/rust-analyzer/rust-analyzer/pull/8951/files#r651570446)
- ...and one or two uncaught exceptions I just found

The original lack of testing was my own fault, but this area of the VS Code API is also tricky for a couple reasons:
- The [FileSystem](https://github.com/rust-analyzer/rust-analyzer/pull/8951/files#r651570446) API does not list or warn about any exceptions, but [FileSystemProvider](https://github.com/rust-analyzer/rust-analyzer/pull/8951/files#r651570446) (which `FileSystem` is a wrapper of, AFAICT) does.
- At first glance, [Uri.path](https://github.com/rust-analyzer/rust-analyzer/pull/8951/files#r651570446) *looks* like it works for FS operations. It does not, at least, on Windows. You need to use `Uri.fsPath`.

I only use Windows, so I need people on macOS, Linux, and (possibly) NixOS to test this.

Co-authored-by: wxb1ank <wxblank@gmail.com>
3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 20:02:38 +0000 (23:02 +0300)]
internal: switch some tests to minicore

3 years agointernal: add option to minicore
Aleksey Kladov [Tue, 15 Jun 2021 19:59:51 +0000 (22:59 +0300)]
internal: add option to minicore

3 years agoMerge #9295
bors[bot] [Tue, 15 Jun 2021 19:50:34 +0000 (19:50 +0000)]
Merge #9295

9295: fix: Highlight unsafe trait refs as unsafe only in impl blocks and definitions r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoHighlight unsafe trait refs as unsafe only in impl blocks and definitions
Lukas Wirth [Tue, 15 Jun 2021 19:44:07 +0000 (21:44 +0200)]
Highlight unsafe trait refs as unsafe only in impl blocks and definitions

3 years agointernal: add future to minicore
Aleksey Kladov [Tue, 15 Jun 2021 19:49:00 +0000 (22:49 +0300)]
internal: add future to minicore

3 years agointernal: sanity-check minicore flags
Aleksey Kladov [Tue, 15 Jun 2021 19:38:21 +0000 (22:38 +0300)]
internal: sanity-check minicore flags

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 19:02:29 +0000 (22:02 +0300)]
internal: switch some tests to minicore

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 18:57:56 +0000 (21:57 +0300)]
internal: switch some tests to minicore

3 years agointernal: add ranges to minicore
Aleksey Kladov [Tue, 15 Jun 2021 18:45:25 +0000 (21:45 +0300)]
internal: add ranges to minicore

3 years agointernal: unindent some tests
Aleksey Kladov [Tue, 15 Jun 2021 18:39:44 +0000 (21:39 +0300)]
internal: unindent some tests

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 18:36:50 +0000 (21:36 +0300)]
internal: switch some tests to minicore

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 18:34:26 +0000 (21:34 +0300)]
internal: switch some tests to minicore

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 18:18:26 +0000 (21:18 +0300)]
internal: switch some tests to minicore

3 years agointernal: switch some tests to minicore
Aleksey Kladov [Tue, 15 Jun 2021 18:11:53 +0000 (21:11 +0300)]
internal: switch some tests to minicore

3 years agoUse `.then()` for Thenable
wxb1ank [Tue, 15 Jun 2021 18:03:34 +0000 (14:03 -0400)]
Use `.then()` for Thenable

3 years agointernal: introduce minicore -- a subset of libcore for testing
Aleksey Kladov [Tue, 15 Jun 2021 18:02:40 +0000 (21:02 +0300)]
internal: introduce minicore -- a subset of libcore for testing

3 years agoShow diagnostic fixes before assists
Laurențiu Nicola [Tue, 15 Jun 2021 17:55:27 +0000 (20:55 +0300)]
Show diagnostic fixes before assists

3 years agofix: clean-up #8951
wxb1ank [Tue, 15 Jun 2021 17:29:02 +0000 (13:29 -0400)]
fix: clean-up #8951

3 years agoConsolidate the privacy notes
Laurențiu Nicola [Tue, 15 Jun 2021 17:05:16 +0000 (20:05 +0300)]
Consolidate the privacy notes

3 years agoMerge #9291
bors[bot] [Tue, 15 Jun 2021 14:20:35 +0000 (14:20 +0000)]
Merge #9291

9291: minor: fix typo r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: fix typo
Aleksey Kladov [Tue, 15 Jun 2021 14:20:11 +0000 (17:20 +0300)]
minor: fix typo

3 years agoMerge #9290
bors[bot] [Tue, 15 Jun 2021 13:59:09 +0000 (13:59 +0000)]
Merge #9290

9290: internal: enforce no #[ignore] and no #[should_panic] r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: enforce no #[ignore] and no #[should_panic]
Aleksey Kladov [Tue, 15 Jun 2021 13:54:43 +0000 (16:54 +0300)]
internal: enforce no #[ignore] and no #[should_panic]

3 years agointernal: don't #[ignore] tests
Aleksey Kladov [Tue, 15 Jun 2021 13:37:58 +0000 (16:37 +0300)]
internal: don't #[ignore] tests

See the style.md for motivation

3 years agoMerge #9288
bors[bot] [Tue, 15 Jun 2021 09:49:30 +0000 (09:49 +0000)]
Merge #9288

9288: internal: cleanup tests r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: cleanup tests
Aleksey Kladov [Tue, 15 Jun 2021 09:48:05 +0000 (12:48 +0300)]
internal: cleanup tests

* ensure standard, non-indented style (should add this check to
  `fixture` some day)
* removed a couple of ignores

3 years agoMerge #9285
bors[bot] [Tue, 15 Jun 2021 08:59:08 +0000 (08:59 +0000)]
Merge #9285

9285: minor: add a test variation r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: add a test variation
Aleksey Kladov [Tue, 15 Jun 2021 08:58:39 +0000 (11:58 +0300)]
minor: add a test variation

3 years agoMerge #9278
bors[bot] [Tue, 15 Jun 2021 08:48:15 +0000 (08:48 +0000)]
Merge #9278

9278: internal: document that we don't #[ignore] tests r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: document that we don't #[ignore] tests
Aleksey Kladov [Mon, 14 Jun 2021 19:55:05 +0000 (22:55 +0300)]
internal: document that we don't #[ignore] tests

3 years agoMerge #9282
bors[bot] [Tue, 15 Jun 2021 06:47:33 +0000 (06:47 +0000)]
Merge #9282

9282: fix: Use objects instead of bools for markers in package.json r=lnicola a=lnicola

Addresses https://github.com/rust-analyzer/rust-analyzer/issues/9174#issue-913980665.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoUse objects instead of bools for markers in package.json
Laurențiu Nicola [Tue, 15 Jun 2021 06:32:53 +0000 (09:32 +0300)]
Use objects instead of bools for markers in package.json

3 years agoMerge #9281
bors[bot] [Tue, 15 Jun 2021 06:38:53 +0000 (06:38 +0000)]
Merge #9281

9281: fix: Code: use `Uri.toString()` for URLs r=lnicola a=wxb1ank

I believe this should fix #9280. Testing is needed but I wanted to quickly push a hotfix.

Co-authored-by: wxb1ank <wxblank@gmail.com>
3 years agoUse `Uri.toString()` for URLs
wxb1ank [Tue, 15 Jun 2021 03:29:38 +0000 (23:29 -0400)]
Use `Uri.toString()` for URLs

3 years agoDocument installation via Homebrew; Add gitignore entry for asciidoctor output
Kevin Svetlitski [Mon, 14 Jun 2021 21:41:34 +0000 (16:41 -0500)]
Document installation via Homebrew; Add gitignore entry for asciidoctor output

3 years agoMerge #9277
bors[bot] [Mon, 14 Jun 2021 19:44:59 +0000 (19:44 +0000)]
Merge #9277

9277: internal: more natural order of sources for TypeParam r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: more natural order of sources for TypeParam
Aleksey Kladov [Mon, 14 Jun 2021 19:42:43 +0000 (22:42 +0300)]
internal: more natural order of sources for TypeParam

We usually use first (left) variant of `Either` for "usual" case, and
use right for odd things. For example, pat source is Pat | SelfParam.

3 years agoMerge #9276
bors[bot] [Mon, 14 Jun 2021 19:37:28 +0000 (19:37 +0000)]
Merge #9276

9276: internal: refactor diagnostics more r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: test diagnostic severeties and presense of fixes
Aleksey Kladov [Mon, 14 Jun 2021 19:06:28 +0000 (22:06 +0300)]
internal: test diagnostic severeties and presense of fixes

3 years agominor: make diagnostics more similar
Aleksey Kladov [Mon, 14 Jun 2021 18:23:59 +0000 (21:23 +0300)]
minor: make diagnostics more similar

3 years agoMerge #9275
bors[bot] [Mon, 14 Jun 2021 19:08:05 +0000 (19:08 +0000)]
Merge #9275

9275: feat: Support goto type for field expressions and patterns r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoSupport goto type for field expressions and patterns
Lukas Wirth [Mon, 14 Jun 2021 19:07:07 +0000 (21:07 +0200)]
Support goto type for field expressions and patterns

3 years agoMerge #9273
bors[bot] [Mon, 14 Jun 2021 17:41:52 +0000 (17:41 +0000)]
Merge #9273

9273: internal: don't pull tracing via chalk r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: don't pull tracing via chalk
Aleksey Kladov [Mon, 14 Jun 2021 17:41:08 +0000 (20:41 +0300)]
internal: don't pull tracing via chalk

3 years agoMerge #9272
bors[bot] [Mon, 14 Jun 2021 16:46:25 +0000 (16:46 +0000)]
Merge #9272

9272: internal: move diagnostics to a dedicated crate r=matklad a=matklad

bors r+

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: document diagnostics crate
Aleksey Kladov [Mon, 14 Jun 2021 16:32:39 +0000 (19:32 +0300)]
internal: document diagnostics crate

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

9270: minor: Add assoc type in trait bound completion test r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoAdd assoc type in trait bound completion test
Lukas Wirth [Mon, 14 Jun 2021 16:17:21 +0000 (18:17 +0200)]
Add assoc type in trait bound completion test

3 years agominor: less ambiguous name
Aleksey Kladov [Mon, 14 Jun 2021 16:15:53 +0000 (19:15 +0300)]
minor: less ambiguous name

3 years agointernal: flatten module hierarchy
Aleksey Kladov [Mon, 14 Jun 2021 16:14:34 +0000 (19:14 +0300)]
internal: flatten module hierarchy

It seems that any crate can be made better by flattening the modules
down to a single layer?

3 years agointernal: document rename challenges
Aleksey Kladov [Mon, 14 Jun 2021 16:08:12 +0000 (19:08 +0300)]
internal: document rename challenges

3 years agointernal: adapt diagnostics to the new rename API
Aleksey Kladov [Mon, 14 Jun 2021 15:46:27 +0000 (18:46 +0300)]
internal: adapt diagnostics to the new rename API

3 years agointernal: cut deps between assists and diagnostics
Aleksey Kladov [Mon, 14 Jun 2021 10:27:11 +0000 (13:27 +0300)]
internal: cut deps between assists and diagnostics

3 years agointernal: prepare to move assist definitions
Aleksey Kladov [Mon, 14 Jun 2021 10:18:03 +0000 (13:18 +0300)]
internal: prepare to move assist definitions

3 years agointernal: move diagnostics to a new crate
Aleksey Kladov [Mon, 14 Jun 2021 10:15:05 +0000 (13:15 +0300)]
internal: move diagnostics to a new crate

3 years agointernal: start ide diagnostics crate
Aleksey Kladov [Mon, 14 Jun 2021 09:24:58 +0000 (12:24 +0300)]
internal: start ide diagnostics crate

3 years agoCode: automatically update the LSP server
Laurențiu Nicola [Mon, 14 Jun 2021 14:44:26 +0000 (17:44 +0300)]
Code: automatically update the LSP server

Most LSP extensions seem to do the same thing, and this is causing some
confusion for users who don't notice the update prompt before Code hides
it.

3 years agoMerge #9265
bors[bot] [Mon, 14 Jun 2021 14:30:59 +0000 (14:30 +0000)]
Merge #9265

9265: internal: prepare to move rename to base_db  r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: prepare to move rename to base_db
Aleksey Kladov [Mon, 14 Jun 2021 14:19:41 +0000 (17:19 +0300)]
internal: prepare to move rename to base_db

It's better to handle magical cases upper in the stack, because it
allows for better re-use of the general implementation below. So, we
pull the `self` case up here.

The end goal is to put `Definition::rename` to the `ide_db`, because
it's a generally re-usable functionality useful for different ide
features, alongside with the search which is already there.

3 years agoMerge #9263
bors[bot] [Mon, 14 Jun 2021 12:46:38 +0000 (12:46 +0000)]
Merge #9263

9263: fix: don't use display-related functionality where semantics matters r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofix: don't use display-related functionality where semantics matters
Aleksey Kladov [Mon, 14 Jun 2021 12:43:59 +0000 (15:43 +0300)]
fix: don't use display-related functionality where semantics matters

NavigationTarget is strictly a UI-level thing -- it describes where the
cursor should be placed when the user presses goto definition. It
doesn't make any semantic guaratees about rage and focus range and, as
such, is not suitable for driving renames.

3 years agoMerge #9262
bors[bot] [Mon, 14 Jun 2021 11:57:20 +0000 (11:57 +0000)]
Merge #9262

9262: fix: Don't keep a trailing `self` token in import paths after `unmerge_use` r=Veykril a=Veykril

Fixes #9213
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't keep a trailing self token in import paths after unmerge_use
Lukas Wirth [Mon, 14 Jun 2021 11:56:33 +0000 (13:56 +0200)]
Don't keep a trailing self token in import paths after unmerge_use

3 years agoMerge #8951
bors[bot] [Mon, 14 Jun 2021 10:30:10 +0000 (10:30 +0000)]
Merge #8951

8951: internal: migrate to vscode.FileSystem API r=matklad a=wxb1ank

I encountered an error where `bootstrap()` attempts to create a directory with the path `C:\C:\...`. I couldn't find this reported anywhere else. Using the `vscode.FileSystem` API instead of the `fs` one works here. I assume the latter automatically prepends `C:\` to paths whereas the former does not. I don't know if this suggests `vscode.FileSystem` should be used in more places for consistency.

Co-authored-by: wxb1ank <wxblank@gmail.com>
3 years agoMerge #9261
bors[bot] [Mon, 14 Jun 2021 07:40:45 +0000 (07:40 +0000)]
Merge #9261

9261: minor: dev/architecture.md: Fix typo in env-var quoting r=lnicola a=lf-

Co-authored-by: Jade <software@lfcode.ca>
3 years agoFix typo in env-var quoting
Jade [Mon, 14 Jun 2021 07:38:28 +0000 (00:38 -0700)]
Fix typo in env-var quoting

3 years agoMerge #9260
bors[bot] [Mon, 14 Jun 2021 07:16:48 +0000 (07:16 +0000)]
Merge #9260

9260: tree-wide: make rustdoc links spiky so they are clickable r=matklad a=lf-

Rustdoc was complaining about these while I was running with --document-private-items and I figure they should be fixed.

Co-authored-by: Jade <software@lfcode.ca>
3 years agotree-wide: make rustdoc links spiky so they are clickable
Jade [Mon, 14 Jun 2021 04:57:10 +0000 (21:57 -0700)]
tree-wide: make rustdoc links spiky so they are clickable

3 years agoGive ImportPrefix variants better config names
Lukas Wirth [Sun, 13 Jun 2021 20:00:39 +0000 (22:00 +0200)]
Give ImportPrefix variants better config names

3 years agoMerge #9257
bors[bot] [Sun, 13 Jun 2021 19:17:57 +0000 (19:17 +0000)]
Merge #9257

9257: internal: diagnostic code is mandatory r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>