]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agointernal: cleanup item parsing
Aleksey Kladov [Fri, 17 Sep 2021 21:33:42 +0000 (00:33 +0300)]
internal: cleanup item parsing

2 years agominor: parser cleanup
Aleksey Kladov [Fri, 17 Sep 2021 21:14:20 +0000 (00:14 +0300)]
minor: parser cleanup

2 years agoMerge #10268
bors[bot] [Fri, 17 Sep 2021 20:35:02 +0000 (20:35 +0000)]
Merge #10268

10268: intenral: simplify parser r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 years agominor: simplify
Aleksey Kladov [Fri, 17 Sep 2021 20:31:37 +0000 (23:31 +0300)]
minor: simplify

2 years agominor: cleanup
Aleksey Kladov [Fri, 17 Sep 2021 20:27:26 +0000 (23:27 +0300)]
minor: cleanup

2 years agoMerge #10265
bors[bot] [Fri, 17 Sep 2021 19:27:32 +0000 (19:27 +0000)]
Merge #10265

10265: internal: parser cleanups r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 years agominor: simplify
Aleksey Kladov [Fri, 17 Sep 2021 19:26:39 +0000 (22:26 +0300)]
minor: simplify

2 years agointernal: more local parsing tests for macros
Aleksey Kladov [Fri, 17 Sep 2021 19:21:07 +0000 (22:21 +0300)]
internal: more local parsing tests for macros

2 years agointernal: more focused parsing tests
Aleksey Kladov [Fri, 17 Sep 2021 19:15:12 +0000 (22:15 +0300)]
internal: more focused parsing tests

2 years agointernal: more local test for mod item
Aleksey Kladov [Fri, 17 Sep 2021 18:53:24 +0000 (21:53 +0300)]
internal: more local test for mod item

2 years agointernal: more local parsing tests
Aleksey Kladov [Fri, 17 Sep 2021 18:49:01 +0000 (21:49 +0300)]
internal: more local parsing tests

2 years agointernal: parser cleanups
Aleksey Kladov [Fri, 17 Sep 2021 18:40:28 +0000 (21:40 +0300)]
internal: parser cleanups

2 years agoMerge #10260
bors[bot] [Fri, 17 Sep 2021 18:35:36 +0000 (18:35 +0000)]
Merge #10260

10260: fix: fix names generation in `Generate function` r=Veykril a=iDawer

