]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoMerge #5951 #5975
bors[bot] [Fri, 11 Sep 2020 13:47:33 +0000 (13:47 +0000)]
Merge #5951 #5975

5951: Rename record_field_pat to record_pat_field r=jonas-schievink a=pksunkara

The token was renamed but not this.

5975: Report better errors in project.json/sysroot r=jonas-schievink a=jonas-schievink

This does a bunch of light refactoring so that the `Sysroot` is loaded later, which makes sure that any errors are reported to the user. I then added a check that reports an error if libcore is missing in the loaded sysroot. Since a sysroot without libcore is very useless, this indicates a configuration error.

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
3 years agoMerge #5970
bors[bot] [Fri, 11 Sep 2020 13:41:15 +0000 (13:41 +0000)]
Merge #5970

5970: Use better heuristics for replacement text when removing dbg! r=jonas-schievink a=SomeoneToIgnore

Closes https://github.com/rust-analyzer/rust-analyzer/issues/5911

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
3 years agoReport better errors in project.json/sysroot
Jonas Schievink [Fri, 11 Sep 2020 12:48:56 +0000 (14:48 +0200)]
Report better errors in project.json/sysroot

3 years agoMerge #5969
bors[bot] [Fri, 11 Sep 2020 11:37:04 +0000 (11:37 +0000)]
Merge #5969

5969: Propose module name completion options r=jonas-schievink a=SomeoneToIgnore

<img width="539" alt="image" src="https://user-images.githubusercontent.com/2690773/92663009-cb0aec00-f308-11ea-9ef5-1faa91518031.png">

Currently traverses the whole file set every time we try to complete the module, as discussed in https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/mod.3C.7C.3E.20completion

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
3 years agoAdjust the test comment
Kirill Bulatov [Fri, 11 Sep 2020 11:16:15 +0000 (14:16 +0300)]
Adjust the test comment

3 years agoMerge #5957
bors[bot] [Thu, 10 Sep 2020 21:59:00 +0000 (21:59 +0000)]
Merge #5957

5957: Add consuming modifier to lvalues that are passed by value and not Copy r=jonas-schievink a=Nashenas88

Related to #5856

Co-authored-by: Paul Daniel Faria <Nashenas88@users.noreply.github.com>
3 years agoOne more test
Kirill Bulatov [Thu, 10 Sep 2020 21:20:13 +0000 (00:20 +0300)]
One more test

3 years agoMerge #5956
bors[bot] [Thu, 10 Sep 2020 20:55:06 +0000 (20:55 +0000)]
Merge #5956

5956: Highlight errors in macros r=jonas-schievink a=popzxc

Resolves #4924

This PR makes rust-analyzer highlight not only the source place when error originates in macro, but also the exact places in macro which caused an error.

This is done by creating an inverse diagnostic, which points to the macro and cross-references the source place.

