]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoDisable optimizations for some build-time crates
Laurențiu Nicola [Fri, 31 Jan 2020 19:49:44 +0000 (21:49 +0200)]
Disable optimizations for some build-time crates

4 years agoMerge #2960
bors[bot] [Fri, 31 Jan 2020 12:35:15 +0000 (12:35 +0000)]
Merge #2960

2960: Small cleanup r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSmall cleanup
Aleksey Kladov [Fri, 31 Jan 2020 12:34:44 +0000 (13:34 +0100)]
Small cleanup

4 years agoMerge #2946
bors[bot] [Thu, 30 Jan 2020 17:25:44 +0000 (17:25 +0000)]
Merge #2946

2946: updating nvim_lsp usage for rust_analyzer r=matklad a=matu3ba

The other option is invalid and a working version depends on [PR](https://github.com/neovim/nvim-lsp/pull/107)

Co-authored-by: Jan <jan.hafer@rwth-aachen.de>
4 years agoMerge #2955
bors[bot] [Thu, 30 Jan 2020 17:14:42 +0000 (17:14 +0000)]
Merge #2955

2955: :arrow_up: rust r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSwitch Cargo.lock to the new format
Aleksey Kladov [Thu, 30 Jan 2020 17:14:20 +0000 (18:14 +0100)]
Switch Cargo.lock to the new format

4 years ago:arrow_up: rust
Aleksey Kladov [Thu, 30 Jan 2020 17:03:24 +0000 (18:03 +0100)]
:arrow_up: rust

4 years agoMerge #2954
bors[bot] [Thu, 30 Jan 2020 17:02:12 +0000 (17:02 +0000)]
Merge #2954

2954: Add a FIXME note r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAdd a FIXME note
Aleksey Kladov [Thu, 30 Jan 2020 17:01:38 +0000 (18:01 +0100)]
Add a FIXME note

4 years agoMerge #2920
bors[bot] [Thu, 30 Jan 2020 16:48:35 +0000 (16:48 +0000)]
Merge #2920

2920: Better handle illformed node id from metadata r=matklad a=edwin0cheng

In some rare cases, deps node-id from cargo-metadata do not match its version-id, which cause a panic in `cargo-workspace.rs`. This PR try to ignore these ill-formed node id from `cargo-metadata`. An alternative is return  `Err` in these cases but I think make it resilience is a better choice here.

Related #2767

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoMerge #2953
bors[bot] [Thu, 30 Jan 2020 13:10:53 +0000 (13:10 +0000)]
Merge #2953

2953: Update crates r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoUpdate crates
Jeremy Kolb [Thu, 30 Jan 2020 13:07:42 +0000 (08:07 -0500)]
Update crates

4 years agoMerge #2952
bors[bot] [Thu, 30 Jan 2020 12:18:32 +0000 (12:18 +0000)]
Merge #2952

2952: Simplify fixture parsing r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSimplify fixture parsing
Aleksey Kladov [Thu, 30 Jan 2020 12:17:56 +0000 (13:17 +0100)]
Simplify fixture parsing

4 years agoMerge #2895
bors[bot] [Wed, 29 Jan 2020 20:09:49 +0000 (20:09 +0000)]
Merge #2895

2895: Rewrite ra_prof's profile printing r=michalt a=michalt

This changes the way we print things to first construct a mapping from
events to the children and uses that mapping to actually print things.
It should not change the actual output that we produce.

The new approach two benefits:

 * It avoids a potential quadratic behavior of the previous approach.
   For instance, for a vector of N elements:
   ```
   [Message{level: (N - 1)}, ..., Message{level: 1}, Message{level: 0}]
   ```
   we would first do a linear scan to find entry with level 0, then
   another scan to find one with level 1, etc.

 * It makes it much easier to improve the output in the future, because
   we now pre-compute the children for each entry and can easily take
   that into account when printing.

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
Co-authored-by: Michal Terepeta <michal.terepeta@gmail.com>
4 years agoA couple of small improvements to ra_prof printing
Michal Terepeta [Wed, 29 Jan 2020 19:55:35 +0000 (20:55 +0100)]
A couple of small improvements to ra_prof printing

Based on suggestions from @matklad.

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
4 years agoupdating nvim_lsp usage for rust_analyzer
Jan [Wed, 29 Jan 2020 19:11:32 +0000 (20:11 +0100)]
updating nvim_lsp usage for rust_analyzer

4 years agoMerge #2943
bors[bot] [Wed, 29 Jan 2020 15:11:38 +0000 (15:11 +0000)]
Merge #2943

2943: Re-sync queries for memory usage measurnment r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRe-sync queries for memory usage measurnment
Aleksey Kladov [Wed, 29 Jan 2020 15:10:46 +0000 (16:10 +0100)]
Re-sync queries for memory usage measurnment

4 years agoMerge #2942
bors[bot] [Wed, 29 Jan 2020 14:35:28 +0000 (14:35 +0000)]
Merge #2942

2942: Properly select a target for auto importing r=matklad a=SomeoneToIgnore

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/2932

The corresponding test has the caret placed in the beggining of the document despite the import inserted, but I don't thing I should fix it here:
* in real life, there's some text written before the import and for those cases the caret behaves normally
* it's a separate functionality that needs to be refactored anyway later (the `auto_import_text_edit`)

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoProperly select a target for auto importing
Kirill Bulatov [Wed, 29 Jan 2020 12:57:44 +0000 (14:57 +0200)]
Properly select a target for auto importing

4 years agoMerge #2941
bors[bot] [Wed, 29 Jan 2020 14:09:04 +0000 (14:09 +0000)]
Merge #2941

2941: Freshen Architecture.md document r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFreshen Architecture.md document
Aleksey Kladov [Wed, 29 Jan 2020 14:08:31 +0000 (15:08 +0100)]
Freshen Architecture.md document

4 years agoMerge #2940
bors[bot] [Wed, 29 Jan 2020 13:46:00 +0000 (13:46 +0000)]
Merge #2940

2940: Freshen dev docs a tiny bits r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFreshen dev docs a tiny bits
Aleksey Kladov [Wed, 29 Jan 2020 13:45:32 +0000 (14:45 +0100)]
Freshen dev docs a tiny bits

4 years agoMerge #2939
bors[bot] [Wed, 29 Jan 2020 13:13:30 +0000 (13:13 +0000)]
Merge #2939

2939: Simplify fixture parsing r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoSimplify fixture parsing
Aleksey Kladov [Wed, 29 Jan 2020 13:06:23 +0000 (14:06 +0100)]
Simplify fixture parsing

4 years agoMerge #2938
bors[bot] [Wed, 29 Jan 2020 13:04:46 +0000 (13:04 +0000)]
Merge #2938

2938: Fix long loop timeout r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFix long loop timeout
Aleksey Kladov [Wed, 29 Jan 2020 13:04:10 +0000 (14:04 +0100)]
Fix long loop timeout

4 years agoMerge #2937
bors[bot] [Wed, 29 Jan 2020 12:51:52 +0000 (12:51 +0000)]
Merge #2937

2937: Parse cargo output a line at a time. r=kiljacken a=kiljacken

We previously used serde's stream deserializer to read json blobs from
the cargo output. It has an issue though: If the deserializer encounters
invalid input, it gets stuck reporting the same error again and again
because it is unable to foward over the input until it reaches a new
valid object.

Reading a line at a time and manually deserializing fixes this issue,
because cargo makes sure to only outpu one json blob per line, so should
we encounter invalid input, we can just skip a line and continue.

The main reason this would happen is stray printf-debugging in
procedural macros, so we still report that an error occured, but we
handle it gracefully now.

Fixes #2935

Co-authored-by: Emil Lauridsen <mine809@gmail.com>
4 years agoChange error output to make a bit more sense
Emil Lauridsen [Wed, 29 Jan 2020 12:51:20 +0000 (13:51 +0100)]
Change error output to make a bit more sense

4 years agoParse cargo output a line at a time.
Emil Lauridsen [Wed, 29 Jan 2020 12:40:27 +0000 (13:40 +0100)]
Parse cargo output a line at a time.

We previously used serde's stream deserializer to read json blobs from
the cargo output. It has an issue though: If the deserializer encounters
invalid input, it gets stuck reporting the same error again and again
because it is unable to foward over the input until it reaches a new
valid object.

Reading a line at a time and manually deserializing fixes this issue,
because cargo makes sure to only outpu one json blob per line, so should
we encounter invalid input, we can just skip a line and continue.

The main reason this would happen is stray printf-debugging in
procedural macros, so we still report that an error occured, but we
handle it gracefully now.

Fixes #2935

4 years agoTweak readme
Aleksey Kladov [Wed, 29 Jan 2020 12:25:32 +0000 (13:25 +0100)]
Tweak readme

4 years agoMerge pull request #2936 from matklad/better-release
Aleksey Kladov [Wed, 29 Jan 2020 12:24:09 +0000 (12:24 +0000)]
Merge pull request #2936 from matklad/better-release

Make sure release uses the release branch, and not master

4 years agoMake sure release uses the release branch, and not master
Aleksey Kladov [Wed, 29 Jan 2020 12:19:51 +0000 (13:19 +0100)]
Make sure release uses the release branch, and not master

4 years agoMerge #2931
bors[bot] [Wed, 29 Jan 2020 11:06:18 +0000 (11:06 +0000)]
Merge #2931

2931: Added documentation to test_utils r=matklad a=Veetaha

Added some doc comments to test_utils functions while studying this crate. They should be all stable enough to document them.
Also some minor code relocation in `parse_fixture()` closer to its usage according to the advice of @matklad.

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agoMerge #2934
bors[bot] [Wed, 29 Jan 2020 10:24:08 +0000 (10:24 +0000)]
Merge #2934

2934: Complain loudly if the main loop is blocked r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoComplain loudly if the main loop is blocked
Aleksey Kladov [Wed, 29 Jan 2020 10:21:49 +0000 (11:21 +0100)]
Complain loudly if the main loop is blocked

4 years agoMore uniform naming
Aleksey Kladov [Wed, 29 Jan 2020 10:15:08 +0000 (11:15 +0100)]
More uniform naming

4 years agoMerge #2933
bors[bot] [Wed, 29 Jan 2020 10:14:12 +0000 (10:14 +0000)]
Merge #2933

2933: Don't compute diagnostics on the main thread r=matklad a=matklad

closes #2909

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoDon't compute diagnostics on the main thread
Aleksey Kladov [Wed, 29 Jan 2020 09:46:56 +0000 (10:46 +0100)]
Don't compute diagnostics on the main thread

closes #2909

4 years agotest_utils: move flush!() to its usage as per conversation with @matklad
Veetaha [Wed, 29 Jan 2020 01:53:15 +0000 (03:53 +0200)]
test_utils: move flush!() to its usage as per conversation with @matklad

4 years agotest_utils: updated documentation and some typos
Veetaha [Wed, 29 Jan 2020 01:52:13 +0000 (03:52 +0200)]
test_utils: updated documentation and some typos

4 years agoMerge #2917
bors[bot] [Tue, 28 Jan 2020 16:22:18 +0000 (16:22 +0000)]
Merge #2917

2917: Prefer imports starting with std r=matklad a=SomeoneToIgnore

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

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoAdd the tests
Kirill Bulatov [Tue, 28 Jan 2020 16:03:24 +0000 (18:03 +0200)]
Add the tests

4 years agoMerge #2928
bors[bot] [Tue, 28 Jan 2020 16:00:34 +0000 (16:00 +0000)]
Merge #2928

2928: Provide better diagnostics if the server is not in path r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoProvide better diagnostics if the server is not in path
Aleksey Kladov [Tue, 28 Jan 2020 16:00:00 +0000 (17:00 +0100)]
Provide better diagnostics if the server is not in path

4 years agoMerge #2927
bors[bot] [Tue, 28 Jan 2020 15:30:19 +0000 (15:30 +0000)]
Merge #2927

2927: Publicize debug printing of CrateDefMap r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoPublicize debug printing of CrateDefMap
Aleksey Kladov [Tue, 28 Jan 2020 15:29:31 +0000 (16:29 +0100)]
Publicize debug printing of CrateDefMap

4 years agoRevert accidental package-lock.json change
Kirill Bulatov [Tue, 28 Jan 2020 15:21:40 +0000 (17:21 +0200)]
Revert accidental package-lock.json change

4 years agoApply the proposed refactoring
Kirill Bulatov [Tue, 28 Jan 2020 15:19:41 +0000 (17:19 +0200)]
Apply the proposed refactoring

4 years agoMerge #2926
bors[bot] [Tue, 28 Jan 2020 14:33:11 +0000 (14:33 +0000)]
Merge #2926

2926: Standard formatting for array types r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoStandard formatting for array types
Aleksey Kladov [Tue, 28 Jan 2020 14:31:43 +0000 (15:31 +0100)]
Standard formatting for array types

4 years agoMerge #2925
bors[bot] [Tue, 28 Jan 2020 14:12:15 +0000 (14:12 +0000)]
Merge #2925

2925: :arrow_up: node r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years ago:arrow_up: node
Aleksey Kladov [Tue, 28 Jan 2020 14:11:44 +0000 (15:11 +0100)]
:arrow_up: node

4 years agoMerge #2924
bors[bot] [Tue, 28 Jan 2020 13:54:29 +0000 (13:54 +0000)]
Merge #2924

2924: Modify ordering of drops in check watcher to only ever have one cargo r=matklad a=kiljacken

Due to the way drops are ordered when assigning to a mutable variable we
were launching a new cargo sub-process before letting the old one quite.

By explicitly replacing the original watcher with a dummy first, we
ensure it is dropped and the process is completed, before we start the
new process.

Co-authored-by: Emil Lauridsen <mine809@gmail.com>
4 years agoModify ordering of drops in check watcher to only ever have one cargo
Emil Lauridsen [Tue, 28 Jan 2020 13:48:50 +0000 (14:48 +0100)]
Modify ordering of drops in check watcher to only ever have one cargo

Due to the way drops are ordered when assigning to a mutable variable we
were launching a new cargo sub-process before letting the old one quite.

By explicitly replacing the original watcher with a dummy first, we
ensure it is dropped and the process is completed, before we start the
new process.

4 years agoMerge #2923
bors[bot] [Tue, 28 Jan 2020 13:40:14 +0000 (13:40 +0000)]
Merge #2923

2923: Don't do check progress update for fresh crates r=matklad a=kiljacken

Skip sending progress updates for crates that aren't getting checked.

Co-authored-by: Emil Lauridsen <mine809@gmail.com>
4 years agoDon't do check progress update for fresh crates
Emil Lauridsen [Tue, 28 Jan 2020 13:33:52 +0000 (14:33 +0100)]
Don't do check progress update for fresh crates

4 years agoIgnore illform node id from metadata
Edwin Cheng [Tue, 28 Jan 2020 09:08:17 +0000 (17:08 +0800)]
Ignore illform node id from metadata

4 years agoMerge #2916
bors[bot] [Mon, 27 Jan 2020 23:33:06 +0000 (23:33 +0000)]
Merge #2916

2916: Buffer reads from cargo check's stdout r=matklad a=lnicola

`Stdio::piped()` is unbuffered, which caused RA to read the output of `cargo check` one byte at a time (out of 114KB in my test).

This isn't obviously faster on my system, but making fewer syscalls sounds like a good idea.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoBuffer reads from cargo check's stdout
Laurențiu Nicola [Mon, 27 Jan 2020 23:27:43 +0000 (01:27 +0200)]
Buffer reads from cargo check's stdout

4 years agoPrefer imports starting with std
Kirill Bulatov [Mon, 27 Jan 2020 22:09:56 +0000 (00:09 +0200)]
Prefer imports starting with std

4 years agoMerge #2810
bors[bot] [Mon, 27 Jan 2020 21:58:35 +0000 (21:58 +0000)]
Merge #2810

2810: Improves reference search by StructLiteral r=mikhail-m1 a=mikhail-m1

Hey, I've made some changes to improve search for struct literals, now it works for `struct Foo<|> {`, `struct Foo <|>{`, `struct Foo<|>(`. Unfortunately tuple creation is represented as a call expression, so for tuples it works only is search is started in a tuple declaration.  It leads to incorrect classification of function calls during search phase, but from user perspective it's not visible and works as expected. May be it worth to add a comment or rename it to remove this misleading classification. Issue #2549.

Co-authored-by: Mikhail Modin <mikhailm1@gmail.com>
4 years agoImproves reference search by StructLiteral
Mikhail Modin [Sat, 18 Jan 2020 12:17:34 +0000 (12:17 +0000)]
Improves reference search by StructLiteral

4 years agoMerge #2872
bors[bot] [Mon, 27 Jan 2020 21:24:24 +0000 (21:24 +0000)]
Merge #2872

2872: Upgrade Chalk r=matklad a=flodiebold

This is just keeping track of the changes required to upgrade Chalk; currently we can't really merge it since it breaks opaque types.

Now also makes use of the newly introduced `solve_limited` to implement fuel.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
4 years agoTweak Chalk settings
Florian Diebold [Mon, 27 Jan 2020 20:38:20 +0000 (21:38 +0100)]
Tweak Chalk settings

4 years agoIgnore failing impl Trait tests
Florian Diebold [Mon, 27 Jan 2020 20:38:10 +0000 (21:38 +0100)]
Ignore failing impl Trait tests

4 years agoUpgrade Chalk
Florian Diebold [Fri, 17 Jan 2020 21:12:15 +0000 (22:12 +0100)]
Upgrade Chalk

4 years agoMerge #2914
bors[bot] [Mon, 27 Jan 2020 16:24:36 +0000 (16:24 +0000)]
Merge #2914

2914: vscode-languageclient 6.1.0 r=matklad a=kjeremy

Adds client side support for proposed semantic highlighting extension

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agovscode-languageclient 6.1.0
kjeremy [Mon, 27 Jan 2020 15:25:22 +0000 (10:25 -0500)]
vscode-languageclient 6.1.0

Adds support for proposed semantic highlighting extension

4 years agoMerge #2913
bors[bot] [Mon, 27 Jan 2020 14:55:09 +0000 (14:55 +0000)]
Merge #2913

2913: Update insta r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoUpdate insta
kjeremy [Mon, 27 Jan 2020 14:52:34 +0000 (09:52 -0500)]
Update insta

4 years agoMerge #2910
bors[bot] [Mon, 27 Jan 2020 13:50:04 +0000 (13:50 +0000)]
Merge #2910

2910: Use package script r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoUpdate docs/user/README.md
Jeremy Kolb [Mon, 27 Jan 2020 13:49:34 +0000 (08:49 -0500)]
Update docs/user/README.md

Co-Authored-By: Veetaha <veetaha2@gmail.com>
4 years agoMerge #2883
bors[bot] [Mon, 27 Jan 2020 13:36:26 +0000 (13:36 +0000)]
Merge #2883

2883: Implement Syntax Highlight inside macro call r=matklad a=edwin0cheng

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
4 years agoMerge #2887
bors[bot] [Mon, 27 Jan 2020 13:04:53 +0000 (13:04 +0000)]
Merge #2887

2887: Initial auto import action implementation r=matklad a=SomeoneToIgnore

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

Adds an auto import action implementation.

This implementation is not ideal and has a few limitations:

* The import search functionality should be moved into a separate crate accessible from ra_assists.
This requires a lot of changes and a preliminary design.
Currently the functionality is provided as a trait impl, more on that here: https://github.com/rust-analyzer/rust-analyzer/issues/2180#issuecomment-575690942

* Due to the design desicion from the previous item, no doctests are run for the new aciton (look for a new FIXME in the PR)

* For the same reason, I have to create the mock trait implementaion to test the assist

* Ideally, I think we should have this feature as a diagnostics (that detects an absense of an import) that has a corresponding quickfix action that gets evaluated on demand.
Curretly we perform the import search every time we resolve the import which looks suboptimal.
This requires `classify_name_ref` to be moved from ra_ide, so not done currently.

A few improvements to the imports mechanism to be considered later:

* Constants like `ra_syntax::SyntaxKind::NAME` are not imported, because they are not present in the database

* Method usages are not imported, they are found in the database, but `find_use_path` does not return any import paths for them

* Some import paths returned by the `find_use_path` method end up in `core::` or `alloc::` instead of `std:`, for example: `core::fmt::Debug` instead of `std::fmt::Debug`.
This is not an error techically, but still looks weird.

* No detection of cases where a trait should be imported in order to be able to call a method

* Improve `auto_import_text_edit` functionality: refactor it and move away from the place it is now, add better logic for merging the new import with already existing imports

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoCode review fixes
Kirill Bulatov [Mon, 27 Jan 2020 12:42:45 +0000 (14:42 +0200)]
Code review fixes

4 years agoMerge #2908
bors[bot] [Mon, 27 Jan 2020 11:21:54 +0000 (11:21 +0000)]
Merge #2908

2908: Update crates r=matklad a=kjeremy

Updates insta to 0.13 and bumps everything else.

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoEnforce alphabetical import sorting
Kirill Bulatov [Sun, 26 Jan 2020 23:53:59 +0000 (01:53 +0200)]
Enforce alphabetical import sorting

4 years agoAdjust the tests
Kirill Bulatov [Sun, 26 Jan 2020 22:16:18 +0000 (00:16 +0200)]
Adjust the tests

4 years agoHave a better trait interface
Kirill Bulatov [Fri, 24 Jan 2020 07:33:18 +0000 (09:33 +0200)]
Have a better trait interface

4 years agoRaise the import search query cap
Kirill Bulatov [Thu, 23 Jan 2020 19:30:59 +0000 (21:30 +0200)]
Raise the import search query cap

4 years agoRemove unnecessary lifetime parameter
Kirill Bulatov [Thu, 23 Jan 2020 19:15:16 +0000 (21:15 +0200)]
Remove unnecessary lifetime parameter

4 years agoInitial auto import action implementation
Kirill Bulatov [Tue, 24 Dec 2019 00:19:09 +0000 (02:19 +0200)]
Initial auto import action implementation

4 years agoMove snaps to new naming scheme
Jeremy Kolb [Sun, 26 Jan 2020 18:29:01 +0000 (13:29 -0500)]
Move snaps to new naming scheme

4 years agoUse package script
Jeremy Kolb [Sun, 26 Jan 2020 17:57:54 +0000 (12:57 -0500)]
Use package script

4 years agoUpdate crates
Jeremy Kolb [Sun, 26 Jan 2020 15:46:45 +0000 (10:46 -0500)]
Update crates

4 years agoMerge #2906
bors[bot] [Sun, 26 Jan 2020 13:17:19 +0000 (13:17 +0000)]
Merge #2906

2906: Fix thread priority problems on windows r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoGate CI on windows build
Aleksey Kladov [Sun, 26 Jan 2020 11:03:19 +0000 (12:03 +0100)]
Gate CI on windows build

4 years agoBump main thread priority on windows
Aleksey Kladov [Sun, 26 Jan 2020 11:02:56 +0000 (12:02 +0100)]
Bump main thread priority on windows

4 years agoMerge #2907
bors[bot] [Sun, 26 Jan 2020 11:23:22 +0000 (11:23 +0000)]
Merge #2907

2907: fixed inline_local_variable bug #2900 r=matklad a=TomasKralCZ

This also affects issues like #2666.

Co-authored-by: Tomáš <tomas@kral.hk>
4 years agofixed inline_local_variable bug
Tomáš [Sat, 25 Jan 2020 20:07:21 +0000 (21:07 +0100)]
fixed inline_local_variable bug

4 years agoUse default threadpool size
Aleksey Kladov [Sat, 25 Jan 2020 12:27:36 +0000 (13:27 +0100)]
Use default threadpool size

4 years agoMerge #2899
bors[bot] [Sat, 25 Jan 2020 11:10:28 +0000 (11:10 +0000)]
Merge #2899

2899: Provide more runners for potential tests r=matklad a=SomeoneToIgnore

Based on the https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Runners.20for.20custom.20test.20annotations discussion.

Adds a test runner for every method that has an annotation that contains `test` word in it, allowing to run tests annotated with custom testing annotations such as `#[tokio::test]`, `#[test_case(...)]` and others at costs of potentially emitting some false-positives.

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoMerge #2903
bors[bot] [Sat, 25 Jan 2020 10:59:46 +0000 (10:59 +0000)]
Merge #2903

2903: Add print_time helper r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAdd print_time helper
Aleksey Kladov [Sat, 25 Jan 2020 10:59:11 +0000 (11:59 +0100)]
Add print_time helper

4 years agoDisable env_logger humantime feature
Aleksey Kladov [Sat, 25 Jan 2020 10:53:40 +0000 (11:53 +0100)]
Disable env_logger humantime feature

We rarely care about timings of events, and, when we care, we need
millisecond precision

4 years agoMerge #2901
bors[bot] [Fri, 24 Jan 2020 15:37:11 +0000 (15:37 +0000)]
Merge #2901

2901: Cancel requests during shutdown r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoCancel requests during shutdown
Aleksey Kladov [Fri, 24 Jan 2020 15:35:37 +0000 (16:35 +0100)]
Cancel requests during shutdown