- Improve fn name computation (close #10176).
- Handle tuple indexing expressions in argument position (should close  #10241)

Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com>
2 years agoMerge #10264
bors[bot] [Fri, 17 Sep 2021 18:28:55 +0000 (18:28 +0000)]
Merge #10264

10264: fix: Don't seek outside of character boundaries in completion handler r=Veykril a=iDawer

Fixes #10219 panic when entering `:` in `$0` places:
```rust
fn main() {
    "⊞$0";
}
```

```rust
struct S {
    Đ´$0 u8
}
```

Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com>
2 years agofix completion handler trying to seek outside of character boundaries.
Dawer [Fri, 17 Sep 2021 18:04:20 +0000 (23:04 +0500)]
fix completion handler trying to seek outside of character boundaries.

With this patch, in these examples
```rust
fn main() {
    "⊞$0";
}
```

```rust
struct S {
Đ´$0 u8
}
```
entering ':' character in `$0` places shouldn't cause panics.

2 years agoMerge #10257
bors[bot] [Thu, 16 Sep 2021 21:04:42 +0000 (21:04 +0000)]
Merge #10257

10257: assists: turn while into loop r=Veykril a=agluszak

Implements an assist to turn a `while` loop into a `loop` loop, as requested in #10214.
I'm not sure sure what the guidelines are regarding naming assists convert_x_to_y vs replace_x_with_y.

This is my first commit to rust-analyzer :D Thank you `@matklad` for your awesome Explaining rust-analyzer series <3

Closes #10214

Co-authored-by: Andrzej GĹ‚uszak <gluszak.andrzej@gmail.com>
2 years agoassists: turn while into loop
Andrzej GĹ‚uszak [Thu, 16 Sep 2021 13:36:44 +0000 (15:36 +0200)]
assists: turn while into loop

2 years agoHandle tuple indexing expression in argument position in `Generate function`
Dawer [Thu, 16 Sep 2021 18:45:41 +0000 (23:45 +0500)]
Handle tuple indexing expression in argument position in `Generate function`

2 years agoImrove fn name computation in `Generate function`
Dawer [Thu, 16 Sep 2021 16:03:37 +0000 (21:03 +0500)]
Imrove fn name computation in `Generate function`

2 years agoMerge #10254
bors[bot] [Thu, 16 Sep 2021 05:27:24 +0000 (05:27 +0000)]
Merge #10254

10254: Fix a comment typo in autoderef.rs r=lnicola a=teor2345

There's a minor typo in a comment in autoderef.rs, although the meaning is clear if your pronounce the words out loud

Co-authored-by: teor <teor@riseup.net>
2 years agoMerge #10251
bors[bot] [Thu, 16 Sep 2021 05:19:38 +0000 (05:19 +0000)]
Merge #10251

10251: Fix typescript syntax errors r=lnicola a=Wilfred

Remove unwanted `:` and fix the naming of the boolean type.

Co-authored-by: Wilfred Hughes <me@wilfred.me.uk>
2 years agoFix a comment typo in autoderef.rs
teor [Thu, 16 Sep 2021 03:47:01 +0000 (13:47 +1000)]
Fix a comment typo in autoderef.rs

2 years agoFix typescript syntax errors
Wilfred Hughes [Thu, 16 Sep 2021 00:53:36 +0000 (17:53 -0700)]
Fix typescript syntax errors

Remove unwanted `:` and fix the naming of the boolean type.

2 years agoMerge #10250
bors[bot] [Thu, 16 Sep 2021 00:26:32 +0000 (00:26 +0000)]
Merge #10250

10250: internal: Improve call_hierarchy and incoming/outgoing_calls r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoImprove call_hierarchy and incoming/outgoing_calls
Lukas Wirth [Thu, 16 Sep 2021 00:25:02 +0000 (02:25 +0200)]
Improve call_hierarchy and incoming/outgoing_calls

2 years agoMerge #10248
bors[bot] [Wed, 15 Sep 2021 18:23:46 +0000 (18:23 +0000)]
Merge #10248

10248: internal: remove dead code r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 years agointernal: remove dead code
Aleksey Kladov [Wed, 15 Sep 2021 18:22:06 +0000 (21:22 +0300)]
internal: remove dead code

2 years agoMerge #10048
bors[bot] [Wed, 15 Sep 2021 18:13:09 +0000 (18:13 +0000)]
Merge #10048

10048: fix: correctly complete macro call if cursor at `!` r=Veykril a=unexge

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

Co-authored-by: unexge <unexge@gmail.com>
2 years agoMerge #10233
bors[bot] [Wed, 15 Sep 2021 16:36:33 +0000 (16:36 +0000)]
Merge #10233

10233: fix: add multi-token mapping support to hovers r=Veykril a=spookyvision

implement #10070 in [`hover`](https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs)

Co-authored-by: Anatol Ulrich <anatol.ulrich@ferrous-systems.com>
2 years agoadd multi-token mappings for hover
Anatol Ulrich [Wed, 15 Sep 2021 16:05:48 +0000 (18:05 +0200)]
add multi-token mappings for hover

2 years ago# This is a combination of 3 commits.
Anatol Ulrich [Tue, 14 Sep 2021 02:01:21 +0000 (04:01 +0200)]
# This is a combination of 3 commits.
# This is the 1st commit message:

add multi-token mappings for hover

# The commit message #2 will be skipped:

# make fallback an Option instead of vec

# The commit message #3 will be skipped:

# fix indentation

2 years agoMerge #10247
bors[bot] [Wed, 15 Sep 2021 14:29:55 +0000 (14:29 +0000)]
Merge #10247

10247: fix: Don't highlight unsafe traits as unsafe in safe impls r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoDon't highlight unsafe traits as unsafe in safe impls
Lukas Wirth [Wed, 15 Sep 2021 13:46:45 +0000 (15:46 +0200)]
Don't highlight unsafe traits as unsafe in safe impls

2 years agoMerge #10240
bors[bot] [Tue, 14 Sep 2021 18:31:59 +0000 (18:31 +0000)]
Merge #10240

10240: internal: Revert attributed items inlay hints r=Veykril a=Veykril

Reverts #10231 as the implementation there is actually wrong
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoRevert attributed items inlay hints
Lukas Wirth [Tue, 14 Sep 2021 18:30:28 +0000 (20:30 +0200)]
Revert attributed items inlay hints

2 years agoMerge #10237
bors[bot] [Tue, 14 Sep 2021 16:30:41 +0000 (16:30 +0000)]
Merge #10237

10237: fix: Do not wrap inlined local in parens when at block tail position r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agofix: Do not wrap inlined local in parens when at block tail position
Lukas Wirth [Tue, 14 Sep 2021 16:29:34 +0000 (18:29 +0200)]
fix: Do not wrap inlined local in parens when at block tail position

2 years agoMerge #10232
bors[bot] [Tue, 14 Sep 2021 12:54:00 +0000 (12:54 +0000)]
Merge #10232

10232: internal: Add more tests for ide functionality in attributed items r=Veykril a=Veykril

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

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agofix source_to_def trying to use attribute macro calls as containers
Lukas Wirth [Tue, 14 Sep 2021 12:41:38 +0000 (14:41 +0200)]
fix source_to_def trying to use attribute macro calls as containers

2 years agoPick smaller node ancestors first when descending at offset
Lukas Wirth [Tue, 14 Sep 2021 12:09:52 +0000 (14:09 +0200)]
Pick smaller node ancestors first when descending at offset

2 years agoAdd some more attribute ide tests
Lukas Wirth [Tue, 14 Sep 2021 01:00:53 +0000 (03:00 +0200)]
Add some more attribute ide tests

2 years agofix: Use original definition ranges for ide_db::search instead of the expanded ranges
Lukas Wirth [Tue, 14 Sep 2021 00:49:06 +0000 (02:49 +0200)]
fix: Use original definition ranges for ide_db::search instead of the expanded ranges

2 years agoMerge #10204
bors[bot] [Tue, 14 Sep 2021 00:41:17 +0000 (00:41 +0000)]
Merge #10204

10204: feat: Show the type of what is being dereferenced in a deref expression. r=theo-lw a=theo-lw

Addresses issue #10106.

In-progress - I'm trying to figure out why `hover_deref_expr_with_coercion` is failing.

Co-authored-by: Teddy_Wang <wangtheo662@gmail.com>
2 years agoImprove hover over derference message
Teddy_Wang [Tue, 14 Sep 2021 00:19:30 +0000 (20:19 -0400)]
Improve hover over derference message

2 years agoMerge #10231
bors[bot] [Tue, 14 Sep 2021 00:07:50 +0000 (00:07 +0000)]
Merge #10231

10231: feat: Make inlay hints work in attributed items r=Veykril a=Veykril

![image](https://user-images.githubusercontent.com/3757771/133172697-8563329f-e77e-46e4-86ab-99b50040dfd5.png)
Note the lack of chaining hints, this is currently due to macro expansion lacking the input whitespace. We might be able to recover this from the input somehow in the future.
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10043
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agofeat: Make inlay hints work in attributed items
Lukas Wirth [Mon, 13 Sep 2021 23:59:45 +0000 (01:59 +0200)]
feat: Make inlay hints work in attributed items

2 years agoFix hover tests
Teddy_Wang [Mon, 13 Sep 2021 23:47:53 +0000 (19:47 -0400)]
Fix hover tests

2 years agoMerge #10230
bors[bot] [Mon, 13 Sep 2021 23:24:33 +0000 (23:24 +0000)]
Merge #10230

10230: fix: fix expansion order for fn-like macros and attributes in token descending r=Veykril a=Veykril

Second attempt(now with a test đźŽ‰).
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10115

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoEnable attribte macros in ide fixtures
Lukas Wirth [Mon, 13 Sep 2021 23:23:08 +0000 (01:23 +0200)]
Enable attribte macros in ide fixtures

2 years agofix: fix expansion order for fn-like macros and attributes in token descending
Lukas Wirth [Mon, 13 Sep 2021 23:20:43 +0000 (01:20 +0200)]
fix: fix expansion order for fn-like macros and attributes in token descending

2 years agoFix spelling
Teddy_Wang [Mon, 13 Sep 2021 23:16:10 +0000 (19:16 -0400)]
Fix spelling

2 years agoMerge #10229
bors[bot] [Mon, 13 Sep 2021 22:31:39 +0000 (22:31 +0000)]
Merge #10229

10229: fix: do not complete builtin attributes for qualified paths r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agofix: do not complete builtin attributes for qualified paths
Lukas Wirth [Mon, 13 Sep 2021 22:31:14 +0000 (00:31 +0200)]
fix: do not complete builtin attributes for qualified paths

2 years agoMerge #10126
bors[bot] [Mon, 13 Sep 2021 22:22:08 +0000 (22:22 +0000)]
Merge #10126

10126: feat: Speculatively expand attributes in completions r=Veykril a=Veykril

![j1OjBt5Nca](https://user-images.githubusercontent.com/3757771/133163858-91930072-1441-4ce4-9979-b0ad2727b47f.gif)

Fixes #9866

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoExclude test file from rust tidy check
Lukas Wirth [Mon, 13 Sep 2021 22:21:16 +0000 (00:21 +0200)]
Exclude test file from rust tidy check

2 years agoDownmap the token in attribute inputs when expanding speculatively
Lukas Wirth [Mon, 13 Sep 2021 22:04:04 +0000 (00:04 +0200)]
Downmap the token in attribute inputs when expanding speculatively

2 years agoMerge #10199
bors[bot] [Mon, 13 Sep 2021 18:14:20 +0000 (18:14 +0000)]
Merge #10199

10199: fix: Fix Cargo.toml change detection r=lnicola a=lnicola

Maybe fixes #9546

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 years agoShuffle code around to avoid an allocation
Laurențiu Nicola [Mon, 13 Sep 2021 17:58:09 +0000 (20:58 +0300)]
Shuffle code around to avoid an allocation

2 years agoSpeculatively expand attributes in completions
Lukas Wirth [Thu, 2 Sep 2021 16:54:09 +0000 (18:54 +0200)]
Speculatively expand attributes in completions

2 years agoMerge #10225
bors[bot] [Mon, 13 Sep 2021 17:07:23 +0000 (17:07 +0000)]
Merge #10225

10225: internal: Add proc-macro fixture directive r=Veykril a=Veykril

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoMerge #10226
bors[bot] [Mon, 13 Sep 2021 16:51:37 +0000 (16:51 +0000)]
Merge #10226

10226: minor: Simplify r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoSimplify
Lukas Wirth [Mon, 13 Sep 2021 16:50:19 +0000 (18:50 +0200)]
Simplify

2 years agoAdd proc-macro fixture directive
Lukas Wirth [Mon, 13 Sep 2021 16:30:04 +0000 (18:30 +0200)]
Add proc-macro fixture directive

2 years agoFix Cargo.toml change detection
Laurențiu Nicola [Fri, 10 Sep 2021 16:34:47 +0000 (19:34 +0300)]
Fix Cargo.toml change detection

2 years agoMerge #10222
bors[bot] [Mon, 13 Sep 2021 11:52:29 +0000 (11:52 +0000)]
Merge #10222

10222: internal: Add workaround for rename error reporting r=lnicola a=lnicola

Fixes #9875

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 years agoAdd workaround for rename error reporting
Laurențiu Nicola [Mon, 13 Sep 2021 11:46:29 +0000 (14:46 +0300)]
Add workaround for rename error reporting

2 years agoMerge #10221
bors[bot] [Mon, 13 Sep 2021 11:23:43 +0000 (11:23 +0000)]
Merge #10221

10221: internal: prevent possible bugs when adding magical comments r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 years agointernal: document tribal knowledge of how to assist
Aleksey Kladov [Mon, 13 Sep 2021 11:19:10 +0000 (14:19 +0300)]
internal: document tribal knowledge of how to assist

2 years agointernal: prevent possible bugs when adding magical comments
Aleksey Kladov [Mon, 13 Sep 2021 10:43:13 +0000 (13:43 +0300)]
internal: prevent possible bugs when adding magical comments

2 years agointernal: simplify
Aleksey Kladov [Mon, 13 Sep 2021 10:35:31 +0000 (13:35 +0300)]
internal: simplify

2 years agointernal: fix bugs in tests by simplifying code
Aleksey Kladov [Mon, 13 Sep 2021 10:28:00 +0000 (13:28 +0300)]
internal: fix bugs in tests by simplifying code

2 years agominore: improve readability
Aleksey Kladov [Mon, 13 Sep 2021 09:34:05 +0000 (12:34 +0300)]
minore: improve readability

Tuples are hard to understand

2 years agoMerge #10218
bors[bot] [Mon, 13 Sep 2021 07:58:28 +0000 (07:58 +0000)]
Merge #10218

10218: minor: Don't spam the manual with warnings r=lnicola a=lnicola

A single warning on the first line should™ be enough. Currently we put that warning on every section, while also breaking the table of contents in the process:

![image](https://user-images.githubusercontent.com/308347/133045747-5232ce04-7856-40fd-a82f-adcefb7a6f5a.png)

Fixes #9657

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 years agoDon't spam the manual with warnings
Laurențiu Nicola [Mon, 13 Sep 2021 07:56:14 +0000 (10:56 +0300)]
Don't spam the manual with warnings

2 years agoMerge #10215
bors[bot] [Sun, 12 Sep 2021 21:21:21 +0000 (21:21 +0000)]
Merge #10215

10215: Use correct file syntax node for decl_access computation in find_all_refs r=Veykril a=Veykril

Defs and refs of locals only ever life in one file, this isn't true for fields though.
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10201

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 years agoUse correct file syntax node for decl_access computation in find_all_refs
Lukas Wirth [Sun, 12 Sep 2021 21:12:08 +0000 (23:12 +0200)]
Use correct file syntax node for decl_access computation in find_all_refs

2 years agoMerge #10213
bors[bot] [Sun, 12 Sep 2021 12:23:56 +0000 (12:23 +0000)]
Merge #10213

10213: minor: Improve resilience of match checking r=flodiebold a=iDawer

In bug condition the match checking strives to recover giving false no-error diagnostic.

Suggested in https://github.com/rust-analyzer/rust-analyzer/pull/9105#discussion_r644656085

Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com>
2 years agoImprove resilience of match checking
Dawer [Sun, 12 Sep 2021 11:03:12 +0000 (16:03 +0500)]
Improve resilience of match checking

In bug condition the match checking strives to recover giving false no-error diagnostic.

2 years agoMerge #10212
bors[bot] [Sun, 12 Sep 2021 08:55:17 +0000 (08:55 +0000)]
Merge #10212

10212: fix: Avoid type inference panic on bitslice methods r=flodiebold a=flodiebold

Should fix #10090, fix #10046, and fix #10179.
This is only a workaround, but the proper fix requires some bigger
refactoring (also related to fixing #10058), and this at least prevents
the crash.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2 years agoAvoid type inference panic on bitslice methods
Florian Diebold [Sun, 12 Sep 2021 08:41:30 +0000 (10:41 +0200)]
Avoid type inference panic on bitslice methods

Should fix #10090, #10046, #10179.
This is only a workaround, but the proper fix requires some bigger
refactoring (also related to fixing #10058), and this at least prevents
the crash.

2 years agoMerge #10202
bors[bot] [Sun, 12 Sep 2021 07:54:56 +0000 (07:54 +0000)]
Merge #10202

10202: fix: Type param hover shows correct sized bounds. r=flodiebold a=iDawer

Closes  #9949

This adds implicit `: Sized` bound to type parameters at lowering step.

Hovering on type parameter does not show it's `: Sized` bound be it set explicitly or implicitly. This is because it doesn't track that the bound was set implicitly.

### Perf

```rust
./target/rust-analyzer-baseline-3dae94bf -q analysis-stats --memory-usage .
Database loaded:     4.51s, 311minstr, 110mb (metadata 1.08s, 22minstr, 743kb; build 3.20s, 8730kinstr, -237kb)
  crates: 38, mods: 770, decls: 17173, fns: 12835
Item Collection:     29.63s, 85ginstr, 372mb
  exprs: 353460, ??ty: 364 (0%), ?ty: 232 (0%), !ty: 144
Inference:           118.25s, 284ginstr, 601mb
Total:               147.88s, 370ginstr, 973mb

./target/rust-analyzer-hover-ty-param-dfb15292 -q analysis-stats --memory-usage .
Database loaded:     4.53s, 311minstr, 110mb (metadata 1.10s, 22minstr, 743kb; build 3.20s, 8672kinstr, -189kb)
  crates: 38, mods: 770, decls: 17173, fns: 12835
Item Collection:     29.59s, 85ginstr, 372mb
  exprs: 353460, ??ty: 364 (0%), ?ty: 232 (0%), !ty: 144
Inference:           121.69s, 296ginstr, 601mb
Total:               151.28s, 382ginstr, 974mb

```

Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com>
2 years agoMerge #10210
bors[bot] [Sat, 11 Sep 2021 17:49:55 +0000 (17:49 +0000)]
Merge #10210

10210: minor: make code clearer with ControlFlow r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 years agominor: make code clearer with ControlFlow
Aleksey Kladov [Sat, 11 Sep 2021 17:49:10 +0000 (20:49 +0300)]
minor: make code clearer with ControlFlow

2 years agoMerge #10207
bors[bot] [Sat, 11 Sep 2021 15:46:36 +0000 (15:46 +0000)]
Merge #10207

10207: minor: improve readability r=matklad a=matklad

It's important that module interface doesn't depend on features. Better
hide features in bodies.

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 years agominor: improve readability
Aleksey Kladov [Sat, 11 Sep 2021 15:42:38 +0000 (18:42 +0300)]
minor: improve readability

It's important that module interface doesn't depend on features. Better
hide features in bodies.

2 years agoFix tests by importing core::ops::Deref
Teddy_Wang [Sat, 11 Sep 2021 15:40:16 +0000 (11:40 -0400)]
Fix tests by importing core::ops::Deref

2 years agoMerge #10206
bors[bot] [Sat, 11 Sep 2021 15:40:04 +0000 (15:40 +0000)]
Merge #10206

10206: internal: Remove unused dependencies r=lnicola a=gilescope

cargo check --all-targets compiles cleanly without these dependencies for me.

Co-authored-by: Giles Cope <gilescope@gmail.com>
2 years agoremoving seemingly unused dev deps.
Giles Cope [Sat, 11 Sep 2021 15:26:36 +0000 (16:26 +0100)]
removing seemingly unused dev deps.

2 years agoremove unused deps
Giles Cope [Sat, 11 Sep 2021 15:20:04 +0000 (16:20 +0100)]
remove unused deps

2 years agominor: fix tests.
Dawer [Fri, 10 Sep 2021 18:02:37 +0000 (23:02 +0500)]
minor: fix tests.

2 years agofix: Type param hover shows correct sized bounds.
Dawer [Fri, 10 Sep 2021 15:48:39 +0000 (20:48 +0500)]
fix: Type param hover shows correct sized bounds.

2 years agointernal: add implicit `: Sized` bound to type parameters.
Dawer [Tue, 7 Sep 2021 07:36:15 +0000 (12:36 +0500)]
internal: add implicit `: Sized` bound to type parameters.

2 years agoMerge #10177
bors[bot] [Fri, 10 Sep 2021 14:14:02 +0000 (14:14 +0000)]
Merge #10177

10177: fix: Treat path dependencies like workspace members r=jonas-schievink a=jonas-schievink

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

Fixes diagnostics not showing up in path dependencies.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 years agoAdd tests. The tests with coercion fail, but I have no clue why.
Teddy_Wang [Fri, 10 Sep 2021 03:31:13 +0000 (23:31 -0400)]
Add tests. The tests with coercion fail, but I have no clue why.

2 years agoMerge #10193
bors[bot] [Thu, 9 Sep 2021 19:34:39 +0000 (19:34 +0000)]
Merge #10193

10193: fix: fix type mismatches with `panic!()` on Rust 1.55.0 r=jonas-schievink a=jonas-schievink

This addresses the regression mentioned in https://github.com/rust-analyzer/rust-analyzer/issues/8961#issuecomment-916332702

(no test because https://github.com/rust-analyzer/rust-analyzer/issues/10192 makes that rather hard, but I've checked that the analysis-stats are back to normal)

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 years agoSupport the new `rustc_builtin_macro` syntax
Jonas Schievink [Thu, 9 Sep 2021 19:32:41 +0000 (21:32 +0200)]
Support the new `rustc_builtin_macro` syntax

2 years agoMerge #10190
bors[bot] [Thu, 9 Sep 2021 18:13:26 +0000 (18:13 +0000)]
Merge #10190

10190: minor: Bump deps r=lnicola a=lnicola

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 years agoBump chalk
Laurențiu Nicola [Thu, 9 Sep 2021 18:12:38 +0000 (21:12 +0300)]
Bump chalk

2 years agoBump deps
Laurențiu Nicola [Thu, 9 Sep 2021 18:09:57 +0000 (21:09 +0300)]
Bump deps

2 years agoMerge #10188
bors[bot] [Thu, 9 Sep 2021 15:07:43 +0000 (15:07 +0000)]
Merge #10188

10188: fix: add multi-token mapping support to runnables r=jonas-schievink a=lnicola

Closes #10184

changelog fix (first contribution) add multi-token mapping support to runnables

Co-authored-by: Anatol Ulrich <anatol.ulrich@ferrous-systems.com>