Skip to content

Commit 55f7245

Browse files
committed
Changelog #159
1 parent 2a84def commit 55f7245

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

generated_assists.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,6 +2306,27 @@ impl Walrus {
23062306
```
23072307

23082308

2309+
[discrete]
2310+
=== `remove_parentheses`
2311+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/remove_parentheses.rs#L5[remove_parentheses.rs]
2312+
2313+
Removes redundant parentheses.
2314+
2315+
.Before
2316+
```rust
2317+
fn main() {
2318+
_ = ┃(2) + 2;
2319+
}
2320+
```
2321+
2322+
.After
2323+
```rust
2324+
fn main() {
2325+
_ = 2 + 2;
2326+
}
2327+
```
2328+
2329+
23092330
[discrete]
23102331
=== `remove_unused_param`
23112332
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/remove_unused_param.rs#L15[remove_unused_param.rs]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
= Changelog #159
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:21e61bee8b74e93f14205f4a6c316db08f811e38[] +
6+
Release: release:2022-12-12[]
7+
8+
== New Features
9+
10+
* pr:13733[] add "Remove redundant parentheses" assist:
11+
+
12+
image::https://user-images.githubusercontent.com/38225716/206542898-d6c97468-d615-4c5b-8650-f89b9c0321a0.gif["Screen recording showing how the assist can remove the brackets in `_ = (4 * 2) + 1;`"]
13+
* pr:13725[] resolve associated constants of traits.
14+
* pr:13490[], pr:13745[] compute data layout of types:
15+
+
16+
image::https://user-images.githubusercontent.com/308347/207061768-9350a58b-1093-4380-b082-0736fbf1874a.png["Screenshot showing the size and alignment of a struct containing a `Box`, an `u64`, and two `usize`s"]
17+
+
18+
image::https://user-images.githubusercontent.com/308347/207062585-ab7d2698-6609-42ca-b84a-40c49bb87197.png["Screenshot showing the size and alignment of a field in a struct enum variant"]
19+
* pr:13728[] upgrade `chalk` to make solver fuel work again (works around most trait solving hangs).
20+
21+
== Fixes
22+
23+
* pr:13749[] don't show duplicated adjustment hints for blocks, ``if``s and ``match``es.
24+
* pr:13742[] only shift `BoundVar`s that come from outside lowering context (fixes a crash with GATs).
25+
* pr:13750[] normalize projection after discarding free `BoundVar`s in RPIT (fixes a crash during normalization).
26+
27+
== Internal Improvements
28+
29+
* pr:13722[] add VS Code schema for `rust-project.json`.
30+
* pr:13730[] support built-in derive macro helper attributes.
31+
* pr:13756[] make assoc_resolutions always have a `Substitution`.

0 commit comments

Comments
 (0)