Skip to content

Commit ea9c2ed

Browse files
committed
Changelog #149
1 parent fe810b5 commit ea9c2ed

File tree

4 files changed

+68
-4
lines changed

4 files changed

+68
-4
lines changed

generated_assists.adoc

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ fn apply<T, U, F>(f: F, x: T) -> U where F: FnOnce(T) -> U {
18531853

18541854
[discrete]
18551855
=== `move_format_string_arg`
1856-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/move_format_string_arg.rs#L12[move_format_string_arg.rs]
1856+
**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]
18571857

18581858
Move an expression out of a format string.
18591859

@@ -2774,6 +2774,28 @@ fn foo() -> i32 { 42i32 }
27742774
```
27752775

27762776

2777+
[discrete]
2778+
=== `unwrap_tuple`
2779+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/unwrap_tuple.rs#L8[unwrap_tuple.rs]
2780+
2781+
Unwrap the tuple to different variables.
2782+
2783+
.Before
2784+
```rust
2785+
fn main() {
2786+
┃let (foo, bar) = ("Foo", "Bar");
2787+
}
2788+
```
2789+
2790+
.After
2791+
```rust
2792+
fn main() {
2793+
let foo = "Foo";
2794+
let bar = "Bar";
2795+
}
2796+
```
2797+
2798+
27772799
[discrete]
27782800
=== `wrap_return_type_in_result`
27792801
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type_in_result.rs#L14[wrap_return_type_in_result.rs]

generated_config.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,15 @@ Set this to `"all"` to pass `--all-features` to cargo.
6464
--
6565
Whether to pass `--no-default-features` to cargo.
6666
--
67-
[[rust-analyzer.cargo.noSysroot]]rust-analyzer.cargo.noSysroot (default: `false`)::
67+
[[rust-analyzer.cargo.sysroot]]rust-analyzer.cargo.sysroot (default: `"discover"`)::
6868
+
6969
--
70-
Internal config for debugging, disables loading of sysroot crates.
70+
Relative path to the sysroot, or "discover" to try to automatically find it via
71+
"rustc --print sysroot".
72+
73+
Unsetting this disables sysroot loading.
74+
75+
This option does not take effect until rust-analyzer is restarted.
7176
--
7277
[[rust-analyzer.cargo.target]]rust-analyzer.cargo.target (default: `null`)::
7378
+

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// Generated file, do not edit by hand, see `sourcegen_feature_docs`.
33
=== Annotations
4-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/annotations.rs#L18[annotations.rs]
4+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/annotations.rs#L20[annotations.rs]
55

66
Provides user with annotations above items for looking up references or impl blocks
77
and running/debugging binaries.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
= Changelog #149
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:5c28ad193238635189f849c94ffc178f00008b12[] +
6+
Release: release:2022-10-03[]
7+
8+
== New Features
9+
10+
* pr:13248[] (first contribution) add assist to unwrap tuple declarations:
11+
+
12+
video::https://user-images.githubusercontent.com/308347/193514130-10ca01e8-1962-4663-b694-8443d01a6e95.mp4[options=loop]
13+
* pr:13209[] add type inference for generators.
14+
* pr:13327[] add config for supplying sysroot path.
15+
16+
== Fixes
17+
18+
* pr:13296[] (first contribution) store package instead of crate name in `PackageInformation`.
19+
* pr:13311[] infer `for` loop item type with `IntoIterator` and `Iterator`.
20+
* pr:13275[] use the correct module for visibility computation in `find_path`.
21+
* pr:13189[] emit unconfigured code diagnostics for enum variants and struct/union fields.
22+
* pr:13320[] render generic parameters in type alias hovers.
23+
* pr:13318[] fix annotations not resolving when lens location is set to whole item.
24+
* pr:13321[] make `move_format_string_arg` token tree-aware.
25+
* pr:13324[] fix trait impl item completions using macro file text ranges.
26+
* pr:13326[] do not use the sysroot proc macro server when a server path is given explicitly.
27+
* pr:13328[] add proc-macro dependency to rustc crates.
28+
29+
== Internal Improvements
30+
31+
* pr:13272[] (first contribution) fix `Analysis` and `AnalysisHost` doc links.
32+
* pr:13280[] (first contribution) add `RequestFailed` LSP error code.
33+
* pr:13202[], pr:13319[] don't retry requests that have already been cancelled.
34+
* pr:13237[] aggregate changes by file in `process_changes`.
35+
* pr:13295[] remove obsolete `in-rust-tree` feature from `sourcegen`.
36+
* pr:13300[] use `cfg(any())` instead of `cfg(FALSE)` to disable proc macro tests.
37+
* pr:13301[] make assist tests panic again on empty source changes.

0 commit comments

Comments
 (0)