Skip to content

Commit 6fa17e0

Browse files
committed
Changelog #193
1 parent 5ef9caa commit 6fa17e0

File tree

3 files changed

+65
-4
lines changed

3 files changed

+65
-4
lines changed

generated_assists.adoc

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn main() {
7373

7474
[discrete]
7575
=== `add_impl_default_members`
76-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L51[add_missing_impl_members.rs]
76+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L55[add_missing_impl_members.rs]
7777

7878
Adds scaffold for overriding default impl members.
7979

@@ -110,7 +110,7 @@ impl Trait for () {
110110

111111
[discrete]
112112
=== `add_impl_missing_members`
113-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L10[add_missing_impl_members.rs]
113+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L13[add_missing_impl_members.rs]
114114

115115
Adds scaffold for required impl members.
116116

@@ -680,7 +680,7 @@ impl Point {
680680

681681
[discrete]
682682
=== `convert_two_arm_bool_match_to_matches_macro`
683-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_two_arm_bool_match_to_matches_macro.rs#L5[convert_two_arm_bool_match_to_matches_macro.rs]
683+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_two_arm_bool_match_to_matches_macro.rs#L8[convert_two_arm_bool_match_to_matches_macro.rs]
684684

685685
Convert 2-arm match that evaluates to a boolean into the equivalent matches! invocation.
686686

@@ -2593,6 +2593,28 @@ fn main() {
25932593
```
25942594

25952595

2596+
[discrete]
2597+
=== `remove_unused_imports`
2598+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/remove_unused_imports.rs#L15[remove_unused_imports.rs]
2599+
2600+
Removes any use statements in the current selection that are unused.
2601+
2602+
.Before
2603+
```rust
2604+
struct X();
2605+
mod foo {
2606+
use super::X┃;
2607+
}
2608+
```
2609+
2610+
.After
2611+
```rust
2612+
struct X();
2613+
mod foo {
2614+
}
2615+
```
2616+
2617+
25962618
[discrete]
25972619
=== `remove_unused_param`
25982620
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/remove_unused_param.rs#L15[remove_unused_param.rs]

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ This is the same as `Go to Definition` with the following exceptions:
275275

276276

277277
=== Go to Definition
278-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L14[goto_definition.rs]
278+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L17[goto_definition.rs]
279279

280280
Navigates to the definition of an identifier.
281281

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
= Changelog #193
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:baee6b338b0ea076cd7a9f18d47f175dd2ba0e5d[] +
7+
Release: release:2023-08-07[] (`v0.3.1615`)
8+
9+
== New Features
10+
11+
* pr:14723[] (first contribution) add "Remove unused imports" assist:
12+
+
13+
video::https://user-images.githubusercontent.com/308347/258729961-f0d36dfb-dd56-4e5c-b4fc-806e5c560d29.mp4[options=loop]
14+
15+
== Fixes
16+
17+
* pr:15361[] expand eager macros to delimited comma-separated expression list.
18+
* pr:15366[] remove faulty unwrap in eager macro expansion.
19+
* pr:15367[] strip unused token ids from eager macro input token maps.
20+
* pr:15380[] fix unsized struct problems in MIR eval.
21+
* pr:15348[] exclude non-identifier aliases from completions.
22+
* pr:15050[] skip ``#[doc(hidden)]`` methods in "Implement default members" and "Convert `+#[derive]+` to manual impl".
23+
* pr:15376[] make "Convert `match` to ``matches!``" assist trigger on non-literal bool arms.
24+
* pr:15345[] don't provide `add_missing_match_arms` assist when up-mapping match arm list failed.
25+
* pr:15397[] remove unwraps from "Generate delegate trait".
26+
* pr:15406[] don't provide `generate_default_from_new` when impl self type is missing.
27+
* pr:15391[] set the default status bar button action to "Open logs".
28+
* pr:15392[] use the warning color when server is stopped.
29+
30+
== Internal Improvements
31+
32+
* pr:15373[] (first contribution) desugar `while` to `loop` and `break`.
33+
* pr:15390[] improve MIR interpreter performance by caching.
34+
* pr:15269[] defer structured snippet rendering to allow escaping snippet bits.
35+
* pr:15377[] record extern crate declarations in the HIR.
36+
* pr:15401[] turn unresolved proc macro expansions into missing expressions.
37+
* pr:15378[] rename `Import` to `Use` in `hir-def`, add unused placeholder variants for `UseId`.
38+
* pr:15393[] qualify parameters by the containing function in SCIP.
39+
* pr:15358[] add triagebot `no-merges` config.

0 commit comments

Comments
 (0)