File tree Expand file tree Collapse file tree 2 files changed +59
-24
lines changed Expand file tree Collapse file tree 2 files changed +59
-24
lines changed Original file line number Diff line number Diff line change @@ -564,30 +564,6 @@ impl<T: Clone> Ctx<T> {
564
564
```
565
565
566
566
567
- [discrete]
568
- === `ignore_test`
569
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/ignore_test.rs#L8[ignore_test.rs]
570
-
571
- Adds `#[ignore]` attribute to the test.
572
-
573
- .Before
574
- ```rust
575
- ┃#[test]
576
- fn arithmetics {
577
- assert_eq!(2 + 2, 5);
578
- }
579
- ```
580
-
581
- .After
582
- ```rust
583
- #[test]
584
- #[ignore]
585
- fn arithmetics {
586
- assert_eq!(2 + 2, 5);
587
- }
588
- ```
589
-
590
-
591
567
[discrete]
592
568
=== `infer_function_return_type`
593
569
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/infer_function_return_type.rs#L7[infer_function_return_type.rs]
@@ -1172,6 +1148,30 @@ use std::{collections::HashMap};
1172
1148
```
1173
1149
1174
1150
1151
+ [discrete]
1152
+ === `toggle_ignore`
1153
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/toggle_ignore.rs#L8[toggle_ignore.rs]
1154
+
1155
+ Adds `#[ignore]` attribute to the test.
1156
+
1157
+ .Before
1158
+ ```rust
1159
+ ┃#[test]
1160
+ fn arithmetics {
1161
+ assert_eq!(2 + 2, 5);
1162
+ }
1163
+ ```
1164
+
1165
+ .After
1166
+ ```rust
1167
+ #[test]
1168
+ #[ignore]
1169
+ fn arithmetics {
1170
+ assert_eq!(2 + 2, 5);
1171
+ }
1172
+ ```
1173
+
1174
+
1175
1175
[discrete]
1176
1176
=== `unwrap_block`
1177
1177
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/unwrap_block.rs#L11[unwrap_block.rs]
Original file line number Diff line number Diff line change
1
+ = Changelog #54
2
+ :sectanchors:
3
+ :page-layout: post
4
+
5
+ Commit: commit:a0fa522fdaf25daff6a2a9794214f0e0bedc5c24[] +
6
+ Release: release:2020-12-07[]
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:6683[] emit macro diagnostics in bodies.
16
+ * pr:6673[] show type of Self on hover.
17
+ * pr:6721[] use `METHOD` semantic token type.
18
+ * pr:6734[] emit additional diagnostics for hints/help/etc.
19
+
20
+ == Fixes
21
+
22
+ * pr:6680[] fix use merging not using the first path segment.
23
+ * pr:6688[] place the cursor correctly when using qualified syntax for calling method.
24
+ * pr:6689[] trigger `.let` postfix snippet in the middle of the block.
25
+ * pr:6649[] accept more than just the standard rust literal suffixes.
26
+ * pr:6701[] fixes occasional "progress handler already registered" errors.
27
+ * pr:6712[] fix proc macro token mapping.
28
+ * pr:6723[] fix a crash in type inference.
29
+ * pr:6724[] fix `rust-analyzer diagnostics` CLI command to process modules recursively.
30
+ * pr:6725[] handle proc-macro crashes robustly.
31
+
32
+ == Internal Improvements
33
+
34
+ * pr:6681[], pr:6700[] refactor builtin macros support.
35
+ * pr:6698[] attach macro expansion errors to the right file.
You can’t perform that action at this time.
0 commit comments