Skip to content

Commit 1e8b8e5

Browse files
committed
Changelog #221
1 parent 2e17098 commit 1e8b8e5

File tree

4 files changed

+67
-10
lines changed

4 files changed

+67
-10
lines changed

generated_assists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ impl Person {
18681868

18691869
[discrete]
18701870
=== `generate_trait_from_impl`
1871-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_trait_from_impl.rs#L13[generate_trait_from_impl.rs]
1871+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_trait_from_impl.rs#L18[generate_trait_from_impl.rs]
18721872

18731873
Generate trait for an already defined inherent impl and convert impl to a trait impl.
18741874

@@ -1904,7 +1904,7 @@ macro_rules! const_maker {
19041904
};
19051905
}
19061906

1907-
trait ${0:TraitName}<const N: usize> {
1907+
trait ${0:NewTrait}<const N: usize> {
19081908
// Used as an associated constant.
19091909
const CONST_ASSOC: usize = N * 4;
19101910

@@ -1913,7 +1913,7 @@ trait ${0:TraitName}<const N: usize> {
19131913
const_maker! {i32, 7}
19141914
}
19151915

1916-
impl<const N: usize> ${0:TraitName}<N> for Foo<N> {
1916+
impl<const N: usize> ${0:NewTrait}<N> for Foo<N> {
19171917
// Used as an associated constant.
19181918
const CONST_ASSOC: usize = N * 4;
19191919

generated_config.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ cargo check --quiet --workspace --message-format=json --all-targets
7171
```
7272
.
7373
--
74-
[[rust-analyzer.cargo.buildScripts.rebuildOnSave]]rust-analyzer.cargo.buildScripts.rebuildOnSave (default: `false`)::
74+
[[rust-analyzer.cargo.buildScripts.rebuildOnSave]]rust-analyzer.cargo.buildScripts.rebuildOnSave (default: `true`)::
7575
+
7676
--
7777
Rerun proc-macros building/build-scripts running when proc-macro
@@ -234,6 +234,11 @@ each of them, with the working directory being the workspace root
234234
by changing `#rust-analyzer.check.invocationStrategy#` and
235235
`#rust-analyzer.check.invocationLocation#`.
236236

237+
If `$saved_file` is part of the command, rust-analyzer will pass
238+
the absolute path of the saved file to the provided command. This is
239+
intended to be used with non-Cargo build systems.
240+
Note that `$saved_file` is experimental and may be removed in the futureg.
241+
237242
An example command would be:
238243

239244
```bash
@@ -343,6 +348,11 @@ Default:
343348
----
344349
Custom completion snippets.
345350

351+
--
352+
[[rust-analyzer.completion.termSearch.enable]]rust-analyzer.completion.termSearch.enable (default: `false`)::
353+
+
354+
--
355+
Whether to enable term search based snippets like `Some(foo.bar().baz())`.
346356
--
347357
[[rust-analyzer.diagnostics.disabled]]rust-analyzer.diagnostics.disabled (default: `[]`)::
348358
+
@@ -793,11 +803,6 @@ Exclude imports from find-all-references.
793803
--
794804
Exclude tests from find-all-references.
795805
--
796-
[[rust-analyzer.rename.allowExternalItems]]rust-analyzer.rename.allowExternalItems (default: `false`)::
797-
+
798-
--
799-
Allow renaming of items not belonging to the loaded workspaces.
800-
--
801806
[[rust-analyzer.runnables.command]]rust-analyzer.runnables.command (default: `null`)::
802807
+
803808
--

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ the expected type.
176176

177177

178178
=== typed-hole
179-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/typed_hole.rs#L12[typed_hole.rs]
179+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/typed_hole.rs#L18[typed_hole.rs]
180180

181181
This diagnostic is triggered when an underscore expression is used in an invalid position.
182182

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
= Changelog #221
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:68c506fd6299c60c96a6202ca08f9d868a0838a3[] +
7+
Release: release:2024-02-19[] (`v0.3.1850`)
8+
9+
== New Features
10+
11+
* pr:16092[] (first contribution) introduce term search to `rust-analyzer`.
12+
* pr:16117[] (first contribution) prioritize constructors and builders in completions.
13+
* pr:15923[] improve support for ignored proc macros.
14+
* pr:15476[] substitute `$saved_file` in custom `check` commands.
15+
16+
== Fixes
17+
18+
* pr:16550[] (first contribution) activate on top level `Cargo.toml` and `rust-project.json` files.
19+
* pr:16530[] fix macro transcriber emitting incorrect lifetime tokens.
20+
* pr:16541[] highlight doc comments.
21+
* pr:16547[] validate literals in proc macro server's `FreeFunctions::literal_from_str`.
22+
* pr:16544[] only complete traits in `impl ... for`.
23+
* pr:16553[] improve parser error recovery on `=` in record field initializer and patterns.
24+
* pr:16554[] pass `.cargo/config.toml` environment variables to proc-macro server.
25+
* pr:16563[] set `RUSTUP_TOOLCHAIN` and invoke the proxies instead of sysroot binaries.
26+
* pr:16247[] fix build scripts not being rebuilt on some occasions.
27+
* pr:16574[] fix `needless_return` false positives on trailing inner item declarations.
28+
* pr:16582[] respect textual length of paths in `find_path`.
29+
* pr:16583[] ignore type mismatches between `{unknown}` and non-`{unknown}` types.
30+
* pr:16586[] remove cargo knowledge from `CrateData`.
31+
* pr:16569[] place snippets correctly in multi-edit assists.
32+
* pr:16579[] fix snippets being placed leftwards of where they should be.
33+
* pr:16559[] fill in SCIP documentation fields.
34+
35+
== Internal Improvements
36+
37+
* pr:16588[] (first contribution) parse (nightly) `const` and `async` trait bounds.
38+
* pr:16587[] (first contribution) update GitHub actions and Node version.
39+
* pr:16576[] (first contribution) add license files to `lsp-server`.
40+
* pr:15003[] add basic support for `become` expressions (tail calls).
41+
* pr:16577[] migrate assists to the structured snippet API, part 7 of 7.
42+
* pr:16446[] implement `literal_from_str` in proc macro server.
43+
* pr:16537[], pr:16545[] make tool discovery prefer sysroot paths.
44+
* pr:16540[] make `macro_arg` query always returns a `TokenTree`.
45+
* pr:16560[] set channel override when querying the sysroot metadata.
46+
* pr:16558[] update `JsonProject` to include optional fields.
47+
* pr:16562[] add `clippy` and `rustfmt` problem matchers to CI.
48+
* pr:16573[] remove `salsa` compile tests.
49+
* pr:16533[] bump `rustc_pattern_analysis`.
50+
* pr:16585[] bump `actions/checkout` to `v4`.
51+
* pr:16598[], pr:16599[], pr:16600[] downgrade `actions/checkout`, `actions/setup-node` and Node in release workflow.
52+
* pr:16597[] sync from downstream.

0 commit comments

Comments
 (0)