Skip to content

Commit d03b1e9

Browse files
committed
Changelog #84
1 parent 80f41bf commit d03b1e9

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

generated_assists.adoc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//Generated file, do not edit by hand, see `xtask/src/codegen`
1+
//! Generated by `sourcegen_assists_docs`, do not edit by hand.
2+
23
[discrete]
34
=== `add_explicit_type`
45
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_explicit_type.rs#L9[add_explicit_type.rs]
@@ -1074,10 +1075,10 @@ fn foo() -> i32 { 42i32 }
10741075

10751076

10761077
[discrete]
1077-
=== `inline_function`
1078-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_function.rs#L13[inline_function.rs]
1078+
=== `inline_call`
1079+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L13[inline_call.rs]
10791080

1080-
Inlines a function body.
1081+
Inlines a function or method body.
10811082

10821083
.Before
10831084
```rust
@@ -1239,7 +1240,7 @@ use std::{fmt::Formatter, io};
12391240
=== `merge_match_arms`
12401241
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/merge_match_arms.rs#L11[merge_match_arms.rs]
12411242

1242-
Merges identical match arms.
1243+
Merges the current match arm with the following if their bodies are identical.
12431244

12441245
.Before
12451246
```rust
@@ -1625,9 +1626,9 @@ fn main() {
16251626

16261627
[discrete]
16271628
=== `replace_if_let_with_match`
1628-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L18[replace_if_let_with_match.rs]
1629+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L19[replace_if_let_with_match.rs]
16291630

1630-
Replaces `if let` with an else branch with a `match` expression.
1631+
Replaces a `if let` expression with a `match` expression.
16311632

16321633
.Before
16331634
```rust
@@ -1702,7 +1703,7 @@ fn compute() -> Option<i32> { None }
17021703

17031704
[discrete]
17041705
=== `replace_match_with_if_let`
1705-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L93[replace_if_let_with_match.rs]
1706+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L151[replace_if_let_with_match.rs]
17061707

17071708
Replaces a binary `match` with a wildcard pattern and no guards with an `if let` expression.
17081709

@@ -1734,7 +1735,7 @@ fn handle(action: Action) {
17341735

17351736
[discrete]
17361737
=== `replace_qualified_name_with_use`
1737-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs#L6[replace_qualified_name_with_use.rs]
1738+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs#L10[replace_qualified_name_with_use.rs]
17381739

17391740
Adds a use statement for a given fully-qualified name.
17401741

@@ -1800,7 +1801,7 @@ fn main() {
18001801

18011802
[discrete]
18021803
=== `split_import`
1803-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/split_import.rs#L7[split_import.rs]
1804+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/split_import.rs#L5[split_import.rs]
18041805

18051806
Wraps the tail of import into braces.
18061807

@@ -1841,7 +1842,7 @@ fn arithmetics {
18411842

18421843
[discrete]
18431844
=== `unmerge_use`
1844-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L12[unmerge_use.rs]
1845+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L13[unmerge_use.rs]
18451846

18461847
Extracts single use item from use list.
18471848

generated_diagnostic.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
//Generated file, do not edit by hand, see `xtask/src/codegen`
2-
=== break-outside-of-loop
1+
//! Generated by `sourcegen_diagnostic_docs`, do not edit by hand.
2+
3+
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
4+
5+
== break-outside-of-loop
36
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/break_outside_of_loop.rs#L3[break_outside_of_loop.rs]
47

58
This diagnostic is triggered if the `break` keyword is used outside of a loop.

generated_features.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//Generated file, do not edit by hand, see `xtask/src/codegen`
1+
2+
// Generated file, do not edit by hand, see `sourcegen_feature_docs`.
23
=== Annotations
34
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/annotations.rs#L18[annotations.rs]
45

@@ -255,7 +256,7 @@ Highlights constructs related to the thing under the cursor:
255256
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
256257

257258
== Hover
258-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L67[hover.rs]
259+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L70[hover.rs]
259260

260261
Shows additional information, like type of an expression or documentation for definition when "focusing" code.
261262
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -484,7 +485,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
484485
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
485486

486487
== Related Tests
487-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L129[runnables.rs]
488+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L146[runnables.rs]
488489

489490
Provides a sneak peek of all tests where the current item is used.
490491

@@ -518,7 +519,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
518519
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
519520

520521
== Run
521-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L90[runnables.rs]
522+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L91[runnables.rs]
522523

523524
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
524525
location**. Super useful for repeatedly running just a single test. Do bind this
@@ -598,7 +599,8 @@ Semi:: Emitted for the `;` token.
598599
//-
599600

600601
[horizontal]
601-
attribute:: Emitted for attributes.
602+
attribute:: Emitted for the `#[` `]` tokens.
603+
builtinAttribute:: Emitted for names to builtin attributes in attribute path, the `repr` in `#[repr(u8)]` for example.
602604
builtinType:: Emitted for builtin types like `u32`, `str` and `f32`.
603605
comment:: Emitted for comments.
604606
constParameter:: Emitted for const parameters.
@@ -663,7 +665,7 @@ image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b
663665
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
664666

665667
== Status
666-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L25[status.rs]
668+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L26[status.rs]
667669

668670
Shows internal statistic about memory usage of rust-analyzer.
669671

0 commit comments

Comments
 (0)