Skip to content

Commit 7d23c79

Browse files
committed
Changelog #143
1 parent cfa4a5d commit 7d23c79

5 files changed

Lines changed: 80 additions & 4 deletions

File tree

generated_assists.adoc

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ fn ┃fun_name(n: i32) {
669669
=== `extract_module`
670670
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_module.rs#L30[extract_module.rs]
671671

672-
Extracts a selected region as seperate module. All the references, visibility and imports are
672+
Extracts a selected region as separate module. All the references, visibility and imports are
673673
resolved.
674674

675675
.Before
@@ -1544,7 +1544,7 @@ fn main() {
15441544

15451545
[discrete]
15461546
=== `inline_type_alias`
1547-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_type_alias.rs#L19[inline_type_alias.rs]
1547+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_type_alias.rs#L91[inline_type_alias.rs]
15481548

15491549
Replace a type alias with its concrete type.
15501550

@@ -1567,6 +1567,35 @@ fn main() {
15671567
```
15681568

15691569

1570+
[discrete]
1571+
=== `inline_type_alias_uses`
1572+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_type_alias.rs#L19[inline_type_alias.rs]
1573+
1574+
Inline a type alias into all of its uses where possible.
1575+
1576+
.Before
1577+
```rust
1578+
type ┃A = i32;
1579+
fn id(x: A) -> A {
1580+
x
1581+
};
1582+
fn foo() {
1583+
let _: A = 3;
1584+
}
1585+
```
1586+
1587+
.After
1588+
```rust
1589+
type A = i32;
1590+
fn id(x: i32) -> i32 {
1591+
x
1592+
};
1593+
fn foo() {
1594+
let _: i32 = 3;
1595+
}
1596+
```
1597+
1598+
15701599
[discrete]
15711600
=== `introduce_named_generic`
15721601
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/introduce_named_generic.rs#L8[introduce_named_generic.rs]

generated_config.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ If you're changing this because you're using some tool wrapping
118118
Cargo, you might also want to change
119119
`#rust-analyzer.cargo.buildScripts.overrideCommand#`.
120120

121+
If there are multiple linked projects, this command is invoked for
122+
each of them, with the working directory being the project root
123+
(i.e., the folder containing the `Cargo.toml`).
124+
121125
An example command would be:
122126

123127
```bash
@@ -318,6 +322,12 @@ Whether to show `Run` action. Only applies when
318322
--
319323
Whether to show documentation on hover.
320324
--
325+
[[rust-analyzer.hover.documentation.keywords.enable]]rust-analyzer.hover.documentation.keywords.enable (default: `true`)::
326+
+
327+
--
328+
Whether to show keyword hover popups. Only applies when
329+
`#rust-analyzer.hover.documentation.enable#` is set.
330+
--
321331
[[rust-analyzer.hover.links.enable]]rust-analyzer.hover.links.enable (default: `true`)::
322332
+
323333
--

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Note: `?` and `->` do not currently trigger this behavior in the VSCode editor.
330330

331331

332332
=== Hover
333-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L84[hover.rs]
333+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L85[hover.rs]
334334

335335
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
336336
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.

thisweek/_posts/2022-08-15-changelog-142.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ video::https://user-images.githubusercontent.com/308347/184581800-aafcf12e-30ca-
2626

2727
== Internal Improvements
2828

29-
* pr:12981[] (first contribution) drop imports from the 2021 edition prelude.
29+
* pr:12981[] (first contribution) drop imports from the 2021 Edition prelude.
3030
* pr:13000[] (first contribution) Code: use new id when debugging the extension.
3131
* pr:12951[] document CLI flag stability.
3232
* pr:12974[] fix printing of compound assignment ops.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
= Changelog #143
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:a670ff888437f4b6a3d24cc2996e9f969a87cbae[] +
6+
Release: release:2022-08-22[]
7+
8+
== New Features
9+
10+
* pr:13036[] (first contribution) add `Inline type alias into uses` assist:
11+
+
12+
image::https://user-images.githubusercontent.com/45790125/184905226-9cb8ac81-1439-4387-a13b-e18ad4ecf208.gif[]
13+
* pr:12982[] (first contribution) implement type inference for `IntoFuture`.
14+
* pr:13074[] consider bounds on inherent impl in method resolution (fixes `nalgebra` constructors).
15+
* pr:13063[] add LSP extension for cancelling running flychecks.
16+
* pr:13045[] allow running tests in inline module from anywhere in parent file.
17+
* pr:13037[] support disabling keyword hover popups (`rust-analyzer.hover.documentation.keywords.enable`).
18+
19+
== Fixes
20+
21+
* pr:13049[] resolve associated types of bare `dyn` types.
22+
* pr:13053[] resolve path `Self` alone in value namespace.
23+
* pr:13041[] support `Self::assoc()` syntax in `Generate function`.`
24+
* pr:13061[] replace `Self` in `Inline call`.
25+
* pr:13027[] fix incorrect type mismatch with `cfg_if!` and other macros in expression position.
26+
* pr:13028[] fix record completion filtering.
27+
* pr:13034[] escape keywords used as names in earlier editions.
28+
* pr:13038[] revert pr:12947[], trigger workspace switches on all structure changes again.
29+
* pr:13064[] log `rustfmt` parsing errors as warnings.
30+
31+
== Internal Improvements
32+
33+
* pr:13071[] build release binaries on `ubuntu-20.04`.
34+
* pr:13065[] document interaction of `checkOnSave.overrideCommand` and multiple linked projects.
35+
* pr:13024[] add an HIR pretty-printer.
36+
* pr:13026[] make `resolve_name_in_module` a bit more lazy.
37+
* pr:13044[] fix a bunch of typos.

0 commit comments

Comments
 (0)