]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoCorrected minor typo on line 20
mixio [Thu, 13 May 2021 16:29:48 +0000 (18:29 +0200)]
Corrected minor typo on line 20

3 years agoMerge #8799
bors[bot] [Wed, 12 May 2021 14:49:43 +0000 (14:49 +0000)]
Merge #8799

8799: Add basic support for array lengths in types r=flodiebold a=lf-

This recognizes `let a = [1u8, 2, 3]` as having type `[u8; 3]` instead
of the previous `[u8; _]`. Byte strings and `[0u8; 2]` kinds of range
array declarations are unsupported as before.

I don't know why a bunch of our rustc tests had single quotes inside
strings un-escaped by `UPDATE_EXPECT=1 cargo t`, but I don't think it's
bad? Maybe something in a nightly?

Co-authored-by: Jade <software@lfcode.ca>
3 years agoMerge #8802
bors[bot] [Wed, 12 May 2021 14:42:01 +0000 (14:42 +0000)]
Merge #8802

8802: Keep comments and attrs when extracting struct from enum variant r=Veykril a=DropDemBits

Fixes #6730

Still unsure if existing visibilities of fields should be forced to pub (which is what was previously done), or if it's okay to keep it in the extracted struct.

Co-authored-by: DropDemBits <r3usrlnd@gmail.com>
3 years agoMerge #8812
bors[bot] [Wed, 12 May 2021 13:22:23 +0000 (13:22 +0000)]
Merge #8812

8812: fix: fix dependencies of build scripts r=jonas-schievink a=jonas-schievink

Previously, we added a dependency for all targets in a package to the package's library target. This is correct for most targets, except build scripts, which run before the library crate is built. This PR removes the incorrect dependency on the library target.

We also used to treat all dependencies the same, which led to build scripts being able to use regular dependencies as well as dev-dependencies. This is also fixed by this PR, and build scripts only depend on build-dependencies.

Incorrect dependency graph:

