]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoMerge #5807
bors[bot] [Tue, 18 Aug 2020 17:37:40 +0000 (17:37 +0000)]
Merge #5807

5807: Cleanup feature generation
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoCleanup feature generation
Aleksey Kladov [Tue, 18 Aug 2020 17:31:06 +0000 (19:31 +0200)]
Cleanup feature generation

3 years agoMerge #5806
bors[bot] [Tue, 18 Aug 2020 17:02:33 +0000 (17:02 +0000)]
Merge #5806

5806: Add GH Sposors to FUNDING.yml
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoAdd GH Sposors to FUNDING.yml
Aleksey Kladov [Tue, 18 Aug 2020 16:59:12 +0000 (18:59 +0200)]
Add GH Sposors to FUNDING.yml

3 years agoMerge #5805
bors[bot] [Tue, 18 Aug 2020 16:56:05 +0000 (16:56 +0000)]
Merge #5805

5805: Encourage rebases more
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoEncourage rebases more
Aleksey Kladov [Tue, 18 Aug 2020 16:52:12 +0000 (18:52 +0200)]
Encourage rebases more

3 years agoMerge #5695
bors[bot] [Tue, 18 Aug 2020 16:49:06 +0000 (16:49 +0000)]
Merge #5695

5695: Added completion for unstable features r=matklad a=Fihtangolz

Added xtask for downloading list of unstable features from the unstable book and codegen for it. Also included small changes from linter.

Co-authored-by: Dmitry <mamhigtt@gmail.com>
Co-authored-by: Dmitry Opokin <mamhigtt@gmail.com>
3 years agoMerge #5804
bors[bot] [Tue, 18 Aug 2020 16:40:12 +0000 (16:40 +0000)]
Merge #5804

5804: Add type safety to diagnostic codes
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoAdd type safety to diagnostic codes
Aleksey Kladov [Tue, 18 Aug 2020 16:39:43 +0000 (18:39 +0200)]
Add type safety to diagnostic codes

3 years agoMerge #5801
bors[bot] [Tue, 18 Aug 2020 15:45:37 +0000 (15:45 +0000)]
Merge #5801

5801: Speedup tests in dev mode
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoSpeedup tests in dev mode
Aleksey Kladov [Tue, 18 Aug 2020 15:44:51 +0000 (17:44 +0200)]
Speedup tests in dev mode

3 years agoMerge #5800
bors[bot] [Tue, 18 Aug 2020 15:22:12 +0000 (15:22 +0000)]
Merge #5800

5800: Speedup ty tests
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoSpeedup ty tests
Aleksey Kladov [Tue, 18 Aug 2020 15:20:10 +0000 (17:20 +0200)]
Speedup ty tests

Closes #5792

3 years agoMerge #5798
bors[bot] [Tue, 18 Aug 2020 14:51:10 +0000 (14:51 +0000)]
Merge #5798

5798: Introduce Label
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoIntroduce Label
Aleksey Kladov [Tue, 18 Aug 2020 14:41:21 +0000 (16:41 +0200)]
Introduce Label

3 years agoMerge #5797
bors[bot] [Tue, 18 Aug 2020 14:22:36 +0000 (14:22 +0000)]
Merge #5797

5797: Minor
 r=matklad a=matklad

bors r+
🤖

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

3 years agoMerge #5796
bors[bot] [Tue, 18 Aug 2020 14:12:00 +0000 (14:12 +0000)]
Merge #5796

5796: Align diagnostics config with the rest of rust-analyzer
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoAlign diagnostics config with the rest of rust-analyzer
Aleksey Kladov [Tue, 18 Aug 2020 14:03:15 +0000 (16:03 +0200)]
Align diagnostics config with the rest of rust-analyzer

3 years agofmt
Dmitry [Tue, 18 Aug 2020 12:51:04 +0000 (19:51 +0700)]
fmt

3 years agofix reformat
Dmitry [Tue, 18 Aug 2020 12:42:12 +0000 (19:42 +0700)]
fix reformat

3 years agoMerge remote-tracking branch 'rust-analyzer/master'
Dmitry [Tue, 18 Aug 2020 12:37:22 +0000 (19:37 +0700)]
Merge remote-tracking branch 'rust-analyzer/master'

3 years agoMerge #5794
bors[bot] [Tue, 18 Aug 2020 12:32:32 +0000 (12:32 +0000)]
Merge #5794

