Skip to content

Commit 87f5ce0

Browse files
committed
Changelog #158
1 parent 64ccb47 commit 87f5ce0

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

generated_assists.adoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,6 +1946,40 @@ fn apply<T, U, F>(f: F, x: T) -> U where F: FnOnce(T) -> U {
19461946
```
19471947

19481948

1949+
[discrete]
1950+
=== `move_const_to_impl`
1951+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/move_const_to_impl.rs#L17[move_const_to_impl.rs]
1952+
1953+
Move a local constant item in a method to impl's associated constant. All the references will be
1954+
qualified with `Self::`.
1955+
1956+
.Before
1957+
```rust
1958+
struct S;
1959+
impl S {
1960+
fn foo() -> usize {
1961+
/// The answer.
1962+
const C┃: usize = 42;
1963+
1964+
C * C
1965+
}
1966+
}
1967+
```
1968+
1969+
.After
1970+
```rust
1971+
struct S;
1972+
impl S {
1973+
/// The answer.
1974+
const C: usize = 42;
1975+
1976+
fn foo() -> usize {
1977+
Self::C * Self::C
1978+
}
1979+
}
1980+
```
1981+
1982+
19491983
[discrete]
19501984
=== `move_format_string_arg`
19511985
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/move_format_string_arg.rs#L13[move_format_string_arg.rs]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
= Changelog #158
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:a2beeb8dbb5f4596f8c6f28a09c20355ea4c4628[] +
6+
Release: release:2022-12-05[]
7+
8+
== New Features
9+
10+
* pr:13690[] implement vararg parameter type inference.
11+
* pr:13707[] add `move_const_to_impl` assist:
12+
+
13+
video::https://user-images.githubusercontent.com/308347/205634280-3d75b7a2-643a-43b1-b038-d73bdc01e639.mp4[options=loop]
14+
15+
== Fixes
16+
17+
* pr:13686[] (first contribution) don't show runnable code lenses in libraries outside of the workspace.
18+
* pr:13713[] (first contribution) don't show implementing methods in call hierarchy.
19+
* pr:13696[] make signature help show up when the caret is between `))` or `>>`.
20+
* pr:13717[] handle raw identifiers in proc macro server.
21+
22+
== Internal Improvements
23+
24+
* pr:13697[] version the inlay hint resolve data.
25+
* pr:13721[] add support for `rustc_has_incoherent_inherent_impls`.
26+
* pr:13695[] bump `chalk`.

0 commit comments

Comments
 (0)