![screenshot-2021-05-11-23:35:01](https://user-images.githubusercontent.com/1786438/117975228-c2066a80-b32e-11eb-8f01-1e3ea904a608.png)

Fixed graph after this PR:

![screenshot-2021-05-12-14:29:31](https://user-images.githubusercontent.com/1786438/117975253-c9c60f00-b32e-11eb-8f6c-9e42d4e32468.png)

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoFix build script dependencies
Jonas Schievink [Wed, 12 May 2021 12:16:51 +0000 (14:16 +0200)]
Fix build script dependencies

3 years agoMerge #8808
bors[bot] [Tue, 11 May 2021 23:05:07 +0000 (23:05 +0000)]
Merge #8808

8808: fix: Fix fn proc macro input again r=jonas-schievink a=jonas-schievink

https://github.com/rust-analyzer/rust-analyzer/pull/8806 broke the `TokenMap`, so none of the tokens in fn-like proc macro inputs could be related to the output (presumably this is because of the `clone_for_update`).

This PR instead just sets `delimiter = None;` after the `TokenMap` and `Subtree` are already created.

We should probably have more tests for fn-like proc macros, and consider making the behavior consistent with MBE (which *require* the delimiters to be present).

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoRemove delimiters from proc macro input
Jonas Schievink [Tue, 11 May 2021 23:01:51 +0000 (01:01 +0200)]
Remove delimiters from proc macro input

3 years agoRevert "Strip delimiter from fn-like proc macro input"
Jonas Schievink [Tue, 11 May 2021 22:57:41 +0000 (00:57 +0200)]
Revert "Strip delimiter from fn-like proc macro input"

This reverts commit bda68e23328ca62a71da348a13c4d13cc8f991f3.

3 years agoMerge #8806
bors[bot] [Tue, 11 May 2021 22:27:50 +0000 (22:27 +0000)]
Merge #8806

8806: fix: Strip delimiter from fn-like macro invocations r=jonas-schievink a=jonas-schievink

This broke in https://github.com/rust-analyzer/rust-analyzer/pull/8796 (again), the fix is easy though

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoStrip delimiter from fn-like proc macro input
Jonas Schievink [Tue, 11 May 2021 22:27:16 +0000 (00:27 +0200)]
Strip delimiter from fn-like proc macro input

3 years agoaddress review by @eddyb
Jade [Tue, 11 May 2021 22:18:45 +0000 (15:18 -0700)]
address review by @eddyb

3 years agoMerge #8807
bors[bot] [Tue, 11 May 2021 22:16:27 +0000 (22:16 +0000)]
Merge #8807

8807: internal: Move `dot` invocation to rust-analyzer crate r=jonas-schievink a=jonas-schievink

Addresses https://github.com/rust-analyzer/rust-analyzer/pull/8801#discussion_r630570615

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMove `dot` invocation to rust-analyzer crate
Jonas Schievink [Tue, 11 May 2021 22:14:59 +0000 (00:14 +0200)]
Move `dot` invocation to rust-analyzer crate

3 years agoMerge #8805
bors[bot] [Tue, 11 May 2021 21:36:26 +0000 (21:36 +0000)]
Merge #8805

8805: fix: Use Cargo target name as crate name r=jonas-schievink a=jonas-schievink

Before:

![screenshot-2021-05-11-23:35:09](https://user-images.githubusercontent.com/1786438/117887823-92654d00-b2b1-11eb-8f3d-0e45f6886a79.png)

After:

![screenshot-2021-05-11-23:35:01](https://user-images.githubusercontent.com/1786438/117887836-985b2e00-b2b1-11eb-898a-5f463c4515f6.png)

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoUse Cargo target name as crate name
Jonas Schievink [Tue, 11 May 2021 21:34:56 +0000 (23:34 +0200)]
Use Cargo target name as crate name

3 years agoMerge #8398
bors[bot] [Tue, 11 May 2021 19:01:39 +0000 (19:01 +0000)]
Merge #8398

8398: Fix inference with conditionally compiled tails r=flodiebold a=DJMcNab

Fixes #8378

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
3 years agoMerge #8801
bors[bot] [Tue, 11 May 2021 18:02:31 +0000 (18:02 +0000)]
Merge #8801

8801: feat: Allow viewing the crate graph in a webview r=jonas-schievink a=jonas-schievink

This uses `dot` to render the crate graph as an SVD file, and displays it in a VS Code panel. For simple crate graphs, it works quite well:

![screenshot-2021-05-11-16:19:32](https://user-images.githubusercontent.com/1786438/117831361-c4a48980-b274-11eb-9276-240cdf6919aa.png)

Unfortunately, on rust-analyzer itself (and most medium-sized dependency graphs), `dot` runs for around a minute and then produces this mess:

![screenshot-2021-05-11-16:41:37](https://user-images.githubusercontent.com/1786438/117834831-c754ae00-b277-11eb-850b-138495dbeba8.png)

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoBetter node label/shapes
Jonas Schievink [Tue, 11 May 2021 17:50:01 +0000 (19:50 +0200)]
Better node label/shapes

3 years agoMerge #8796
bors[bot] [Tue, 11 May 2021 17:47:45 +0000 (17:47 +0000)]
Merge #8796

8796: internal: rewrite `#[derive]` removal to be based on AST (take 2) r=jonas-schievink a=jonas-schievink

Second attempt of https://github.com/rust-analyzer/rust-analyzer/pull/8443, this uses syntactical attribute offsets in `hir_expand`, and changes `attr.rs` to make those easy to derive.

This will make it easy to add similar attribute removal for attribute macros, unblocking them.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoOnly include workspace crates
Jonas Schievink [Tue, 11 May 2021 17:17:43 +0000 (19:17 +0200)]
Only include workspace crates

3 years agoKeep comments and attrs when extracting struct from enum variant
DropDemBits [Tue, 11 May 2021 06:54:48 +0000 (02:54 -0400)]
Keep comments and attrs when extracting struct from enum variant

3 years agoDocument viewCrateGraph request
Jonas Schievink [Tue, 11 May 2021 14:45:51 +0000 (16:45 +0200)]
Document viewCrateGraph request

3 years agoUpdate crates/ide/src/view_crate_graph.rs
Jonas Schievink [Tue, 11 May 2021 14:42:27 +0000 (16:42 +0200)]
Update crates/ide/src/view_crate_graph.rs

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
3 years agoDistinguish crates with identical name
Jonas Schievink [Tue, 11 May 2021 14:36:00 +0000 (16:36 +0200)]
Distinguish crates with identical name

3 years agoAllow viewing the crate graph in a webview
Jonas Schievink [Tue, 11 May 2021 14:15:31 +0000 (16:15 +0200)]
Allow viewing the crate graph in a webview

3 years agoMerge #8800
bors[bot] [Tue, 11 May 2021 13:14:55 +0000 (13:14 +0000)]
Merge #8800

8800: feat: Make "pull assignments up" assist work in more cases r=Jesse-Bakker a=Jesse-Bakker

Fixes #8771

Co-authored-by: Jesse Bakker <github@jessebakker.com>
3 years agoMake "pull assignments up" assist work in more cases
Jesse Bakker [Tue, 11 May 2021 12:22:51 +0000 (14:22 +0200)]
Make "pull assignments up" assist work in more cases

3 years agoAdd basic support for array lengths in types
Jade [Tue, 11 May 2021 12:06:33 +0000 (05:06 -0700)]
Add basic support for array lengths in types

This recognizes `let a = [1u8, 2, 3]` as having type `[u8; 3]` instead
of the previous `[u8; _]`. Byte strings and `[0u8; 2]` kinds of range
array declarations are unsupported as before.

I don't know why a bunch of our rustc tests had single quotes inside
strings un-escaped by `UPDATE_EXPECT=1 cargo t`, but I don't think it's
bad? Maybe something in a nightly?

3 years agoMerge #8798
bors[bot] [Tue, 11 May 2021 10:07:25 +0000 (10:07 +0000)]
Merge #8798

8798: internal: use modern resolever r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: use modern resolever
Aleksey Kladov [Tue, 11 May 2021 10:06:35 +0000 (13:06 +0300)]
internal: use modern resolever

I don't think this affects us, but better to stick to modern
practicies.

3 years agoRewrite `#[derive]` removal to be based on AST
Jonas Schievink [Mon, 10 May 2021 20:54:17 +0000 (22:54 +0200)]
Rewrite `#[derive]` removal to be based on AST

3 years agoMerge #8794
bors[bot] [Mon, 10 May 2021 20:10:59 +0000 (20:10 +0000)]
Merge #8794

8794: Give MergeBehaviour variants better names r=Veykril a=Veykril

I never really liked the variant names I gave this enum from the beginning and then I found out about rustfmt's `imports_granularity` config:

> imports_granularity
>
> How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity.
>
>     Default value: Preserve
>     Possible values: Preserve, Crate, Module, Item
>     Stable: No

I personally prefer using `crate` over `full` and `module` over last, they seem more descriptive. Keeping these similar between tooling also seems like a good plus point to me.

We might even wanna take over the entire enum at some point if we have a `format/cleanup imports` assists in the future which would probably want to also have the `preserve` and `item` options.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoUpdate docs
Lukas Wirth [Mon, 10 May 2021 19:33:01 +0000 (21:33 +0200)]
Update docs

3 years agoRewrite `attr.rs` to allow using syntax-based indices
Jonas Schievink [Mon, 10 May 2021 19:50:42 +0000 (21:50 +0200)]
Rewrite `attr.rs` to allow using syntax-based indices

3 years agoGive MergeBehaviour variants better names
Lukas Wirth [Mon, 10 May 2021 19:03:50 +0000 (21:03 +0200)]
Give MergeBehaviour variants better names

3 years agoMerge #8793
bors[bot] [Mon, 10 May 2021 18:08:26 +0000 (18:08 +0000)]
Merge #8793

8793: Corrected 2 typos on line 83 r=Veykril a=mixio

Co-authored-by: mixio <38652479+mixio@users.noreply.github.com>
3 years agoCorrected 2 typos on line 83
mixio [Mon, 10 May 2021 18:05:32 +0000 (20:05 +0200)]
Corrected 2 typos on line 83

3 years agoMove `AttrId` back into `hir_def`
Jonas Schievink [Mon, 10 May 2021 14:35:06 +0000 (16:35 +0200)]
Move `AttrId` back into `hir_def`

3 years agoMerge #8791
bors[bot] [Mon, 10 May 2021 13:21:33 +0000 (13:21 +0000)]
Merge #8791

8791: feat: auto-indent use tree lists r=jonas-schievink a=jonas-schievink

![Peek 2021-05-10 15-20](https://user-images.githubusercontent.com/1786438/117665627-53e16c80-b1a3-11eb-8906-1b88b394367b.gif)

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agofeat: auto-indent use tree lists
Jonas Schievink [Mon, 10 May 2021 13:10:56 +0000 (15:10 +0200)]
feat: auto-indent use tree lists

3 years agoMerge #8790
bors[bot] [Mon, 10 May 2021 12:44:17 +0000 (12:44 +0000)]
Merge #8790

8790: fix: fix manual rendering r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofix: fix manual rendering
Aleksey Kladov [Mon, 10 May 2021 12:43:01 +0000 (15:43 +0300)]
fix: fix manual rendering

We add `// see the other repo` comments before headers (==). This one isn't a header, but a closing of the example block.

3 years agoMerge #8789
bors[bot] [Mon, 10 May 2021 12:26:52 +0000 (12:26 +0000)]
Merge #8789

8789: simplify r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agosimplify
Aleksey Kladov [Mon, 10 May 2021 12:25:56 +0000 (15:25 +0300)]
simplify

3 years agoMerge #8784
bors[bot] [Sun, 9 May 2021 20:17:37 +0000 (20:17 +0000)]
Merge #8784

8784: feat: auto-insert `}` when typing `{` in use item r=jonas-schievink a=jonas-schievink

![Peek 2021-05-09 22-14](https://user-images.githubusercontent.com/1786438/117585742-45983f80-b114-11eb-80fc-d44f480fd012.gif)

cc https://github.com/rust-analyzer/rust-analyzer/issues/8636

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agofeat: auto-insert `}` when typing `{` in use item
Jonas Schievink [Sun, 9 May 2021 20:12:58 +0000 (22:12 +0200)]
feat: auto-insert `}` when typing `{` in use item

3 years agoMerge #8783
bors[bot] [Sun, 9 May 2021 16:56:02 +0000 (16:56 +0000)]
Merge #8783

8783: internal: introduce `ast::make::ext` module with common shortcuts r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: introduce `ast::make::ext` module with common shortcuts
Aleksey Kladov [Sun, 9 May 2021 16:51:06 +0000 (19:51 +0300)]
internal: introduce `ast::make::ext` module with common shortcuts

There's a tension between keeping a well-architectured minimal
orthogonal set of constructs, and providing convenience functions.
Relieve this pressure by introducing an dedicated module for
non-orthogonal shortcuts.

This is inspired by the django.shortcuts module which serves a similar
purpose architecturally.

3 years agoMerge #8782
bors[bot] [Sun, 9 May 2021 16:23:03 +0000 (16:23 +0000)]
Merge #8782

8782: internal: fix make API r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: fix make API
Aleksey Kladov [Sun, 9 May 2021 16:11:42 +0000 (19:11 +0300)]
internal: fix make API

3 years agoMerge #8781
bors[bot] [Sun, 9 May 2021 15:55:42 +0000 (15:55 +0000)]
Merge #8781

8781: internal: rewrite **Repalce impl Trait** assist to mutable syntax trees r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: rewrite **Repalce impl Trait** assist to mutable syntax trees
Aleksey Kladov [Sun, 9 May 2021 15:20:37 +0000 (18:20 +0300)]
internal: rewrite **Repalce impl Trait** assist to mutable syntax trees

3 years agocleanups
Aleksey Kladov [Sun, 9 May 2021 14:59:52 +0000 (17:59 +0300)]
cleanups

3 years agocleanups
Aleksey Kladov [Sun, 9 May 2021 14:58:03 +0000 (17:58 +0300)]
cleanups

3 years agominor: fix test style
Aleksey Kladov [Sun, 9 May 2021 14:41:25 +0000 (17:41 +0300)]
minor: fix test style

3 years agofix: join lines doesn't add space before closing quote
Aleksey Kladov [Sun, 9 May 2021 14:17:28 +0000 (17:17 +0300)]
fix: join lines doesn't add space before closing quote

3 years agoMerge #8776
bors[bot] [Sun, 9 May 2021 14:40:49 +0000 (14:40 +0000)]
Merge #8776

8776: fix: fix unnecessary recomputations due to macros r=jonas-schievink a=jonas-schievink

This computes a macro's fragment kind eagerly (when the calling file is still available in parsed form) and stores it in the `MacroCallLoc`. This means that during expansion we no longer have to reparse the file containing the macro call, avoiding the unnecessary salsa dependencies (https://github.com/rust-analyzer/rust-analyzer/pull/8746#issuecomment-834776349).

Marking as draft until I manage to find a test for this problem, since for some reason `typing_inside_a_function_should_not_invalidate_expansions` does not catch this (which might indicate that I misunderstand the problem).

I've manually confirmed that this fixes the issue described in https://github.com/rust-analyzer/rust-analyzer/pull/8746#issuecomment-834776349:

```
    7ms - parse_query @ FileId(179)
   12ms - SourceBinder::to_module_def
       12ms - crate_def_map:wait
            5ms - item_tree_query (1 calls)
            7ms - ???
```

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoTest that none of the macros are reparsed
Jonas Schievink [Sun, 9 May 2021 14:04:34 +0000 (16:04 +0200)]
Test that none of the macros are reparsed

3 years agoMerge #8779
bors[bot] [Sun, 9 May 2021 14:19:39 +0000 (14:19 +0000)]
Merge #8779

8779: fix: join lines doesn't add space before closing quote r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofix: join lines doesn't add space before closing quote
Aleksey Kladov [Sun, 9 May 2021 14:17:28 +0000 (17:17 +0300)]
fix: join lines doesn't add space before closing quote

3 years agoMerge #8777
bors[bot] [Sun, 9 May 2021 12:01:35 +0000 (12:01 +0000)]
Merge #8777

8777: Escape characters in builtin macros correctly r=edwin0cheng a=edwin0cheng

Fixes #8749

It is the same bug in #8560 but in our `quote!` macro.

Because the "\" are adding exponentially in #8749 case, so the text is eat up all the memory.

bors r+

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
3 years agoEscape characters in builtin macros correctly
Edwin Cheng [Sun, 9 May 2021 11:57:29 +0000 (19:57 +0800)]
Escape characters in builtin macros correctly

3 years agoMerge #8774
bors[bot] [Sun, 9 May 2021 10:33:31 +0000 (10:33 +0000)]
Merge #8774

8774: feat: Honor `.cargo/config.toml` r=matklad a=Veykril

![f1Gup1aiAn](https://user-images.githubusercontent.com/3757771/117545448-1dcaae00-b026-11eb-977a-0f35a5e3f2e0.gif)

Implements `cargo/.config` build target and cfg access by using unstable cargo options:

- `cargo config get` to read the target triple out of the config to pass to `cargo metadata` --filter-platform
- `cargo rustc --print` to read out the `rustc_cfgs`, this causes us to honor `rustflags` and the like.

If those commands fail, due to not having a nightly toolchain present for example, they will fall back to invoking rustc directly as we currently do.

I personally think it should be fine to use these unstable options as they are unlikely to change(even if they did it shouldn't be a problem due to the fallback) and don't burden the user if they do not have a nightly toolchain at hand since we fall back to the previous behaviour.

cc #8741
Closes #6604, Closes #5904, Closes #8430, Closes #8480

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoPrecompute macro fragment kind
Jonas Schievink [Sat, 8 May 2021 23:36:06 +0000 (01:36 +0200)]
Precompute macro fragment kind

3 years agoMerge #8773
bors[bot] [Sat, 8 May 2021 22:09:03 +0000 (22:09 +0000)]
Merge #8773

8773: fix: Correctly support SelfType when searching for usages r=Veykril a=Veykril

Fixes #7443

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoUse RUSTC_BOOTSTRAP=1 instead of +nightly when discovering rust_cfgs throughs cargo
Lukas Wirth [Sat, 8 May 2021 22:07:04 +0000 (00:07 +0200)]
Use RUSTC_BOOTSTRAP=1 instead of +nightly when discovering rust_cfgs throughs cargo

3 years agoDon't handle Self as a usage for TraitDefs
Lukas Wirth [Sat, 8 May 2021 21:30:19 +0000 (23:30 +0200)]
Don't handle Self as a usage for TraitDefs

3 years agoMerge #8775
bors[bot] [Sat, 8 May 2021 21:14:47 +0000 (21:14 +0000)]
Merge #8775

8775: Add `=` to pattern recovery r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoAdd `=` to pattern recovery
Lukas Wirth [Sat, 8 May 2021 21:14:08 +0000 (23:14 +0200)]
Add `=` to pattern recovery

3 years agoFix builtintype def_to_ty
Lukas Wirth [Sat, 8 May 2021 20:43:26 +0000 (22:43 +0200)]
Fix builtintype def_to_ty

3 years agoCorrectly support SelfType when searching for usages
Lukas Wirth [Sat, 8 May 2021 20:34:55 +0000 (22:34 +0200)]
Correctly support SelfType when searching for usages

3 years agoMerge #8772
bors[bot] [Sat, 8 May 2021 20:29:03 +0000 (20:29 +0000)]
Merge #8772

8772: minor: remove dead code r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: remove dead code
Aleksey Kladov [Sat, 8 May 2021 20:28:36 +0000 (23:28 +0300)]
minor: remove dead code

3 years agoMerge #8770
bors[bot] [Sat, 8 May 2021 20:20:09 +0000 (20:20 +0000)]
Merge #8770

8770: feat: add "mentoring instructions" test for pull up assist r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofeat: add "mentoring instructions" test for pull up assist
Aleksey Kladov [Sat, 8 May 2021 20:19:08 +0000 (23:19 +0300)]
feat: add "mentoring instructions" test for pull up assist

3 years agointernal: pull_assignment_up uses mutable trees
Aleksey Kladov [Sat, 8 May 2021 20:09:36 +0000 (23:09 +0300)]
internal: pull_assignment_up uses mutable trees

3 years agominor: add missing test
Aleksey Kladov [Sat, 8 May 2021 17:40:07 +0000 (20:40 +0300)]
minor: add missing test

3 years agoMerge #8769
bors[bot] [Sat, 8 May 2021 17:03:58 +0000 (17:03 +0000)]
Merge #8769

8769: internal: removed dead code r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agodead code
Aleksey Kladov [Sat, 8 May 2021 16:54:03 +0000 (19:54 +0300)]
dead code

3 years agoDisable more incremental
Aleksey Kladov [Sat, 8 May 2021 16:57:18 +0000 (19:57 +0300)]
Disable more incremental

3 years agoMerge #8768
bors[bot] [Sat, 8 May 2021 16:51:09 +0000 (16:51 +0000)]
Merge #8768

8768: internal: remove one more usage of SyntaxRewriter r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agoDiscover rustc_cfg through unstable cargo options
Lukas Wirth [Sat, 8 May 2021 16:17:18 +0000 (18:17 +0200)]
Discover rustc_cfg through unstable cargo options

3 years agointernal: remove one more usage of SyntaxRewriter
Aleksey Kladov [Sat, 8 May 2021 12:42:17 +0000 (15:42 +0300)]
internal: remove one more usage of SyntaxRewriter

3 years agoMerge #8765
bors[bot] [Sat, 8 May 2021 11:47:40 +0000 (11:47 +0000)]
Merge #8765

8765: internal: remove one more syntax rewriter r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: remove one more syntax rewriter
Aleksey Kladov [Sat, 8 May 2021 11:38:56 +0000 (14:38 +0300)]
internal: remove one more syntax rewriter

3 years agoMerge #8764
bors[bot] [Sat, 8 May 2021 11:14:24 +0000 (11:14 +0000)]
Merge #8764

8764: internal: add rust-analyzer version to panic context r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: add rust-analyzer version to panic context
Aleksey Kladov [Sat, 8 May 2021 11:03:12 +0000 (14:03 +0300)]
internal: add rust-analyzer version to panic context

3 years agoMerge #8763
bors[bot] [Sat, 8 May 2021 10:49:00 +0000 (10:49 +0000)]
Merge #8763

8763: feat: make troubleshooting a top-level section r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofeat: make troubleshooting a top-level section
Aleksey Kladov [Sat, 8 May 2021 10:48:25 +0000 (13:48 +0300)]
feat: make troubleshooting a top-level section

3 years agoMerge #8762
bors[bot] [Sat, 8 May 2021 10:37:01 +0000 (10:37 +0000)]
Merge #8762

8762: internal: disable broken incremental builds 😿 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agointernal: disable broken incremental builds 😿
Aleksey Kladov [Sat, 8 May 2021 10:36:06 +0000 (13:36 +0300)]
internal: disable broken incremental builds 😿

3 years agoMerge #8761
bors[bot] [Sat, 8 May 2021 10:19:05 +0000 (10:19 +0000)]
Merge #8761

8761: feat: friendlier trouble shooting guide r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofeat: friendlier trouble shooting guide
Aleksey Kladov [Sat, 8 May 2021 10:18:25 +0000 (13:18 +0300)]
feat: friendlier trouble shooting guide

3 years agoMerge #8760
bors[bot] [Sat, 8 May 2021 09:20:57 +0000 (09:20 +0000)]
Merge #8760

8760: :arrow_up: package-lock.json r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years ago:arrow_up: package-lock.json
Aleksey Kladov [Sat, 8 May 2021 09:20:06 +0000 (12:20 +0300)]
:arrow_up: package-lock.json

3 years agoMerge #8759
bors[bot] [Sat, 8 May 2021 06:04:09 +0000 (06:04 +0000)]
Merge #8759

8759: docs: Add Kate installation section r=matklad a=meven

Replaces https://github.com/rust-analyzer/rust-analyzer.github.io/pull/111#issuecomment-834797031

Co-authored-by: Méven Car <meven29@gmail.com>
3 years agodocs: Add Kate installation section
Méven Car [Sat, 8 May 2021 05:33:24 +0000 (07:33 +0200)]
docs: Add Kate installation section

3 years agoMerge #8755
bors[bot] [Fri, 7 May 2021 21:27:20 +0000 (21:27 +0000)]
Merge #8755

8755: fix: direct people to the right repository r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofix: direct people to the right repository
Aleksey Kladov [Fri, 7 May 2021 21:19:01 +0000 (00:19 +0300)]
fix: direct people to the right repository

3 years agoMerge #8753
bors[bot] [Fri, 7 May 2021 20:50:47 +0000 (20:50 +0000)]
Merge #8753

8753: internal: expose cfg attrs from hir::Crate r=matklad a=matklad

bors r+
🤖

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