Skip to content

Commit 0e6901a

Browse files
committed
Changelog #128
1 parent 6735b1d commit 0e6901a

3 files changed

Lines changed: 55 additions & 14 deletions

File tree

generated_assists.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,40 +2030,40 @@ const test: Foo = Foo {foo: 1, bar: 0}
20302030

20312031

20322032
[discrete]
2033-
=== `reorder_impl`
2034-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/reorder_impl.rs#L11[reorder_impl.rs]
2033+
=== `reorder_impl_items`
2034+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/reorder_impl_items.rs#L11[reorder_impl_items.rs]
20352035

2036-
Reorder the methods of an `impl Trait`. The methods will be ordered
2036+
Reorder the items of an `impl Trait`. The items will be ordered
20372037
in the same order as in the trait definition.
20382038

20392039
.Before
20402040
```rust
20412041
trait Foo {
2042-
fn a() {}
2043-
fn b() {}
2044-
fn c() {}
2042+
type A;
2043+
const B: u8;
2044+
fn c();
20452045
}
20462046

20472047
struct Bar;
20482048
┃impl Foo for Bar {
2049-
fn b() {}
2049+
const B: u8 = 17;
20502050
fn c() {}
2051-
fn a() {}
2051+
type A = String;
20522052
}
20532053
```
20542054

20552055
.After
20562056
```rust
20572057
trait Foo {
2058-
fn a() {}
2059-
fn b() {}
2060-
fn c() {}
2058+
type A;
2059+
const B: u8;
2060+
fn c();
20612061
}
20622062

20632063
struct Bar;
20642064
impl Foo for Bar {
2065-
fn a() {}
2066-
fn b() {}
2065+
type A = String;
2066+
const B: u8 = 17;
20672067
fn c() {}
20682068
}
20692069
```

generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Show function name and docs in parameter hints.
4242
+
4343
--
4444
Automatically refresh project info via `cargo metadata` on
45-
`Cargo.toml` changes.
45+
`Cargo.toml` or `.cargo/config.toml` changes.
4646
--
4747
[[rust-analyzer.cargo.allFeatures]]rust-analyzer.cargo.allFeatures (default: `false`)::
4848
+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
= Changelog #128
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:5d5bbec9b60010dd7389a084c56693baf6bda780[] +
6+
Release: release:2022-05-09[]
7+
8+
== New Features
9+
10+
* pr:12123[] provide `Self` in record literal completion:
11+
+
12+
image::https://user-images.githubusercontent.com/308347/167346272-7e1effe9-ec72-4e62-986a-06c8ff9de016.png[]
13+
* pr:12142[] update `Sort methods by trait definition` assist to sort all associated items:
14+
+
15+
image::https://user-images.githubusercontent.com/38225716/166491828-0bc10dbd-91be-408f-9fe0-636ef5e99377.gif[]
16+
* pr:12157[] lower values of char and byte literals:
17+
+
18+
image::https://user-images.githubusercontent.com/308347/166866713-6430869a-594b-4fe8-bf9e-1bc5c3ce0aa7.png[]
19+
20+
== Fixes
21+
22+
* pr:12093[] (first contribution) reload project on `.cargo/config[.toml]` changes.
23+
* pr:12143[] improve the default constructor mode when filling fields
24+
* pr:12120[] don't show signature help after closing bracket.
25+
* pr:12086[] use RPIT bounds of current function in inference.
26+
* pr:12150[] fix keyword doc links in hover.
27+
* pr:12149[], pr:12177[], pr:12178[], pr:12185[] split float literal tokens at `.` to fix parsing of tuple field accesses.
28+
* pr:12171[] fix inlay hints flashing after being re-enabled due to state invalidation.
29+
* pr:12175[] fix snippets triggering where they shouldn't.
30+
* pr:12188[] allow auto-importing starting segments of use items.
31+
* pr:12134[] fix incorrect double braces in `HirDisplay` implementations.
32+
33+
== Internal Improvements
34+
35+
* pr:12136[] add a `Converter` type for token conversion.
36+
* pr:12159[] lift out macro bang property from completion `PathKind` enum.
37+
* pr:12161[] lift out item list path completions from `(un)qualified_path`.
38+
* pr:12164[], pr:12168[] remove `unqualified_path`, `qualified_path` completions modules.
39+
* pr:12173[] make completion `PathKind` mandatory.
40+
* pr:12174[] improve completion tests by checking that the offset is included in the source_range of items.
41+
* pr:12187[] more completion context refactoring.

0 commit comments

Comments
 (0)