5794: Simplify building a symbol hierarchy
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoAdd default names section
Aleksey Kladov [Tue, 18 Aug 2020 12:31:50 +0000 (14:31 +0200)]
Add default names section

3 years agoSimplify building a symbol hierarchy
Aleksey Kladov [Tue, 18 Aug 2020 12:27:17 +0000 (14:27 +0200)]
Simplify building a symbol hierarchy

3 years agoMerge #5682
bors[bot] [Tue, 18 Aug 2020 12:04:49 +0000 (12:04 +0000)]
Merge #5682

5682: Add an option to disable diagnostics r=matklad a=popzxc

As far as I know, currently it's not possible to disable a selected type of diagnostics provided by `rust-analyzer`.

This causes an inconvenient situation with a false-positive warnings: you either have to disable all the diagnostics, or you have to ignore these warnings.

There are some open issues related to this problem, e.g.: https://github.com/rust-analyzer/rust-analyzer/issues/5412, https://github.com/rust-analyzer/rust-analyzer/issues/5502

This PR attempts to make it possible to selectively disable some diagnostics on per-project basis.

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
3 years agoMerge #5687
bors[bot] [Tue, 18 Aug 2020 11:58:02 +0000 (11:58 +0000)]
Merge #5687

5687: Fix document symbols order r=matklad a=magurotuna

Resolves #5655
And adds tests for `handle_document_symbol`, both with `hierarchical_symbols` enabled and with it disabled.

Previously document symbols were displayed in reverse order  in sublime text with its LSP plugin, but this patch fixes it like this:

![image](https://user-images.githubusercontent.com/23649474/89709020-fbccce00-d9b6-11ea-83b0-c88dc9f7977f.png)

Co-authored-by: Yusuke Tanaka <yusuktan@maguro.dev>
3 years agoMerge #5793
bors[bot] [Tue, 18 Aug 2020 11:20:54 +0000 (11:20 +0000)]
Merge #5793

5793: Minor
 r=matklad a=matklad

bors r+
🤖

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

3 years agoMerge #5758
bors[bot] [Tue, 18 Aug 2020 10:52:27 +0000 (10:52 +0000)]
Merge #5758

5758: SSR: Explicitly autoderef and ref placeholders as needed r=matklad a=davidlattimore

Structural search replace now inserts *, & and &mut in the replacement to match any auto[de]ref in the matched code.

e.g. `$a.foo() ==>> bar($a)` might convert `x.foo()` to `bar(&mut x)`

Co-authored-by: David Lattimore <dml@google.com>
3 years agoSSR: A few small refactorings
David Lattimore [Tue, 18 Aug 2020 10:39:55 +0000 (20:39 +1000)]
SSR: A few small refactorings

3 years agoMove analysis config structure to the config.rs
Igor Aleksanov [Tue, 18 Aug 2020 10:35:36 +0000 (13:35 +0300)]
Move analysis config structure to the config.rs

3 years agoMake disabled diagnostics an argument of corresponding function
Igor Aleksanov [Tue, 18 Aug 2020 10:32:29 +0000 (13:32 +0300)]
Make disabled diagnostics an argument of corresponding function

3 years agoMerge #5791
bors[bot] [Tue, 18 Aug 2020 09:21:11 +0000 (09:21 +0000)]
Merge #5791

5791: :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 [Tue, 18 Aug 2020 08:49:18 +0000 (10:49 +0200)]
:arrow_up: crates

3 years agoRemove usless pre-cache task
Aleksey Kladov [Tue, 18 Aug 2020 09:19:44 +0000 (11:19 +0200)]
Remove usless pre-cache task

We are not cleaning the rest of xtask artifacts, so this effectively
does nothing. xtask is small and changes rarely, so this shouldn't
really matter.

3 years agoMerge #5790
bors[bot] [Tue, 18 Aug 2020 09:08:00 +0000 (09:08 +0000)]
Merge #5790

5790: Revive cache cleaning
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRevive cache cleaning
Aleksey Kladov [Tue, 18 Aug 2020 08:38:57 +0000 (10:38 +0200)]
Revive cache cleaning

The idea here is that, on CI, we only want to cache crates.io
dependencies, and not local crates. This keeps the size of the cache
low, and also improves performance, as network and moving files on
disk (on Windows) can be slow.

3 years agoRe-enable mac build
Aleksey Kladov [Tue, 18 Aug 2020 07:38:32 +0000 (09:38 +0200)]
Re-enable mac build

3 years agoMerge #5787
bors[bot] [Tue, 18 Aug 2020 07:25:57 +0000 (07:25 +0000)]
Merge #5787

5787: Fix missing match arm false positive r=matklad a=CAD97

If the type of the match expression is `{unknown}`, don't do exhaustiveness checks, as it could be an uninhabited type.

Co-authored-by: CAD97 <cad97@cad97.com>
3 years agoFix missing match arm false error on unknown type
CAD97 [Mon, 17 Aug 2020 17:27:12 +0000 (13:27 -0400)]
Fix missing match arm false error on unknown type

3 years agoDocument missing match arm false positive
CAD97 [Mon, 17 Aug 2020 17:19:15 +0000 (13:19 -0400)]
Document missing match arm false positive

This should already be guarded against
(https://github.com/rust-analyzer/rust-analyzer/blob/d2212a49f6d447a14cdc87a9de2a4844e78b6905/crates/hir_ty/src/diagnostics/expr.rs#L225-L230)
but it isn't preventing this false positive for some reason.

3 years agoMerge #5776 #5780
bors[bot] [Mon, 17 Aug 2020 14:30:24 +0000 (14:30 +0000)]
Merge #5776 #5780

5776: Fix eslint errors on .eslintrc.js and rollup.config.js r=matklad a=fuafa

Eslint complains if these two files does not include in the `tsconfig.json`.
```
Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: .eslintrc.js.
The file must be included in at least one of the projects provided.eslint
```
![image](https://user-images.githubusercontent.com/20750310/90338269-176d4f80-e01b-11ea-8710-3ea817b235d2.png)

5780: Fixup whitespace when adding missing impl items r=matklad a=jDomantas

Generate properly formatted whitespace when adding impl items - with an empty line between items and removing extra whitespace that often appears at the end.

This is my first time working on rust analyzer so I'm not very familiar with its internal APIs. If there's a better way to do such syntax tree editing I'd be glad to hear it.

Co-authored-by: xiaofa <xiaofalzx@gmail.com>
Co-authored-by: jDomantas <djadenkus@gmail.com>
3 years agoMerge #5782
bors[bot] [Mon, 17 Aug 2020 14:23:03 +0000 (14:23 +0000)]
Merge #5782

5782: Fix StatusNotification r=matklad a=vsrs

This PR fixes the following:

As per specification `params` property in [NotificationMessage ](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#notificationMessage) should be `array | object` while RA uses `"loading" | "ready" | "invalid" | "needsReload"`.

Co-authored-by: vsrs <vit@conrlab.com>
3 years agoMerge #5785
bors[bot] [Mon, 17 Aug 2020 14:13:07 +0000 (14:13 +0000)]
Merge #5785

5785: Don't make fields private unless you have to
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoDon't make fields private unless you have to
Aleksey Kladov [Mon, 17 Aug 2020 14:11:29 +0000 (16:11 +0200)]
Don't make fields private unless you have to

3 years agoMerge #5784
bors[bot] [Mon, 17 Aug 2020 13:50:13 +0000 (13:50 +0000)]
Merge #5784

5784: Mention that generated .adocs are generaterd
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMention that generated .adocs are generaterd
Aleksey Kladov [Mon, 17 Aug 2020 13:49:46 +0000 (15:49 +0200)]
Mention that generated .adocs are generaterd

3 years agoFix StatusNotification
vsrs [Mon, 17 Aug 2020 11:56:27 +0000 (14:56 +0300)]
Fix StatusNotification

3 years agoformat
jDomantas [Mon, 17 Aug 2020 08:36:46 +0000 (11:36 +0300)]
format

3 years agoupdate generated tests
jDomantas [Mon, 17 Aug 2020 07:47:13 +0000 (10:47 +0300)]
update generated tests

3 years agoMerge #5766
bors[bot] [Sun, 16 Aug 2020 20:03:06 +0000 (20:03 +0000)]
Merge #5766

5766: Hacky support for fn-like proc macros r=matklad a=jonas-schievink

It turns out that this is all that's needed to get something like this working:

```rust
#[proc_macro]
pub fn function_like_macro(_args: TokenStream) -> TokenStream {
    TokenStream::from_str("fn fn_success() {}").unwrap()
}
```

```rust
function_like_macro!();

fn f() {
    fn_success();
}
```

The drawback is that it also makes this work, because there is no distinction between different proc macro kinds in the rest of r-a:

```rust
#[derive(function_like_macro)]
struct S {}

fn f() {
    fn_success();
}
```

Another issue is that it seems to panic, and then panic, when using this on the rustc code base, due to some issue in the inscrutable proc macro bridge code.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMerge #5778
bors[bot] [Sun, 16 Aug 2020 16:18:55 +0000 (16:18 +0000)]
Merge #5778

5778: Chalk 0.23 r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
3 years agoChalk 0.23
Jeremy Kolb [Sun, 16 Aug 2020 16:15:44 +0000 (12:15 -0400)]
Chalk 0.23

3 years agoMerge #5777
bors[bot] [Sun, 16 Aug 2020 16:01:52 +0000 (16:01 +0000)]
Merge #5777

5777: Bump rustc_lexer r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
3 years agoBump rustc_lexer
Jeremy Kolb [Sun, 16 Aug 2020 15:57:10 +0000 (11:57 -0400)]
Bump rustc_lexer

3 years agoMerge #5775
bors[bot] [Sun, 16 Aug 2020 15:40:09 +0000 (15:40 +0000)]
Merge #5775

5775: Bump chrono r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
3 years agoUpdate chrono
Jeremy Kolb [Sun, 16 Aug 2020 15:34:13 +0000 (11:34 -0400)]
Update chrono

3 years agoFix eslint errors on .eslintrc.js and rollup.config.js
xiaofa [Sun, 16 Aug 2020 15:28:26 +0000 (23:28 +0800)]
Fix eslint errors on .eslintrc.js and rollup.config.js

3 years agoRemove test for `handle_document_symbol`
Yusuke Tanaka [Sun, 16 Aug 2020 15:19:29 +0000 (00:19 +0900)]
Remove test for `handle_document_symbol`

3 years agoMerge #5770
bors[bot] [Sat, 15 Aug 2020 20:47:08 +0000 (20:47 +0000)]
Merge #5770

5770: Fix typo in comment r=kjeremy a=rockerBOO

Co-authored-by: Dave Lage <rockerboo@gmail.com>
3 years agoFix typo in comment
Dave Lage [Sat, 15 Aug 2020 20:37:44 +0000 (16:37 -0400)]
Fix typo in comment

3 years agoMerge #5769
bors[bot] [Sat, 15 Aug 2020 16:53:15 +0000 (16:53 +0000)]
Merge #5769

5769: Don't expose hir::Path out of hir
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoDon't expose hir::Path out of hir
Aleksey Kladov [Sat, 15 Aug 2020 16:50:41 +0000 (18:50 +0200)]
Don't expose hir::Path out of hir

Conjecture: it's impossible to use hir::Path *correctly* from an IDE.

I am not entirely sure about this, and we might need to add it back at
some point, but I have to arguments that convince me that we probably
won't:

* `hir::Path` has to know about hygiene, which an IDE can't set up
  properly.

* `hir::Path` lacks identity, but you actually have to know identity
  to resolve it correctly

3 years agoMerge #5768
bors[bot] [Sat, 15 Aug 2020 16:23:13 +0000 (16:23 +0000)]
Merge #5768

5768: Remove deprecated Path::from_ast
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRemove deprecated Path::from_ast
Aleksey Kladov [Sat, 15 Aug 2020 16:22:16 +0000 (18:22 +0200)]
Remove deprecated Path::from_ast

Long term, we probably should make hir::Path private to hir.

3 years agoHacky support for fn-like proc macros
Jonas Schievink [Sat, 15 Aug 2020 13:34:56 +0000 (15:34 +0200)]
Hacky support for fn-like proc macros

3 years agoMerge #5762
bors[bot] [Fri, 14 Aug 2020 22:29:04 +0000 (22:29 +0000)]
Merge #5762

5762: Add a proc_macro_test crate r=jonas-schievink a=jonas-schievink

This exports all 3 kinds of proc macros and is useful for testing.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoAdd a proc_macro_test crate
Jonas Schievink [Fri, 14 Aug 2020 22:19:47 +0000 (00:19 +0200)]
Add a proc_macro_test crate

This exports all 3 kinds of proc macros and is useful for testing

3 years agosynchronizing changes
Dmitry [Fri, 14 Aug 2020 18:43:34 +0000 (01:43 +0700)]
synchronizing changes

3 years agoMerge remote-tracking branch 'origin/master'
Dmitry [Fri, 14 Aug 2020 18:32:05 +0000 (01:32 +0700)]
Merge remote-tracking branch 'origin/master'

3 years agorefactor requirements put forward mkladov
Dmitry [Fri, 14 Aug 2020 18:25:08 +0000 (01:25 +0700)]
refactor requirements put forward mkladov

3 years agoMerge #5347
bors[bot] [Fri, 14 Aug 2020 17:02:55 +0000 (17:02 +0000)]
Merge #5347

5347: Chalk writer integration r=flodiebold a=detrumi

~~This adds a `rust-analyzer dump-chalk` command, similar to analysis-stats, which writes out the whole chalk progam (see [chalk#365](https://github.com/rust-lang/chalk/issues/365) for more info about the .chalk writer)~~

Write out chalk programs in debug output if chalk debugging is active (using `CHALK_DEBUG`).

Example output:
```
[DEBUG ra_hir_ty::traits] solve(UCanonical { canonical: Canonical { value: InEnvironment { environment: Env([]), goal: Implemented(SeparatorTraitRef(?)) }, binders: [] }, universes: 1 }) => None
[INFO  ra_hir_ty::traits] trait_solve_query(Implements(fn min<?0.0>(?0.0, ?0.0) -> ?0.0: Deref))
[DEBUG ra_hir_ty::traits] solve goal: UCanonical { canonical: Canonical { value: InEnvironment { environment: Env([]), goal: Implemented(SeparatorTraitRef(?)) }, binders: [U0 with kind type] }, universes: 1 }
[DEBUG ra_hir_ty::traits::chalk] impls_for_trait Deref
[DEBUG ra_hir_ty::traits::chalk] impls_for_trait returned 0 impls
[DEBUG ra_hir_ty::traits::chalk] trait_datum Ord
[DEBUG ra_hir_ty::traits::chalk] trait Ord = Name(Text("Ord"))
[DEBUG ra_hir_ty::traits] chalk program:
    #[upstream]
    #[non_enumerable]
    #[object_safe]
    trait Ord {}
    #[upstream]
    #[non_enumerable]
    #[object_safe]
    #[lang(sized)]
    trait Sized {}
    fn fn_0<_1_0>(arg_0: _1_0, arg_1: _1_0) -> _1_0
    where
      _1_0: Ord;
    #[upstream]
    #[non_enumerable]
    #[object_safe]
    trait Deref {
      type Assoc_1829: Sized;
    }

[DEBUG ra_hir_ty::traits] solve(UCanonical { canonical: Canonical { value: InEnvironment { environment: Env([]), goal: Implemented(SeparatorTraitRef(?)) }, binders: [U0 with kind type] }, universes: 1 }) => None
[INFO  ra_hir_ty::traits] trait_solve_query(Implements(?0.0: Ord))
```

Co-authored-by: Wilco Kusee <wilcokusee@gmail.com>
3 years agorestrict visibility only by crate
Dmitry [Fri, 14 Aug 2020 16:22:23 +0000 (23:22 +0700)]
restrict visibility only by crate

3 years agoMerge branch 'master' of https://github.com/Fihtangolz/rust-analyzer into master
Dmitry [Fri, 14 Aug 2020 16:16:15 +0000 (23:16 +0700)]
Merge branch 'master' of https://github.com/Fihtangolz/rust-analyzer into master

3 years agoUpdate xtask/src/codegen/gen_unstable_future_descriptor.rs
Dmitry Opokin [Fri, 14 Aug 2020 16:11:50 +0000 (23:11 +0700)]
Update xtask/src/codegen/gen_unstable_future_descriptor.rs

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRevert "replase sparse-checkout by github api"
Dmitry [Fri, 14 Aug 2020 14:58:04 +0000 (21:58 +0700)]
Revert "replase sparse-checkout by github api"

This reverts commit 034db28c542c04b22147da6722328bc74ff99386.

3 years agoMerge #5760
bors[bot] [Fri, 14 Aug 2020 15:30:53 +0000 (15:30 +0000)]
Merge #5760

5760: Document xtask has few deps invariant
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoDocument xtask has few deps invariant
Aleksey Kladov [Fri, 14 Aug 2020 15:30:16 +0000 (17:30 +0200)]
Document xtask has few deps invariant

3 years agoreplase sparse-checkout by github api
Dmitry [Fri, 14 Aug 2020 14:58:04 +0000 (21:58 +0700)]
replase sparse-checkout by github api

3 years agoMerge #5759
bors[bot] [Fri, 14 Aug 2020 13:23:58 +0000 (13:23 +0000)]
Merge #5759

5759: Rename hypothetical -> speculative
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRename hypothetical -> speculative
Aleksey Kladov [Fri, 14 Aug 2020 13:23:27 +0000 (15:23 +0200)]
Rename hypothetical -> speculative

3 years agofixup whitespace when adding missing impl items
jDomantas [Fri, 14 Aug 2020 13:10:52 +0000 (16:10 +0300)]
fixup whitespace when adding missing impl items

3 years agoOnly print chalk programs with CHALK_PRINT
Wilco Kusee [Fri, 14 Aug 2020 12:47:06 +0000 (14:47 +0200)]
Only print chalk programs with CHALK_PRINT

3 years agoSSR: Explicitly autoderef and ref placeholders as needed
David Lattimore [Wed, 5 Aug 2020 21:26:28 +0000 (07:26 +1000)]
SSR: Explicitly autoderef and ref placeholders as needed

Structured search replace now inserts *, & and &mut in the replacement to match any auto[de]ref in the matched code.

3 years agoMerge #5757
bors[bot] [Fri, 14 Aug 2020 10:27:38 +0000 (10:27 +0000)]
Merge #5757

5757: Document the most important CI invariant
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoDocument the most important CI invariant
Aleksey Kladov [Fri, 14 Aug 2020 10:27:15 +0000 (12:27 +0200)]
Document the most important CI invariant

3 years agoRefactor SSR so that placeholders store a Var
David Lattimore [Thu, 6 Aug 2020 01:30:52 +0000 (11:30 +1000)]
Refactor SSR so that placeholders store a Var

This allows lookup of placeholder bindings given a placeholder without
needing to create a Var instance.

3 years agoMerge #5756
bors[bot] [Fri, 14 Aug 2020 10:06:03 +0000 (10:06 +0000)]
Merge #5756

5756: Sophisticate Windows path encoding r=matklad a=pragmatrix

As discussed in #5475, path encoding should be agnostic of the drive letter casing on Windows.

Compared to the problem it solves, the code added seems a lot and may introduce other problems. But I've not found a simpler way basing this on the public API surface that Rust offers.

Fixes #5484.

cc @Emilgardis

Co-authored-by: Armin Sander <armin@replicator.org>
3 years agoLookup adt names
Wilco Kusee [Sun, 26 Jul 2020 11:06:11 +0000 (13:06 +0200)]
Lookup adt names

3 years agoOnly use logging db if CHALK_DEBUG is active
Wilco Kusee [Sun, 26 Jul 2020 10:27:25 +0000 (12:27 +0200)]
Only use logging db if CHALK_DEBUG is active

3 years agoPrint chalk programs in debug output
Wilco Kusee [Mon, 13 Jul 2020 20:03:26 +0000 (22:03 +0200)]
Print chalk programs in debug output

3 years agoMerge branch 'master' into add-disable-diagnostics
Igor Aleksanov [Fri, 14 Aug 2020 04:34:07 +0000 (07:34 +0300)]
Merge branch 'master' into add-disable-diagnostics

3 years agoSophisticate Windows path encoding
Armin Sander [Thu, 13 Aug 2020 23:19:46 +0000 (01:19 +0200)]
Sophisticate Windows path encoding

3 years agoMerge #5755
bors[bot] [Thu, 13 Aug 2020 22:16:31 +0000 (22:16 +0000)]
Merge #5755

5755: Make hygiene private to hir r=davidlattimore a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoMake hygiene private to hir
Aleksey Kladov [Thu, 13 Aug 2020 21:52:14 +0000 (23:52 +0200)]
Make hygiene private to hir

3 years agoMerge #5753
bors[bot] [Thu, 13 Aug 2020 20:42:36 +0000 (20:42 +0000)]
Merge #5753

5753: Remove Hygiene from completion
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoRemove Hygiene from completion
Aleksey Kladov [Thu, 13 Aug 2020 20:41:55 +0000 (22:41 +0200)]
Remove Hygiene from completion

3 years agoMerge #5752
bors[bot] [Thu, 13 Aug 2020 20:28:11 +0000 (20:28 +0000)]
Merge #5752

5752: display correctly 'impl Trait<T> + Trait<T>' #4814 r=flodiebold a=bnjjj

close #4814

Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
3 years agodisplay correctly 'impl Trait<T> + Trait<T>' #4814
Benjamin Coenen [Thu, 13 Aug 2020 20:13:34 +0000 (22:13 +0200)]
display correctly 'impl Trait<T> + Trait<T>' #4814

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>