Skip to content

Commit 42b5577

Browse files
committed
Changelog #184
1 parent 2ceb614 commit 42b5577

File tree

5 files changed

+71
-4
lines changed

5 files changed

+71
-4
lines changed

generated_assists.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2729,7 +2729,7 @@ fn handle(action: Action) {
27292729

27302730
[discrete]
27312731
=== `replace_named_generic_with_impl`
2732-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_named_generic_with_impl.rs#L15[replace_named_generic_with_impl.rs]
2732+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_named_generic_with_impl.rs#L19[replace_named_generic_with_impl.rs]
27332733

27342734
Replaces named generic with an `impl Trait` in function argument.
27352735

generated_config.adoc

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ cargo check --quiet --workspace --message-format=json --all-targets
7171
Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to
7272
avoid checking unnecessary things.
7373
--
74+
[[rust-analyzer.cargo.cfgs]]rust-analyzer.cargo.cfgs (default: `{}`)::
75+
+
76+
--
77+
List of cfg options to enable with the given values.
78+
--
7479
[[rust-analyzer.cargo.extraArgs]]rust-analyzer.cargo.extraArgs (default: `[]`)::
7580
+
7681
--
@@ -120,7 +125,7 @@ Compilation target override (target triple).
120125
[[rust-analyzer.cargo.unsetTest]]rust-analyzer.cargo.unsetTest (default: `["core"]`)::
121126
+
122127
--
123-
Unsets `#[cfg(test)]` for the specified crates.
128+
Unsets the implicit `#[cfg(test)]` for the specified crates.
124129
--
125130
[[rust-analyzer.checkOnSave]]rust-analyzer.checkOnSave (default: `true`)::
126131
+
@@ -423,11 +428,31 @@ Whether to show keyword hover popups. Only applies when
423428
--
424429
Use markdown syntax for links on hover.
425430
--
431+
[[rust-analyzer.hover.memoryLayout.alignment]]rust-analyzer.hover.memoryLayout.alignment (default: `"hexadecimal"`)::
432+
+
433+
--
434+
How to render the align information in a memory layout hover.
435+
--
426436
[[rust-analyzer.hover.memoryLayout.enable]]rust-analyzer.hover.memoryLayout.enable (default: `true`)::
427437
+
428438
--
429439
Whether to show memory layout data on hover.
430440
--
441+
[[rust-analyzer.hover.memoryLayout.niches]]rust-analyzer.hover.memoryLayout.niches (default: `false`)::
442+
+
443+
--
444+
How to render the niche information in a memory layout hover.
445+
--
446+
[[rust-analyzer.hover.memoryLayout.offset]]rust-analyzer.hover.memoryLayout.offset (default: `"hexadecimal"`)::
447+
+
448+
--
449+
How to render the offset information in a memory layout hover.
450+
--
451+
[[rust-analyzer.hover.memoryLayout.size]]rust-analyzer.hover.memoryLayout.size (default: `"both"`)::
452+
+
453+
--
454+
How to render the size information in a memory layout hover.
455+
--
431456
[[rust-analyzer.imports.granularity.enforce]]rust-analyzer.imports.granularity.enforce (default: `false`)::
432457
+
433458
--

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,6 @@ enable support for procedural macros (see `rust-analyzer.procMacro.attributes.en
217217

218218

219219
=== unused-mut
220-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mutability_errors.rs#L42[mutability_errors.rs]
220+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mutability_errors.rs#L43[mutability_errors.rs]
221221

222222
This diagnostic is triggered when a mutable variable isn't actually mutated.

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Note: `?`, `|` and `->` do not currently trigger this behavior in the VSCode edi
334334

335335

336336
=== Hover
337-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L82[hover.rs]
337+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L97[hover.rs]
338338

339339
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
340340
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
= Changelog #184
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:2f1b7cedcf5044ba620646c6758bbb99f46b8d95[] +
7+
Release: release:2023-06-05[] (`v0.3.1541`)
8+
9+
== New Features
10+
11+
* pr:14938[] add signature help for tuple patterns and expressions:
12+
+
13+
image::https://user-images.githubusercontent.com/308347/243273547-73e109fb-1a67-414d-81cd-77b1c81768a6.png["Screenshot showing a signature help of (i32, &str, char) for (0, "a", 'c')"]
14+
* pr:14892[], pr:14942[] MIR episode 6, separate monomorphization and speed up interpretation.
15+
* pr:14905[] render niches on hover.
16+
* pr:14911[] allow setting ``cfg``s (`rust-analyzer.cargo.cfgs`).
17+
* pr:14929[] add render configuration for memory layout hovers.
18+
* pr:14888[] prioritize threads affected by user typing.
19+
20+
== Fixes
21+
22+
* pr:14935[] don't duplicate sysroot crates in `rustc` workspace.
23+
* pr:14939[] don't discard file id from differing macro upmapping in nav target calculation.
24+
* pr:14947[] add enum, reference, array and slice to `render_const_scalar`.
25+
* pr:14952[] make assignment operators right associative.
26+
* pr:14971[] consider outer binders when folding captured items' type.
27+
* pr:14912[] don't add `--all-targets` to runnables for `no_std` or `no_core` crates.
28+
* pr:14945[] don't trigger "replace generic with impl trait" assist when it would produce broken code.
29+
* pr:14920[] fix edits for `convert_named_struct_to_tuple_struct`.
30+
* pr:14950[] support floating-point intrinsics in const eval.
31+
* pr:14951[] fix string pattern matching in mir interpreter.
32+
* pr:14955[] remove unnecessary `StorageDead`.
33+
* pr:14961[] fix drop scopes problems in mir.
34+
* pr:14970[] detect multiple bindings for one identifier in the same pattern and suppress `need-mut`.
35+
* pr:14972[] fix `unused-mut` false positive for `Box`.
36+
* pr:14976[] fix missing terminator for slice pattern.
37+
38+
== Internal Improvements
39+
40+
* pr:14941[] shrink `DefMap`, share crate level items with block def maps.
41+
* pr:14842[] improve `ast::make`.
42+
* pr:14969[] update built-in attribute list.

0 commit comments

Comments
 (0)