Skip to content

Commit d665396

Browse files
committed
Changelog #139
1 parent 01eada6 commit d665396

4 files changed

Lines changed: 68 additions & 9 deletions

File tree

generated_assists.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ fn main() {
328328

329329
[discrete]
330330
=== `convert_for_loop_with_for_each`
331-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs#L73[convert_iter_for_each_to_for.rs]
331+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs#L76[convert_iter_for_each_to_for.rs]
332332

333333
Converts a for loop into a for_each loop on the Iterator.
334334

@@ -849,7 +849,7 @@ fn foo<T: Copy + Clone>() { }
849849

850850
[discrete]
851851
=== `generate_constant`
852-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_constant.rs#L12[generate_constant.rs]
852+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_constant.rs#L13[generate_constant.rs]
853853

854854
Generate a named constant.
855855

@@ -1100,7 +1100,7 @@ impl S {
11001100

11011101
[discrete]
11021102
=== `generate_enum_as_method`
1103-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_enum_projection_method.rs#L56[generate_enum_projection_method.rs]
1103+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_enum_projection_method.rs#L59[generate_enum_projection_method.rs]
11041104

11051105
Generate an `as_` method for this enum variant.
11061106

@@ -1402,7 +1402,7 @@ impl MyStruct {
14021402
=== `generate_new`
14031403
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_new.rs#L13[generate_new.rs]
14041404

1405-
Adds a new inherent impl for a type.
1405+
Adds a `fn new` for a type.
14061406

14071407
.Before
14081408
```rust
@@ -1959,7 +1959,7 @@ fn main() {
19591959

19601960
[discrete]
19611961
=== `qualify_method_call`
1962-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/qualify_method_call.rs#L13[qualify_method_call.rs]
1962+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/qualify_method_call.rs#L10[qualify_method_call.rs]
19631963

19641964
Replaces the method call with a qualified function call.
19651965

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This diagnostic is shown when the derive attribute has invalid input.
3838

3939

4040
=== mismatched-arg-count
41-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L10[mismatched_arg_count.rs]
41+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L8[mismatched_arg_count.rs]
4242

4343
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
4444

generated_features.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917
384384

385385

386386
=== Magic Completions
387-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L43[lib.rs]
387+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L45[lib.rs]
388388

389389
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
390390
completions as well:
@@ -765,7 +765,7 @@ image::https://user-images.githubusercontent.com/48062697/113065584-05f34500-91b
765765

766766

767767
=== Structural Search and Replace
768-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-ssr/src/lib.rs#L6[lib.rs]
768+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-ssr/src/lib.rs#L8[lib.rs]
769769

770770
Search and replace with named wildcards that will match any expression, type, path, pattern or item.
771771
The syntax for a structural search replace command is `<search_pattern> ==>> <replace_pattern>`.
@@ -846,7 +846,7 @@ A custom snippet can be defined by adding it to the `rust-analyzer.completion.sn
846846
"body": [
847847
"thread::spawn(move || {",
848848
"\t$0",
849-
")};",
849+
"});",
850850
],
851851
"description": "Insert a thread::spawn call",
852852
"requires": "std::thread",
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
= Changelog #139
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:7e2b983fd459977e11026683ee4afb9598960a4c[] +
6+
Release: release:2022-07-25[]
7+
8+
== New Features
9+
10+
* pr:12549[], pr:12841[] make `Go to implementation` work on trait methods:
11+
+
12+
video::https://user-images.githubusercontent.com/308347/180722666-15962825-02b8-4b8e-b3e1-a86dbfefa369.mp4[options=loop]
13+
* pr:12286[] don't ignore the path prefix in `Generate constant`:
14+
+
15+
video::https://user-images.githubusercontent.com/10148927/168710096-59d5c594-0e4a-4ba7-bfb3-21c4b99409ea.mov[options=loop]
16+
+
17+
video::https://user-images.githubusercontent.com/10148927/168710111-cd6d3df4-58eb-4358-ae9e-791bfc408efa.mov[options=loop]
18+
* pr:12798[] drop support for the 1.47&ndash;1.58 proc macro ABIs.
19+
* pr:12795[] add support for the 1.64 nightly proc macro ABI.
20+
* pr:12859[] don't highlight the whole fn on return-type mismatch.
21+
22+
== Fixes
23+
24+
* pr:12821[] (first contribution) don't generate default `PartialEq::ne`.
25+
* pr:12811[] (first contribution) insert `pub(crate)` after doc comments and attribute macros.
26+
* pr:12863[] fix missing fields check on destructuring assignment.
27+
* pr:12809[] work around Code bug with empty diagnostics.
28+
* pr:12789[] prevent panic on overlapping ranges in `Remove Unused Parameter`.
29+
* pr:12788[] fix `Extract variable` for subexpression with mutable borrow.
30+
* pr:12646[] escape receiver texts in completion
31+
* pr:12825[] make searching for associated trait items consistent.
32+
* pr:12844[] improve syntax highlighting in attributes
33+
* pr:12847[] don't duplicate language clients in `Restart server`.
34+
* pr:12850[] fix error tooltip message for VSCode status bar item.
35+
* pr:12851[] don't add braces to 'if' completion in match guard position.
36+
* pr:12832[] don't try to implement default members.
37+
* pr:12861[] include receiver in struct field autocomplete.
38+
* pr:12807[] add basic support for completion item details.
39+
* pr:12804[] clarify `rust-analyzer.files.watcher` and add enum variants for it.
40+
* pr:12796[] use `to_owned` instead of `to_string` in `&str to String`.
41+
42+
== Internal Improvements
43+
44+
* pr:12827[] construct fewer ``AstIdMap``s while lowering.
45+
* pr:12840[] use `ItemTree` for variant, field and module attribute collection in `attrs_query`.
46+
* pr:12849[] don't parse files unnecessarily in scope_for_offset.
47+
* pr:12800[] find original AST node before calling `compute_ref_match`.
48+
* pr:12817[] bump `expect-test` and set `CARGO_WORKSPACE_DIR`.
49+
* pr:12826[] enable (and fix) extra lint groups required for building inside `rust-lang/rust`.
50+
* pr:12828[] rename proc macro server from `Rustc` to `RustAnalyzer`.
51+
* pr:12829[] remove `check_merge_commits` test.
52+
* pr:12831[] build `proc-macro-test-impl` out-of-tree.
53+
* pr:12833[] add `proc-macro-srv` integration test that clones literals.
54+
* pr:12834[] add `PROC_MACRO_TEST_TOOLCHAIN` environment variable.
55+
* pr:12835[] introduce `proc-macro-srv/sysroot-abi` feature.
56+
* pr:12854[] fix `generate_new` description.
57+
58+
== Others
59+

0 commit comments

Comments
 (0)