]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoReplace logo in readme with SVG version
Aramis Razzaghipour [Fri, 28 Aug 2020 11:42:12 +0000 (21:42 +1000)]
Replace logo in readme with SVG version

3 years agoAdd SVG logos to assets directory
Aramis Razzaghipour [Fri, 28 Aug 2020 11:41:45 +0000 (21:41 +1000)]
Add SVG logos to assets directory

3 years agoMerge #5900
bors[bot] [Thu, 27 Aug 2020 17:06:33 +0000 (17:06 +0000)]
Merge #5900

5900: :arrow_up: crates
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years ago:arrow_up: crates
Aleksey Kladov [Thu, 27 Aug 2020 16:55:42 +0000 (18:55 +0200)]
:arrow_up: crates

3 years agoMerge #5899
bors[bot] [Thu, 27 Aug 2020 16:42:37 +0000 (16:42 +0000)]
Merge #5899

5899: Add track_env_var to the proc macro server
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoCONST LOOPS ARE HERE
Aleksey Kladov [Thu, 27 Aug 2020 16:11:33 +0000 (18:11 +0200)]
CONST LOOPS ARE HERE

3 years agoMerge #5898
bors[bot] [Thu, 27 Aug 2020 13:04:29 +0000 (13:04 +0000)]
Merge #5898

5898: Minor
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMinor
Aleksey Kladov [Thu, 27 Aug 2020 13:02:56 +0000 (15:02 +0200)]
Minor

3 years agoMerge #5895
bors[bot] [Wed, 26 Aug 2020 18:26:07 +0000 (18:26 +0000)]
Merge #5895

5895: Tease apart orthogonal concerns in markdown link rewriting
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoTease apart orthogonal concerns in markdown link rewriting
Aleksey Kladov [Wed, 26 Aug 2020 16:56:41 +0000 (18:56 +0200)]
Tease apart orthogonal concerns in markdown link rewriting

`hir` should know nothing about URLs, markdown and html. It should
only be able to:

* resolve stringy path from documentation
* generate canonical stringy path for a def

In contrast, link rewriting should not care about semantics of paths
and names resolution, and should be concern only with text mangling
bits.

3 years agoMerge #5893
bors[bot] [Wed, 26 Aug 2020 17:41:45 +0000 (17:41 +0000)]
Merge #5893

5893: Allow running a test as a binary r=matklad a=jonas-schievink

If a test uses `harness = false`, it just contains an `fn main` that is executed via `cargo test`. This adds support for that.

Note though that Cargo doesn't actually tell us whether `harness = false`, so this hint will always show up when you put an `fn main` into an integration test. Normally people shouldn't be doing that if they do use the harness though.

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
3 years agoMerge #5894
bors[bot] [Wed, 26 Aug 2020 16:36:44 +0000 (16:36 +0000)]
Merge #5894

5894: Cleanup hover links tests
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoCleanup hover links tests
Aleksey Kladov [Wed, 26 Aug 2020 16:36:16 +0000 (18:36 +0200)]
Cleanup hover links tests

3 years agoAllow running a test as a binary
Jonas Schievink [Wed, 26 Aug 2020 15:33:03 +0000 (17:33 +0200)]
Allow running a test as a binary

3 years agoMerge #5887
bors[bot] [Wed, 26 Aug 2020 14:03:47 +0000 (14:03 +0000)]
Merge #5887

5887: Improve fenced code block support for doctests r=fmease a=fmease

Fixes  #5783

Co-authored-by: León Orell Valerian Liehr <liehr.exchange@gmx.net>
3 years agoImprove support for code block attributes
León Orell Valerian Liehr [Wed, 26 Aug 2020 01:02:55 +0000 (03:02 +0200)]
Improve support for code block attributes

3 years agoMerge #5879
bors[bot] [Wed, 26 Aug 2020 13:38:31 +0000 (13:38 +0000)]
Merge #5879

5879: Update mentions of 'ra_vfs' in architecture doc r=matklad a=rherrmann

Adjust the paragraph about `ra_vfs` to point to the `vfs` crate that is used now.

Co-authored-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de>
3 years agoMerge #5885
bors[bot] [Wed, 26 Aug 2020 13:07:06 +0000 (13:07 +0000)]
Merge #5885

