Skip to content

Commit 294ac98

Browse files
committed
Changelog #77
1 parent 73b1229 commit 294ac98

File tree

4 files changed

+70
-7
lines changed

4 files changed

+70
-7
lines changed

generated_assists.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ trait Trait {
5858
impl Trait for () {
5959
type X = ();
6060
fn foo(&self) {}┃
61-
6261
}
6362
```
6463

@@ -649,7 +648,7 @@ impl Default for Version {
649648

650649
[discrete]
651650
=== `generate_default_from_new`
652-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_default_from_new.rs#L11[generate_default_from_new.rs]
651+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_default_from_new.rs#L13[generate_default_from_new.rs]
653652

654653
Generates default implementation from new method.
655654

@@ -1005,7 +1004,7 @@ impl MyStruct {
10051004

10061005
[discrete]
10071006
=== `generate_new`
1008-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_new.rs#L11[generate_new.rs]
1007+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_new.rs#L10[generate_new.rs]
10091008

10101009
Adds a new inherent impl for a type.
10111010

@@ -1777,7 +1776,7 @@ fn main() {
17771776
=== `replace_unwrap_with_match`
17781777
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_unwrap_with_match.rs#L18[replace_unwrap_with_match.rs]
17791778

1780-
Replaces `unwrap` a `match` expression. Works for Result and Option.
1779+
Replaces `unwrap` with a `match` expression. Works for Result and Option.
17811780

17821781
.Before
17831782
```rust

generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[rust-analyzer.assist.importMergeBehavior]]rust-analyzer.assist.importMergeBehavior (default: `"full"`)::
1+
[[rust-analyzer.assist.importMergeBehavior]]rust-analyzer.assist.importMergeBehavior (default: `"crate"`)::
22
+
33
--
44
The strategy to use when inserting new imports or merging imports.

generated_features.adoc

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ mod tests {
316316

317317
And the auto import completions, enabled with the `rust-analyzer.completion.autoimport.enable` setting and the corresponding LSP client capabilities.
318318
Those are the additional completion options with automatic `use` import and options from all project importable items,
319-
fuzzy matched agains the completion imput.
319+
fuzzy matched against the completion input.
320320

321321
image::https://user-images.githubusercontent.com/48062697/113020667-b72ab880-917a-11eb-8778-716cf26a0eb3.gif[]
322322

@@ -426,7 +426,7 @@ image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923
426426
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
427427

428428
== Parent Module
429-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/parent_module.rs#L12[parent_module.rs]
429+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/parent_module.rs#L14[parent_module.rs]
430430

431431
Navigates to the parent module of the current module.
432432

@@ -606,6 +606,23 @@ be parsed as a valid structural search and replace rule.
606606
```
607607

608608

609+
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
610+
611+
== View Crate Graph
612+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/view_crate_graph.rs#L10[view_crate_graph.rs]
613+
614+
Renders the currently loaded crate graph as an SVG graphic. Requires the `dot` tool, which
615+
is part of graphviz, to be installed.
616+
617+
Only workspace crates are included, no crates.io dependencies or sysroot crates.
618+
619+
|===
620+
| Editor | Action Name
621+
622+
| VS Code | **Rust Analyzer: View Crate Graph**
623+
|===
624+
625+
609626
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
610627

611628
== View Hir
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
= Changelog #77
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:b82458818d44dfe5b4b5db38d8113e3f3194506e[] +
6+
Release: release:2021-05-17[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
11+
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].
12+
13+
== New Features
14+
15+
* pr:8791[] auto-indent use tree lists:
16+
+
17+
image::https://user-images.githubusercontent.com/1786438/117665627-53e16c80-b1a3-11eb-8906-1b88b394367b.gif[]
18+
* pr:8801[], pr:8807[] allow viewing the crate graph in a webview:
19+
+
20+
image::https://user-images.githubusercontent.com/1786438/117831361-c4a48980-b274-11eb-9276-240cdf6919aa.png[]
21+
* pr:8799[], pr:8813[] add support for array lengths in types.
22+
23+
== Fixes
24+
25+
* pr:8802[] (first contribution) keep comments and attributes when extracting struct from enum variant.
26+
* pr:8819[] (first contribution) use package root as `cargo check` working directory.
27+
* pr:8398[] fix inference with conditionally compiled tails.
28+
* pr:8800[] make "Pull assignment up" assist work in more cases.
29+
* pr:8805[] use Cargo target name as crate name.
30+
* pr:8806[], pr:8808[] strip delimiters from function-like macro invocations.
31+
* pr:8812[] fix dependencies of build scripts.
32+
* pr:8820[] return absolute paths in `find_path` if crate start is ambiguous.
33+
* pr:8823[] enable task lists in `pulldown_cmark`.
34+
* pr:8814[] keep doc comments and outer attributes in "Move module to file" assist.
35+
* pr:8830[] implement bulit-in `concat_idents!` macro.
36+
* pr:8831[] apply `async` semantic token modifier to the `async`/`await` keywords.
37+
* pr:8840[] fix false positive "Missing match arm" when a tuple pattern is shorter than scrutinee type.
38+
* pr:8845[] add default type parameters on "Generate `Default` from `new` function".
39+
* pr:8848[] attach comments to `ast::Impl`.
40+
* pr:8853[] tag `Self` in impls as a type alias.
41+
42+
== Internal Improvements
43+
44+
* pr:8793[], pr:8825[] (first contributions) fix a couple of typos.
45+
* pr:8798[] use modern dependency resolver.
46+
* pr:8796[] rewrite `#[derive]` removal to be based on AST (take 2).
47+
* pr:8837[], pr:8838[], pr:8854[] use mutable syntax trees in more places.

0 commit comments

Comments
 (0)