Skip to content

Commit 68b6424

Browse files
committed
Changelog #107
1 parent 7405875 commit 68b6424

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed

generated_assists.adoc

+35-1
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,40 @@ struct Point {
982982
```
983983

984984

985+
[discrete]
986+
=== `generate_documentation_template`
987+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_documentation_template.rs#L12[generate_documentation_template.rs]
988+
989+
Adds a documentation template above a function definition / declaration.
990+
991+
.Before
992+
```rust
993+
pub fn my_┃func(a: i32, b: i32) -> Result<(), std::io::Error> {
994+
unimplemented!()
995+
}
996+
```
997+
998+
.After
999+
```rust
1000+
/// .
1001+
///
1002+
/// # Examples
1003+
///
1004+
/// ```
1005+
/// use test::my_func;
1006+
///
1007+
/// assert_eq!(my_func(a, b), );
1008+
/// ```
1009+
///
1010+
/// # Errors
1011+
///
1012+
/// This function will return an error if .
1013+
pub fn my_func(a: i32, b: i32) -> Result<(), std::io::Error> {
1014+
unimplemented!()
1015+
}
1016+
```
1017+
1018+
9851019
[discrete]
9861020
=== `generate_enum_as_method`
9871021
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_projection_method.rs#L55[generate_enum_projection_method.rs]
@@ -2345,7 +2379,7 @@ fn arithmetics {
23452379

23462380
[discrete]
23472381
=== `unmerge_use`
2348-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L13[unmerge_use.rs]
2382+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L12[unmerge_use.rs]
23492383

23502384
Extracts single use item from use list.
23512385

generated_features.adoc

+12
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,18 @@ rust-analyzer itself.
722722
image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b1-11eb-9507-fee67f9f45a0.gif[]
723723

724724

725+
=== Shuffle Crate Graph
726+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/shuffle_crate_graph.rs#L8[shuffle_crate_graph.rs]
727+
728+
Randomizes all crate IDs in the crate graph, for debugging.
729+
730+
|===
731+
| Editor | Action Name
732+
733+
| VS Code | **Rust Analyzer: Shuffle Crate Graph**
734+
|===
735+
736+
725737
=== Status
726738
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L25[status.rs]
727739

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
= Changelog #107
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:db2a7087b994e20f264f26ad6db75184282ad120[] +
6+
Release: release:2021-12-13[]
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:10951[] (first contribution) add assist to generate documentation templates:
16+
+
17+
image::https://user-images.githubusercontent.com/308347/145762247-8f6f3f01-2eec-494d-a18d-3c4d163118a1.gif[]
18+
* pr:10877[] make syntax hightlighting linear.
19+
20+
== Fixes
21+
22+
* pr:10979[] don't show trait flyimports for impl trait and placeholders.
23+
* pr:10976[] show case-insensitive exact matches instead of fuzzy flyimport for short paths.
24+
* pr:10986[] fix lint completions not working for unclosed attributes.
25+
* pr:10960[] fix handling of macros in `extern` blocks.
26+
* pr:10957[] fix some `TryToNav` impls not upmapping ranges out of macros.
27+
* pr:10966[] fix library target overriding sysroot deps.
28+
* pr:10977[] fix `concat!` with captured expression.
29+
* pr:10987[] respect inner attributes for ``Struct``s and ``Enum``s.
30+
* pr:10988[] fix expected type calculation in struct literal followed by comma.
31+
32+
== Internal Improvements
33+
34+
* pr:10995[] switch from trait-based `TokenSource` to simple struct of arrays.
35+
* pr:10978[] only prime direct dependencies of the workspace crates.
36+
* pr:10958[] add `Shuffle Crate Graph` command.
37+
* pr:10950[] split out more ``PathKind``s from ``ImmediateLocation``.
38+
* pr:10975[] shrink ``TraitImpl``s and ``InherentImpl``s hashmaps.
39+
* pr:10981[] remove some allocations.
40+
* pr:10949[] bump parser step limit.

0 commit comments

Comments
 (0)