![изображение](https://user-images.githubusercontent.com/12111581/92319594-b71e6c00-f022-11ea-94c1-f412905269dd.png)

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
3 years agoRename record_field_pat to record_pat_field
Pavan Kumar Sunkara [Sat, 5 Sep 2020 01:06:05 +0000 (03:06 +0200)]
Rename record_field_pat to record_pat_field

3 years agoUse better heuristics for replacement text when removing dbg!
Kirill Bulatov [Thu, 10 Sep 2020 11:14:24 +0000 (14:14 +0300)]
Use better heuristics for replacement text when removing dbg!

3 years agoOne more test
Kirill Bulatov [Wed, 9 Sep 2020 22:58:29 +0000 (01:58 +0300)]
One more test

3 years agoRename the method to avoid false promises
Kirill Bulatov [Wed, 9 Sep 2020 22:45:49 +0000 (01:45 +0300)]
Rename the method to avoid false promises

3 years agoAdd VirtualPath tests
Kirill Bulatov [Mon, 7 Sep 2020 23:42:45 +0000 (02:42 +0300)]
Add VirtualPath tests

3 years agoFix the tests
Kirill Bulatov [Mon, 7 Sep 2020 23:34:11 +0000 (02:34 +0300)]
Fix the tests

3 years agoAdd tests
Kirill Bulatov [Mon, 7 Sep 2020 23:26:55 +0000 (02:26 +0300)]
Add tests

3 years agoProperly handle mod.rs imports
Kirill Bulatov [Mon, 7 Sep 2020 22:45:05 +0000 (01:45 +0300)]
Properly handle mod.rs imports

3 years agoComplete semicolon when needed
Kirill Bulatov [Mon, 7 Sep 2020 22:24:16 +0000 (01:24 +0300)]
Complete semicolon when needed

3 years agoProperly reacto to keywords
Kirill Bulatov [Mon, 7 Sep 2020 21:54:58 +0000 (00:54 +0300)]
Properly reacto to keywords

3 years agoLess false positive completion candidates
Kirill Bulatov [Mon, 7 Sep 2020 21:00:00 +0000 (00:00 +0300)]
Less false positive completion candidates

3 years agoProperly handle nested submodules in the same file
Kirill Bulatov [Mon, 7 Sep 2020 18:39:23 +0000 (21:39 +0300)]
Properly handle nested submodules in the same file

3 years agoMove most of the logic into the completion module
Kirill Bulatov [Mon, 7 Sep 2020 17:52:37 +0000 (20:52 +0300)]
Move most of the logic into the completion module

3 years agoFinally cretae the mod completion module
Kirill Bulatov [Mon, 7 Sep 2020 16:21:39 +0000 (19:21 +0300)]
Finally cretae the mod completion module

3 years agoMove rust-related logic from vfs to base_db level
Kirill Bulatov [Mon, 7 Sep 2020 13:17:50 +0000 (16:17 +0300)]
Move rust-related logic from vfs to base_db level

3 years agoProperly handle special cases (binaries, mod.rs)
Kirill Bulatov [Sat, 5 Sep 2020 22:41:18 +0000 (01:41 +0300)]
Properly handle special cases (binaries, mod.rs)

3 years agoExclude special files
Kirill Bulatov [Fri, 4 Sep 2020 12:13:31 +0000 (15:13 +0300)]
Exclude special files

3 years agoImplement file name & extension retrieval method for VirtualPath
Kirill Bulatov [Fri, 4 Sep 2020 12:05:56 +0000 (15:05 +0300)]
Implement file name & extension retrieval method for VirtualPath

3 years agoSmall refactoring
Kirill Bulatov [Fri, 4 Sep 2020 10:33:07 +0000 (13:33 +0300)]
Small refactoring

3 years agoHappy path implemented
Kirill Bulatov [Thu, 3 Sep 2020 23:25:00 +0000 (02:25 +0300)]
Happy path implemented

3 years agoProperly use FileSet API
Kirill Bulatov [Thu, 3 Sep 2020 22:32:06 +0000 (01:32 +0300)]
Properly use FileSet API

3 years agoBetter API
Kirill Bulatov [Thu, 3 Sep 2020 20:18:23 +0000 (23:18 +0300)]
Better API

3 years agoFirst steps for mod<|> completion
Kirill Bulatov [Fri, 28 Aug 2020 18:28:30 +0000 (21:28 +0300)]
First steps for mod<|> completion

3 years agoMerge #5968
bors[bot] [Wed, 9 Sep 2020 17:20:39 +0000 (17:20 +0000)]
Merge #5968

5968: Lookup ADT and associated type names for chalk debugging / tweak chalk interner r=flodiebold a=nathanwhit

This PR improves the chalk program writing integration by looking up the names for ADTs and associated types, making the output much more readable.

There are also a few small changes to the interner, which gives some nice performance improvements. We clone `Ty`s and `ProgramClause`s relatively often in chalk, so wrapping them in `Arc`s is a perf win. This takes the time for performing type inference on the rust-analyzer codebase from 40s to 33s on my machine.

Co-authored-by: Nathan Whitaker <nathan.whitaker01@gmail.com>
3 years agoTweak interner for chalk
Nathan Whitaker [Wed, 9 Sep 2020 16:55:38 +0000 (12:55 -0400)]
Tweak interner for chalk

3 years agoLookup ADT and assoc. type names for chalk debug
Nathan Whitaker [Wed, 9 Sep 2020 16:55:05 +0000 (12:55 -0400)]
Lookup ADT and assoc. type names for chalk debug

3 years agoMerge #5965
bors[bot] [Tue, 8 Sep 2020 13:02:14 +0000 (13:02 +0000)]
Merge #5965

5965: Update crates r=kjeremy a=kjeremy

Moves past pulled crossbeam-channel crate

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoUpdate crates
kjeremy [Tue, 8 Sep 2020 12:50:03 +0000 (08:50 -0400)]
Update crates

Gets passed pulled crossbeam crate

3 years agoFix handling of consuming self, refactor shared logic into a single function
Paul Daniel Faria [Sun, 6 Sep 2020 18:34:01 +0000 (14:34 -0400)]
Fix handling of consuming self, refactor shared logic into a single function

3 years agoAdd consuming modifier to lvalues that are passed by value and not Copy
Paul Daniel Faria [Sun, 6 Sep 2020 16:26:53 +0000 (12:26 -0400)]
Add consuming modifier to lvalues that are passed by value and not Copy

3 years agoHighlight errors in macros
Igor Aleksanov [Sun, 6 Sep 2020 06:22:01 +0000 (09:22 +0300)]
Highlight errors in macros

3 years agoMerge #5940
bors[bot] [Fri, 4 Sep 2020 21:54:42 +0000 (21:54 +0000)]
Merge #5940

5940: Implement "Replace `impl Trait` function argument with the named generic" assist. r=matklad a=alekseysidorov

Fixes #5085

Co-authored-by: Aleksei Sidorov <gorthauer87@yandex.ru>
3 years agoRemove unnecessary comma
Aleksei Sidorov [Fri, 4 Sep 2020 19:58:50 +0000 (22:58 +0300)]
Remove unnecessary comma

3 years agoFix tests
Aleksei Sidorov [Fri, 4 Sep 2020 14:55:27 +0000 (17:55 +0300)]
Fix tests

3 years agoMerge #5935
bors[bot] [Fri, 4 Sep 2020 13:28:05 +0000 (13:28 +0000)]
Merge #5935

5935: Rewrite import insertion r=matklad a=Veykril

This is my attempt at refactoring the import insertion #3947. I hope what I created here is somewhat in line with what was requested, it wouldn't surprise me .

`common_prefix` is a copy from `merge_imports.rs` so those should be unified somewhere, `try_merge_trees` is also copied from there but slighly modified to take the `MergeBehaviour` enum into account.
`MergeBehaviour` should in the end become a configuration option, and the order if `ImportGroup` probably as well?

I'm not too familiar with the assist stuff and the like which is why I dont know what i have to do with `insert_use_statement` and `find_insert_use_container` for now.

I will most likely add more test cases in the end as well as I currently only tried to hit every path in `find_insert_position`.
Some of the merge tests also fail atm due to them not sorting what they insert. There is also this test case I'm not sure if we want to support it. I would assume we want to? https://github.com/rust-analyzer/rust-analyzer/pull/5935/files#diff-6923916dd8bdd2f1ab4b984adacd265fR540-R547

The entire module was rewritten so looking at the the file itself is probably better than looking at the diff.

Regarding the sub issues of #3947:
- #3301: This is fixed with the rewrite, what this implementation does is that it scans through the first occurence of groupings and picks the appropriate one out. This means the user can actually rearrange the groupings on a per file basis to their liking. If a group isnt being found it is inserted according to the `ImportGroup` variant order(Would be nice if this was configurable I imagine).
- #3831: This should be fixed with the introduced `MergeBehaviour` enum and it's `Last` variant.
- #3946: This should also be [fixed](https://github.com/rust-analyzer/rust-analyzer/pull/5935/files#diff-6923916dd8bdd2f1ab4b984adacd265fR87)
- #5795: This is fixed in the sense that the grouping search picks the first group that is of the same kind as the import that is being added. So if  there is a random import in the middle of the program it should only be considered if there is no group of the same kind in the file already present.
- the last point in the list I havent checked yet, tho I got the feeling that it's not gonna be too simple as that will require knowledge of whether in this example `ast` is a crate or the module that is already imported.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoUpdate codegen
Aleksei Sidorov [Fri, 4 Sep 2020 12:28:08 +0000 (15:28 +0300)]
Update codegen

3 years agoFix nitpicks
Aleksei Sidorov [Fri, 4 Sep 2020 12:24:36 +0000 (15:24 +0300)]
Fix nitpicks

3 years agoMerge #5948
bors[bot] [Thu, 3 Sep 2020 21:52:12 +0000 (21:52 +0000)]
Merge #5948

5948: Up proc-macro2 to 1.20 r=matklad a=kjeremy

This changes the way Display is implemented

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoUp proc-macro2 to 1.20
kjeremy [Thu, 3 Sep 2020 21:30:44 +0000 (17:30 -0400)]
Up proc-macro2 to 1.20

This changes the way Display is implemented

3 years agoAdd extra insert_use test for pub(crate) re-export handling
Lukas Wirth [Thu, 3 Sep 2020 16:44:39 +0000 (18:44 +0200)]
Add extra insert_use test for pub(crate) re-export handling

3 years agoDisable insert_import in extract_struct_from_enum_variant until its fixed
Lukas Wirth [Thu, 3 Sep 2020 16:32:29 +0000 (18:32 +0200)]
Disable insert_import in extract_struct_from_enum_variant until its fixed

3 years agoFix import insertion breaking nested modules
Lukas Wirth [Thu, 3 Sep 2020 14:23:33 +0000 (16:23 +0200)]
Fix import insertion breaking nested modules

3 years agoFix inserting imports in front of inner attributes
Lukas Wirth [Thu, 3 Sep 2020 12:38:34 +0000 (14:38 +0200)]
Fix inserting imports in front of inner attributes

3 years agoReplace insert_use_statement with the new insert_use
Lukas Wirth [Thu, 3 Sep 2020 12:22:22 +0000 (14:22 +0200)]
Replace insert_use_statement with the new insert_use

3 years agoImpl make::blank_line
Lukas Wirth [Thu, 3 Sep 2020 10:36:16 +0000 (12:36 +0200)]
Impl make::blank_line

3 years agoUse mark to check that paths that are too long will not be merged
Lukas Wirth [Wed, 2 Sep 2020 17:34:01 +0000 (19:34 +0200)]
Use mark to check that paths that are too long will not be merged

3 years agoTidy up tests and apply suggested changes
Lukas Wirth [Wed, 2 Sep 2020 17:22:23 +0000 (19:22 +0200)]
Tidy up tests and apply suggested changes

3 years agoAdd more import insertion tests
Lukas Wirth [Wed, 2 Sep 2020 13:50:29 +0000 (15:50 +0200)]
Add more import insertion tests

3 years agoBegin refactor of import insertion
Lukas Wirth [Wed, 2 Sep 2020 13:21:10 +0000 (15:21 +0200)]
Begin refactor of import insertion

3 years agoResolve most of corner cases
Aleksei Sidorov [Thu, 3 Sep 2020 11:46:28 +0000 (14:46 +0300)]
Resolve most of corner cases

3 years agoInitial implementation of the #5085 issue
Aleksei Sidorov [Wed, 2 Sep 2020 22:32:18 +0000 (01:32 +0300)]
Initial implementation of the #5085 issue

3 years agoMerge #5942
bors[bot] [Thu, 3 Sep 2020 11:39:03 +0000 (11:39 +0000)]
Merge #5942

5942: Actually assert disjointness
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoActually assert disjointness
Aleksey Kladov [Thu, 3 Sep 2020 11:24:06 +0000 (13:24 +0200)]
Actually assert disjointness

3 years agoMerge #5941
bors[bot] [Thu, 3 Sep 2020 10:23:08 +0000 (10:23 +0000)]
Merge #5941

5941: Unify naming
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoUnify naming
Aleksey Kladov [Thu, 3 Sep 2020 10:18:46 +0000 (12:18 +0200)]
Unify naming

3 years agoMerge #5937
bors[bot] [Thu, 3 Sep 2020 10:13:41 +0000 (10:13 +0000)]
Merge #5937

5937: Chalk 0.25 r=matklad a=kjeremy

Picks up flodiebold's infinite loop fix

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoMerge #5939
bors[bot] [Thu, 3 Sep 2020 10:06:49 +0000 (10:06 +0000)]
Merge #5939

5939: default `checkOnSave.enable` to `true` in server r=matklad a=euclio

Fixes #5905.

Co-authored-by: Andy Russell <arussell123@gmail.com>
3 years agodefault `checkOnSave.enable` to `true` in server
Andy Russell [Wed, 2 Sep 2020 21:44:21 +0000 (17:44 -0400)]
default `checkOnSave.enable` to `true` in server

3 years agoChalk 0.25
kjeremy [Wed, 2 Sep 2020 18:07:06 +0000 (14:07 -0400)]
Chalk 0.25

Picks up flodiebold's infinite loop fix

3 years agoMerge #5930
bors[bot] [Wed, 2 Sep 2020 15:11:22 +0000 (15:11 +0000)]
Merge #5930

5930: Migrate to the latest Semantic Tokens Proposal for LSP 3.16 r=matklad a=kjeremy

This stabilizes call hierarchy and semantic tokens features on the client side and changes the server-side semantic tokens protocol to match the latest proposal for 3.16.

The server-side change will break clients depending on the earlier semantic tokens draft.

Fixes #4942

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoMerge #5936
bors[bot] [Wed, 2 Sep 2020 14:22:05 +0000 (14:22 +0000)]
Merge #5936

5936: cargo update r=kjeremy a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoSwitch to upstream ENUM_MEMBER
kjeremy [Tue, 1 Sep 2020 17:10:23 +0000 (13:10 -0400)]
Switch to upstream ENUM_MEMBER

3 years agoMove to vscode-languageclient 7.0.0-next.9
kjeremy [Tue, 1 Sep 2020 16:53:07 +0000 (12:53 -0400)]
Move to vscode-languageclient 7.0.0-next.9

Stabilizes call hierarchy and semantic tokens features.

3 years agocargo update
kjeremy [Wed, 2 Sep 2020 13:36:03 +0000 (09:36 -0400)]
cargo update

3 years agoMerge #5931
bors[bot] [Tue, 1 Sep 2020 18:48:48 +0000 (18:48 +0000)]
Merge #5931

5931: Update vscode to 1.47 and update the rest of our npm packages r=kjeremy a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoUpdate the rest of our node packages
kjeremy [Tue, 1 Sep 2020 18:22:44 +0000 (14:22 -0400)]
Update the rest of our node packages

3 years agoBump minimum vscode to 1.47
kjeremy [Tue, 1 Sep 2020 18:13:55 +0000 (14:13 -0400)]
Bump minimum vscode to 1.47

3 years agoMerge #5927
bors[bot] [Tue, 1 Sep 2020 17:56:24 +0000 (17:56 +0000)]
Merge #5927

5927: Document VS Code setting needed for on-typing assists r=matklad a=arzg

Fixes #5925.

Co-authored-by: Aramis Razzaghipour <aramisnoah@gmail.com>
3 years agoMerge #5929
bors[bot] [Tue, 1 Sep 2020 17:45:16 +0000 (17:45 +0000)]
Merge #5929

5929: Upgrade mocha from `npm audit fix` r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
3 years agoUpgrade mocha from `npm audit fix`
kjeremy [Tue, 1 Sep 2020 14:17:24 +0000 (10:17 -0400)]
Upgrade mocha from `npm audit fix`

3 years agoDocument VS Code setting needed for on-typing assists
Aramis Razzaghipour [Tue, 1 Sep 2020 13:40:53 +0000 (23:40 +1000)]
Document VS Code setting needed for on-typing assists

3 years agoMerge #5926
bors[bot] [Tue, 1 Sep 2020 12:57:28 +0000 (12:57 +0000)]
Merge #5926

5926: Bump token expansion limit
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoBump token expansion limit
Aleksey Kladov [Tue, 1 Sep 2020 12:55:41 +0000 (14:55 +0200)]
Bump token expansion limit

We hit this for redis crate, reported at

Reported at
https://www.reddit.com/r/rust/comments/ikfsf8/rustanalyzer_doesnt_work_with_the_redis_crate/

3 years agoMerge #5923
bors[bot] [Tue, 1 Sep 2020 07:51:18 +0000 (07:51 +0000)]
Merge #5923

5923:  "How I survived Git" tips  r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years ago"How I survived Git" tips
Aleksey Kladov [Tue, 1 Sep 2020 07:38:17 +0000 (09:38 +0200)]
"How I survived Git" tips

3 years agoMerge #5862
bors[bot] [Tue, 1 Sep 2020 07:24:01 +0000 (07:24 +0000)]
Merge #5862

5862: Add a test that forbids merge commits r=matklad a=dragfire

Fixes #5854

Co-authored-by: dragfire <asem.devajit@gmail.com>
3 years agoAdd a test that forbids merge commits
dragfire [Mon, 24 Aug 2020 21:17:00 +0000 (15:17 -0600)]
Add a test that forbids merge commits

3 years agoMerge #5921
bors[bot] [Mon, 31 Aug 2020 16:20:53 +0000 (16:20 +0000)]
Merge #5921

5921: Don't publish every day and do it only for release r=matklad a=pksunkara

I think this is a good balance.

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
3 years agoDon't publish every day and do it only for release
Pavan Kumar Sunkara [Mon, 31 Aug 2020 15:35:26 +0000 (17:35 +0200)]
Don't publish every day and do it only for release

3 years agoMerge #5920
bors[bot] [Mon, 31 Aug 2020 13:48:07 +0000 (13:48 +0000)]
Merge #5920

5920: Reduce path_from_text usage
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoReduce path_from_text usage
Aleksey Kladov [Mon, 31 Aug 2020 13:47:42 +0000 (15:47 +0200)]
Reduce path_from_text usage

3 years agoRemove dead code
Aleksey Kladov [Mon, 31 Aug 2020 13:43:37 +0000 (15:43 +0200)]
Remove dead code

3 years agoMerge #5914
bors[bot] [Sun, 30 Aug 2020 08:27:57 +0000 (08:27 +0000)]
Merge #5914

5914: Replace custom `xtask::not_bash::fs2` setup with fs_err crate r=matklad a=Veetaha

Co-authored-by: Veetaha <veetaha2@gmail.com>
3 years agoMerge #5910 #5912
bors[bot] [Sat, 29 Aug 2020 14:52:42 +0000 (14:52 +0000)]
Merge #5910 #5912

5910: Fix some typos r=matklad a=SomeoneToIgnore

5912: Remove fixme from inlay_hints.ts r=matklad a=Veetaha

I have reevaluated the fixme and it doesn't seem necessary to pass an array of files
to the inlay hints request.
This will (a) make the request more compilcated (b), make us wait for
inlay hints for `all` active editors resolve at once before rendering and (c)
doesn't seem required because 99% of the time there is a single active editor
in the IDE

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Veetaha <veetaha2@gmail.com>
3 years agoReplace custom `not_bash::fs2` setup with fs_err crate
Veetaha [Sat, 29 Aug 2020 14:47:13 +0000 (17:47 +0300)]
Replace custom `not_bash::fs2` setup with fs_err crate

3 years agoMerge #5909
bors[bot] [Sat, 29 Aug 2020 14:46:53 +0000 (14:46 +0000)]
Merge #5909

5909: Add rust-analyzer.checkOnSave.target to package.json r=matklad a=lnicola

This was already implemented, but it's missing from the manifest.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoRemove fixme from inlay_hints.ts
Veetaha [Fri, 28 Aug 2020 23:05:42 +0000 (02:05 +0300)]
Remove fixme from inlay_hints.ts

I have reevaluated the fixme and it doesn't seem necessary to pass an array of files
to the inlay hints request.
This will (a) make the request more compilcated (b), make us wait for
inlay hints for `all` active editors resolve at once before rendering and (c)
doesn't seem required because 99% of the time there is a single active editor
in the IDE

3 years agoFix some typos
Kirill Bulatov [Fri, 28 Aug 2020 18:55:24 +0000 (21:55 +0300)]
Fix some typos

3 years agoAdd rust-analyzer.checkOnSave.target to package.json
Laurențiu Nicola [Fri, 28 Aug 2020 16:30:07 +0000 (19:30 +0300)]
Add rust-analyzer.checkOnSave.target to package.json

3 years agoMerge #5908
bors[bot] [Fri, 28 Aug 2020 14:54:14 +0000 (14:54 +0000)]
Merge #5908

5908: fmt import
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofmt import
Aleksey Kladov [Fri, 28 Aug 2020 14:53:49 +0000 (16:53 +0200)]
fmt import

3 years agoMerge #5907
bors[bot] [Fri, 28 Aug 2020 12:47:53 +0000 (12:47 +0000)]
Merge #5907

5907: :arrow_up: expect-test
 r=matklad a=matklad

bors r+
🤖

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