Skip to content

Commit 2ceb614

Browse files
committed
Changelog #183
1 parent 19bbbaa commit 2ceb614

File tree

4 files changed

+74
-15
lines changed

4 files changed

+74
-15
lines changed

generated_assists.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,6 +2727,23 @@ fn handle(action: Action) {
27272727
```
27282728

27292729

2730+
[discrete]
2731+
=== `replace_named_generic_with_impl`
2732+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_named_generic_with_impl.rs#L15[replace_named_generic_with_impl.rs]
2733+
2734+
Replaces named generic with an `impl Trait` in function argument.
2735+
2736+
.Before
2737+
```rust
2738+
fn new<P┃: AsRef<Path>>(location: P) -> Self {}
2739+
```
2740+
2741+
.After
2742+
```rust
2743+
fn new(location: impl AsRef<Path>) -> Self {}
2744+
```
2745+
2746+
27302747
[discrete]
27312748
=== `replace_qualified_name_with_use`
27322749
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_qualified_name_with_use.rs#L13[replace_qualified_name_with_use.rs]

generated_diagnostic.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ This diagnostic is triggered when the type of an expression or pattern does not
131131
the expected type.
132132

133133

134+
=== typed-hole
135+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/typed_hole.rs#L12[typed_hole.rs]
136+
137+
This diagnostic is triggered when an underscore expression is used in an invalid position.
138+
139+
134140
=== undeclared-label
135141
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/undeclared_label.rs#L3[undeclared_label.rs]
136142

@@ -211,6 +217,6 @@ enable support for procedural macros (see `rust-analyzer.procMacro.attributes.en
211217

212218

213219
=== unused-mut
214-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mutability_errors.rs#L39[mutability_errors.rs]
220+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mutability_errors.rs#L42[mutability_errors.rs]
215221

216222
This diagnostic is triggered when a mutable variable isn't actually mutated.

manual.adoc

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $ cargo xtask install --server
172172
If your editor can't find the binary even though the binary is on your `$PATH`, the likely explanation is that it doesn't see the same `$PATH` as the shell, see https://github.com/rust-lang/rust-analyzer/issues/1811[this issue].
173173
On Unix, running the editor from a shell or changing the `.desktop` file to set the environment should help.
174174

175-
==== `rustup`
175+
==== rustup
176176

177177
`rust-analyzer` is available in `rustup`:
178178

@@ -181,19 +181,6 @@ On Unix, running the editor from a shell or changing the `.desktop` file to set
181181
$ rustup component add rust-analyzer
182182
----
183183

184-
However, in contrast to `component add clippy` or `component add rustfmt`, this does not actually place a `rust-analyzer` binary in `~/.cargo/bin`, see https://github.com/rust-lang/rustup/issues/2411[this issue]. You can find the path to the binary using:
185-
[source,bash]
186-
----
187-
$ rustup which --toolchain stable rust-analyzer
188-
----
189-
You can link to there from `~/.cargo/bin` or configure your editor to use the full path.
190-
191-
Alternatively you might be able to configure your editor to start `rust-analyzer` using the command:
192-
[source,bash]
193-
----
194-
$ rustup run stable rust-analyzer
195-
----
196-
197184
==== Arch Linux
198185

199186
The `rust-analyzer` binary can be installed from the repos or AUR (Arch User Repository):
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
= Changelog #183
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:505fd09f9e020b096d014e68b667268e743c2dd6[] +
7+
Release: release:2023-05-29[] (`v0.3.1533`)
8+
9+
== New Features
10+
11+
* pr:14866[] (first contribution) add Markdown syntax highlighting to doc-comments in VS Code:
12+
+
13+
image::https://user-images.githubusercontent.com/1593486/239751755-c84f2e83-faea-47ca-853d-3728a07b2b66.png["Screenshot showing Markdown highlighting in a block comment"]
14+
* pr:14849[] implement symbol search by alias:
15+
+
16+
image::https://user-images.githubusercontent.com/20956650/241207491-f2d13661-3cd5-4779-b40f-56e6d3efdef1.gif["Screen recording of symbol search including aliases"]
17+
* pr:14816[] add assist to replace a named generic parameter with impl trait:
18+
+
19+
video::https://user-images.githubusercontent.com/308347/241656231-9724e2bc-570b-43eb-b0fa-1895e3c02394.mp4[options=loop]
20+
* pr:14916[] add diagnostic for incorrect `_` expressions:
21+
+
22+
image::https://user-images.githubusercontent.com/308347/241656740-4527db7f-d14b-454e-890a-abe874ff4437.png["Screenshot of an error on `let _s: String = _;"]
23+
24+
== Fixes
25+
26+
* pr:14752[] (first contribution) fix indentation in `generate_derive`, `add_missing_impl_members` and `add_missing_default_members`.
27+
* pr:14878[] implement `${count()}` metavariable expressions.
28+
* pr:14872[] introduce new type variable when expectation for ref pattern is not a reference.
29+
* pr:14891[], pr:14897[] evaluate `UnevaluatedConst` during unification.
30+
* pr:14913[] evaluate `UnevaluatedConst` before trait solving.
31+
* pr:14890[] use `::core` instead of `$crate` in `option_env!` expansion.
32+
* pr:14893[] fix `need-mut` false positive in closure capture of match scrutinee.
33+
* pr:14874[] change how `#![cfg(FALSE)]` behaves on crate root.
34+
* pr:14895[] don't try to determine type of token inside macro calls.
35+
* pr:14904[] render size, align and offset hover values in hex.
36+
* pr:14906[] add a toggle to disable the dependency explorer.
37+
* pr:14910[] filter out unused cargo features from config.
38+
39+
== Internal Improvements
40+
41+
* pr:14894[] (first contribution) allow overriding the SCIP output path.
42+
* pr:14914[] (first contribution) update outdated `rustup` installation instructions.
43+
* pr:14859[] specify thread types using Quality of Service API.
44+
* pr:14880[] remove double lookups from `Interned`.
45+
* pr:14881[] replace `Display` impl for `Name` to support interning.
46+
* pr:14889[] add context to "overly long loop" message.
47+
* pr:14901[] move flycheck and config errors to status notification.
48+
* pr:14909[] run CI on nightly rust when `proc-macro-*` crates change.
49+
* pr:14755[] fix a TODO and some Clippy lints.

0 commit comments

Comments
 (0)