5885: Make inlay hints colors more configurable r=matklad a=Veetaha

**[BREAKING CHANGE]**

Tackles https://github.com/rust-analyzer/rust-analyzer/issues/5337#issuecomment-680018601 and generally related to #5337.

Added `foreground/background` color configurations with optional more specific overrides `foreground.(type|parameter|chaining)Hints`.

One problem I see is that the config keys are long and don't fit into the on-hover hints in the `settings.json` file entirely...

<details>
<summary>Demo</summary>

![demo](https://user-images.githubusercontent.com/36276403/91238334-77fc3b00-e745-11ea-836b-2822015ece98.gif)

</details>

Co-authored-by: Veetaha <veetaha2@gmail.com>
3 years agoMerge #5890
bors[bot] [Wed, 26 Aug 2020 11:41:20 +0000 (11:41 +0000)]
Merge #5890

5890: Simplify
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoSimplify
Aleksey Kladov [Wed, 26 Aug 2020 11:40:45 +0000 (13:40 +0200)]
Simplify

3 years agoMerge #5889
bors[bot] [Wed, 26 Aug 2020 11:21:17 +0000 (11:21 +0000)]
Merge #5889

5889: Allow logging to file r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoSimplify
Aleksey Kladov [Wed, 26 Aug 2020 11:06:43 +0000 (13:06 +0200)]
Simplify

3 years agoSimplify help
Aleksey Kladov [Wed, 26 Aug 2020 10:52:42 +0000 (12:52 +0200)]
Simplify help

3 years agoAllow redirecting logs to a specific file
Aleksey Kladov [Wed, 26 Aug 2020 10:21:12 +0000 (12:21 +0200)]
Allow redirecting logs to a specific file

There's a surprising lack of crates which are like env_logger, but
also allow writing to a file. Let's write our own then!

3 years agoMerge #5888
bors[bot] [Wed, 26 Aug 2020 11:04:00 +0000 (11:04 +0000)]
Merge #5888

5888: **Inline Variable** works with field shorthand
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years ago**Inline Variable** works with field shorthand
Aleksey Kladov [Wed, 26 Aug 2020 11:03:14 +0000 (13:03 +0200)]
**Inline Variable** works with field shorthand

3 years agoMake inlay hints colors more configurable
Veetaha [Tue, 25 Aug 2020 23:37:58 +0000 (02:37 +0300)]
Make inlay hints colors more configurable

3 years agoMerge #5884
bors[bot] [Tue, 25 Aug 2020 17:42:27 +0000 (17:42 +0000)]
Merge #5884

5884: Add sysroot shortcut to rust-project.json
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoAdd sysroot shortcut to rust-project.json
Aleksey Kladov [Tue, 25 Aug 2020 16:34:00 +0000 (18:34 +0200)]
Add sysroot shortcut to rust-project.json

3 years agoMerge #5883
bors[bot] [Tue, 25 Aug 2020 17:29:50 +0000 (17:29 +0000)]
Merge #5883

5883: Cleanup heavy tests
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoCleanup heavy tests
Aleksey Kladov [Tue, 25 Aug 2020 17:02:28 +0000 (19:02 +0200)]
Cleanup heavy tests

3 years agoMerge #5882
bors[bot] [Tue, 25 Aug 2020 16:41:10 +0000 (16:41 +0000)]
Merge #5882

5882: Don't expose indexing details
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoDon't expose indexing details
Aleksey Kladov [Tue, 25 Aug 2020 16:39:18 +0000 (18:39 +0200)]
Don't expose indexing details

3 years agoMerge #5881
bors[bot] [Tue, 25 Aug 2020 16:08:56 +0000 (16:08 +0000)]
Merge #5881

5881: Minor
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMinor
Aleksey Kladov [Tue, 25 Aug 2020 16:07:25 +0000 (18:07 +0200)]
Minor

3 years agoMerge #5880
bors[bot] [Tue, 25 Aug 2020 16:01:47 +0000 (16:01 +0000)]
Merge #5880

5880: Opportunistically check indel overlap r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoProvide better stack trace for overlapping edits
Aleksey Kladov [Tue, 25 Aug 2020 15:59:37 +0000 (17:59 +0200)]
Provide better stack trace for overlapping edits

Overlapping indels are a bug. Checking this *always* is tricky (needs
a sorted data structure to not suffer O(N^2) perf). But
opportunistically checking small indels should give provide 80% of the
benefits.

3 years agoUpdate mentions of 'ra_vfs' in architecture doc
Rüdiger Herrmann [Tue, 25 Aug 2020 15:57:29 +0000 (17:57 +0200)]
Update mentions of 'ra_vfs' in architecture doc

Adjust the paragraph about `ra_vfs` to point to the `vfs` crate that is used now.

3 years agoMerge #5878
bors[bot] [Tue, 25 Aug 2020 15:54:05 +0000 (15:54 +0000)]
Merge #5878

5878: Prepare to share sysroot lowering code between Cargo & ProjectJSON
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoPrepare to share sysroot lowering code between Cargo & ProjectJSON
Aleksey Kladov [Tue, 25 Aug 2020 15:53:24 +0000 (17:53 +0200)]
Prepare to share sysroot lowering code between Cargo & ProjectJSON

3 years agoMerge #5877
bors[bot] [Tue, 25 Aug 2020 15:23:16 +0000 (15:23 +0000)]
Merge #5877

5877: Complete `pub` in fields
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoComplete `pub` in fields
Aleksey Kladov [Tue, 25 Aug 2020 15:20:29 +0000 (17:20 +0200)]
Complete `pub` in fields

3 years agoMerge #5876
bors[bot] [Tue, 25 Aug 2020 15:04:47 +0000 (15:04 +0000)]
Merge #5876

5876: Prep work for overriding sysroot
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoPrep work for overriding sysroot
Aleksey Kladov [Tue, 25 Aug 2020 15:00:08 +0000 (17:00 +0200)]
Prep work for overriding sysroot

The idea here is to make auto-discovery optional, and to allow to set
the path to sysroot directly. This is handy for JSON projects.

3 years agoMerge #5875
bors[bot] [Tue, 25 Aug 2020 12:59:22 +0000 (12:59 +0000)]
Merge #5875

5875: Remove monomorphisation from doclinks resolving code
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRemove monomorphisation from doclinks resolving code
Aleksey Kladov [Tue, 25 Aug 2020 12:57:26 +0000 (14:57 +0200)]
Remove monomorphisation from doclinks resolving code

3 years agoMerge #5873
bors[bot] [Tue, 25 Aug 2020 12:51:28 +0000 (12:51 +0000)]
Merge #5873

5873: Correct sed replacement when called in a bash file r=matklad a=pksunkara

There's so much trial and error regarding shells and stuff I needed to do to get this correctly working on github runner.

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
3 years agoMerge #5874
bors[bot] [Tue, 25 Aug 2020 12:45:02 +0000 (12:45 +0000)]
Merge #5874

5874: Remove AttrDef
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRemove AttrDef
Aleksey Kladov [Tue, 25 Aug 2020 12:44:15 +0000 (14:44 +0200)]
Remove AttrDef

3 years agoCorrect sed replacement when called in a bash file
Pavan Kumar Sunkara [Tue, 25 Aug 2020 10:45:06 +0000 (12:45 +0200)]
Correct sed replacement when called in a bash file

3 years agoMerge #5870
bors[bot] [Tue, 25 Aug 2020 10:58:27 +0000 (10:58 +0000)]
Merge #5870

5870: Move code_model attrs to a new module r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoSimplify
Aleksey Kladov [Tue, 25 Aug 2020 10:57:15 +0000 (12:57 +0200)]
Simplify

3 years agoMove attrs from code_module to a separate module
Aleksey Kladov [Tue, 25 Aug 2020 10:56:01 +0000 (12:56 +0200)]
Move attrs from code_module to a separate module

3 years agoMerge #5869
bors[bot] [Tue, 25 Aug 2020 10:48:51 +0000 (10:48 +0000)]
Merge #5869

5869: Minor
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMinor
Aleksey Kladov [Tue, 25 Aug 2020 10:47:36 +0000 (12:47 +0200)]
Minor

3 years agoMerge #5867
bors[bot] [Tue, 25 Aug 2020 10:14:45 +0000 (10:14 +0000)]
Merge #5867

5867: Use the same abstraction for attrs and docs
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoUse the same abstraction for attrs and docs
Aleksey Kladov [Tue, 25 Aug 2020 10:13:31 +0000 (12:13 +0200)]
Use the same abstraction for attrs and docs

Doc comments *are* attributes, so there's no reason to have two crates
here.

3 years agoMerge #5866
bors[bot] [Tue, 25 Aug 2020 09:46:21 +0000 (09:46 +0000)]
Merge #5866

5866: Improve logging
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoImprove logging
Aleksey Kladov [Tue, 25 Aug 2020 09:27:22 +0000 (11:27 +0200)]
Improve logging

3 years agoMerge #5865
bors[bot] [Tue, 25 Aug 2020 09:40:36 +0000 (09:40 +0000)]
Merge #5865

5865: Rename rust_analyzer lib in the binaries before publishing r=matklad a=pksunkara

@matklad Tested and working with publish dry run. Please run the action manually once merged.

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
3 years agoRename rust_analyzer lib in the binaries before publishing
Pavan Kumar Sunkara [Tue, 25 Aug 2020 09:32:22 +0000 (11:32 +0200)]
Rename rust_analyzer lib in the binaries before publishing

3 years agoMerge #4873
bors[bot] [Tue, 25 Aug 2020 09:11:26 +0000 (09:11 +0000)]
Merge #4873

4873: Resolve links in hover documentation r=matklad a=zacps

This PR resolves links in hover documentation. Both the upcoming intra-doc-links style and the old "path-based" style.

## Todo

* [x] More tests
* [ ] Benchmark (Is there an easy way to benchmark this?)
* [x] ~~Resolve issues with the markdown parser/get rid of it~~ Migrate to `pulldown_cmark_to_cmark`
* [x] Reorganise code (Tips appreciated)

---

Fixes #503

Co-authored-by: Zac Pullar-Strecker <zacmps@gmail.com>
3 years agoMerge #5863
bors[bot] [Tue, 25 Aug 2020 09:01:12 +0000 (09:01 +0000)]
Merge #5863

5863: Cleanup invert-if
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoCleanup invert-if
Aleksey Kladov [Tue, 25 Aug 2020 08:57:51 +0000 (10:57 +0200)]
Cleanup invert-if

* stick to trivial factory functions in make
* compress the logic for inverting Option/Result

3 years agoMerge remote-tracking branch 'upstream/master' into 503-hover-doc-links
Zac Pullar-Strecker [Tue, 25 Aug 2020 04:44:36 +0000 (16:44 +1200)]
Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links

3 years agoChanges from review
Zac Pullar-Strecker [Tue, 25 Aug 2020 04:40:43 +0000 (16:40 +1200)]
Changes from review

3 years agoMerge #5861
bors[bot] [Mon, 24 Aug 2020 20:10:16 +0000 (20:10 +0000)]
Merge #5861

5861: Support extern types r=matklad a=jonas-schievink

This is a currently unstable feature tracked at https://github.com/rust-lang/rust/issues/43467

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoSupport extern types
Jonas Schievink [Mon, 24 Aug 2020 20:02:55 +0000 (22:02 +0200)]
Support extern types

3 years agoMerge #5859
bors[bot] [Mon, 24 Aug 2020 15:31:25 +0000 (15:31 +0000)]
Merge #5859

5859: Allow rust-analyzer auto publishing r=matklad a=pksunkara

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
3 years agoAllow rust-analyzer auto publishing
Pavan Kumar Sunkara [Mon, 24 Aug 2020 15:27:13 +0000 (17:27 +0200)]
Allow rust-analyzer auto publishing

3 years agoMerge #5841
bors[bot] [Mon, 24 Aug 2020 14:33:35 +0000 (14:33 +0000)]
Merge #5841

5841: Gate stream.pipeline workaround on fixed versions of node r=matklad a=Veetaha

Fixes the symptom of https://github.com/cdr/code-server/issues/1810
Original report here: https://github.com/rust-analyzer/rust-analyzer/issues/3167#issuecomment-678390564
Thanks to @hjfreyer for precise investigation :D

Co-authored-by: Veetaha <veetaha2@gmail.com>
3 years agoMerge #5733
bors[bot] [Mon, 24 Aug 2020 14:26:33 +0000 (14:26 +0000)]
Merge #5733

5733: Fix expand glob import bugs r=matklad a=unexge

fixes https://github.com/rust-analyzer/rust-analyzer/issues/5709

TODOs:
- [x] Incorrect node replacing
<details>
    <summary>Details</summary>

```rust
use crate::{
    body::scope::{ExprScopes, ScopeId},
    body::Body,
    builtin_type::BuiltinType,
    db::DefDatabase,
    expr::{ExprId, PatId},
    generics::GenericParams,
    item_scope::{BuiltinShadowMode, BUILTIN_SCOPE},
    nameres::CrateDefMap,
    path::*<|>,
    per_ns::PerNs,
    visibility::{RawVisibility, Visibility},
    AdtId, AssocContainerId, ConstId, ContainerId, DefWithBodyId, EnumId, EnumVariantId,
    FunctionId, GenericDefId, HasModule, ImplId, LocalModuleId, Lookup, ModuleDefId, ModuleId,
    StaticId, StructId, TraitId, TypeAliasId, TypeParamId, VariantId,
};
```
becames
```rust
use crate::{PathKind, name, name, ModPath};
```
</details>

- [x] Ignoring visibility
<details>
    <summary>Details</summary>

```rust
mod foo {
    mod bar {
        pub struct Bar;
    }
}

use foo::bar::*;

fn baz(bar: Bar) {}
```
becames
```rust
mod foo {
    mod bar {
        pub struct Bar;
    }
}

use foo::bar::Bar;

fn baz(bar: Bar) {}
```
although mod `bar` is private
</details>

- [x] Eating attributes

Co-authored-by: unexge <unexge@gmail.com>
3 years agoMerge #5855
bors[bot] [Mon, 24 Aug 2020 11:39:56 +0000 (11:39 +0000)]
Merge #5855

5855: Add TBD description to arena r=matklad a=pksunkara

Sorry I missed this, @matklad. Please run manually again once this is merged.

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
3 years agoAdd TBD description to arena
Pavan Kumar Sunkara [Mon, 24 Aug 2020 11:29:10 +0000 (13:29 +0200)]
Add TBD description to arena

3 years agoMerge #4776
bors[bot] [Mon, 24 Aug 2020 11:14:45 +0000 (11:14 +0000)]
Merge #4776

4776: Do a weekly minor publish to crates.io r=matklad a=pksunkara

This is the same system I set up on Chalk repo.

Every week it creates a new minor version, pushes it to github and then deploys it to crates.io.

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
3 years agoMerge #5845
bors[bot] [Mon, 24 Aug 2020 11:08:11 +0000 (11:08 +0000)]
Merge #5845

5845: Omit lenses for not runnable doctests r=matklad a=SomeoneToIgnore

Ideally, we should properly parse the doctest attributes before, but since I need it for the code lens only, this way should suffice for now

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
3 years agoAdd description for crates that will be published
Pavan Kumar Sunkara [Mon, 24 Aug 2020 11:06:30 +0000 (13:06 +0200)]
Add description for crates that will be published

3 years agoAdded weekly publish workflow
Pavan Kumar Sunkara [Sat, 6 Jun 2020 19:50:28 +0000 (21:50 +0200)]
Added weekly publish workflow

3 years agoMerge #5851
bors[bot] [Mon, 24 Aug 2020 11:01:56 +0000 (11:01 +0000)]
Merge #5851

5851: Invert if should be smart about is_some, is_none, is_ok, is_err r=matklad a=dragfire

Fixes #5827

Co-authored-by: dragfire <asem.devajit@gmail.com>
3 years agoMerge #5852
bors[bot] [Mon, 24 Aug 2020 10:56:04 +0000 (10:56 +0000)]
Merge #5852

5852: Add Early Return rule to style r=matklad a=matklad

bors r+

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMerge #5853
bors[bot] [Mon, 24 Aug 2020 10:50:04 +0000 (10:50 +0000)]
Merge #5853

5853: Avoid monomorphization
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoAvoid monomorphization
Aleksey Kladov [Mon, 24 Aug 2020 10:49:36 +0000 (12:49 +0200)]
Avoid monomorphization

3 years agoAdd Early Return rule to style
Aleksey Kladov [Mon, 24 Aug 2020 10:19:12 +0000 (12:19 +0200)]
Add Early Return rule to style

3 years agoRenames, comments, and dead code removal
Zac Pullar-Strecker [Mon, 24 Aug 2020 09:50:30 +0000 (21:50 +1200)]
Renames, comments, and dead code removal

3 years agoMerge remote-tracking branch 'upstream/master' into 503-hover-doc-links
Zac Pullar-Strecker [Mon, 24 Aug 2020 09:19:53 +0000 (21:19 +1200)]
Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links

3 years agoAdd version to deps in cargo.toml
Pavan Kumar Sunkara [Mon, 24 Aug 2020 08:25:19 +0000 (10:25 +0200)]
Add version to deps in cargo.toml

3 years agoAdd a test to document unimplemented case
Zac Pullar-Strecker [Mon, 24 Aug 2020 08:47:10 +0000 (20:47 +1200)]
Add a test to document unimplemented case

3 years agoReorganise code
Zac Pullar-Strecker [Mon, 24 Aug 2020 08:26:45 +0000 (20:26 +1200)]
Reorganise code

3 years agoInvert if should be smart about is_some, is_none, is_ok, is_err
dragfire [Sun, 23 Aug 2020 20:30:07 +0000 (14:30 -0600)]
Invert if should be smart about is_some, is_none, is_ok, is_err

3 years agoOmit lenses for not runnable doctests
Kirill Bulatov [Sat, 22 Aug 2020 19:03:02 +0000 (22:03 +0300)]
Omit lenses for not runnable doctests

3 years agoMerge #5823
bors[bot] [Sat, 22 Aug 2020 14:41:17 +0000 (14:41 +0000)]
Merge #5823

5823: Don't underline function definition if self is &mut r=Nashenas88 a=matklad

The self is right there, and is already underlined, so it makes little
sense to emit even more underlines.

before:
![before](https://user-images.githubusercontent.com/1711539/90672843-0d379500-e257-11ea-840f-b0caed4410f1.png)
after:
![after](https://user-images.githubusercontent.com/1711539/90672840-0c9efe80-e257-11ea-9739-23af433841c6.png)

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMerge #5839
bors[bot] [Fri, 21 Aug 2020 19:47:22 +0000 (19:47 +0000)]
Merge #5839

5839: Dont ask me why... r=kjeremy a=Veetaha

Co-authored-by: Veetaha <veetaha2@gmail.com>
3 years agoGate stream.pipeline workaround on fixed versions of node
Veetaha [Fri, 21 Aug 2020 19:12:22 +0000 (22:12 +0300)]
Gate stream.pipeline workaround on fixed versions of node

3 years agoDont ask me why...
Veetaha [Fri, 21 Aug 2020 18:14:40 +0000 (21:14 +0300)]
Dont ask me why...

3 years agoMerge #5838
bors[bot] [Fri, 21 Aug 2020 17:15:09 +0000 (17:15 +0000)]
Merge #5838

5838: :arrow_up: autocfg
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years ago:arrow_up: autocfg
Aleksey Kladov [Fri, 21 Aug 2020 17:14:44 +0000 (19:14 +0200)]
:arrow_up: autocfg

3 years ago:arrow_up: ungrammar
Aleksey Kladov [Fri, 21 Aug 2020 17:12:38 +0000 (19:12 +0200)]
:arrow_up: ungrammar

3 years agoMerge #5835
bors[bot] [Fri, 21 Aug 2020 11:21:05 +0000 (11:21 +0000)]
Merge #5835

5835: Switch to expect_test from crates.io
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoSwitch to expect_test from crates.io
Aleksey Kladov [Fri, 21 Aug 2020 11:19:31 +0000 (13:19 +0200)]
Switch to expect_test from crates.io

3 years agoRemove expect crate
Aleksey Kladov [Fri, 21 Aug 2020 11:15:56 +0000 (13:15 +0200)]
Remove expect crate