Skip to content

Commit 7af08fa

Browse files
author
Jonas Schievink
committed
Changelog #104
1 parent 2739159 commit 7af08fa

File tree

5 files changed

+72
-4
lines changed

5 files changed

+72
-4
lines changed

generated_assists.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ fn qux(bar: Bar, baz: Baz) {}
583583

584584
[discrete]
585585
=== `extract_function`
586-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_function.rs#L38[extract_function.rs]
586+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_function.rs#L35[extract_function.rs]
587587

588588
Extracts selected statements into new function.
589589

generated_config.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Group inserted imports by the https://rust-analyzer.github.io/manual.html#auto-i
2323
--
2424
Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.
2525
--
26+
[[rust-analyzer.cache.warmup]]rust-analyzer.cache.warmup (default: `true`)::
27+
+
28+
--
29+
Warm up caches on project load.
30+
--
2631
[[rust-analyzer.callInfo.full]]rust-analyzer.callInfo.full (default: `true`)::
2732
+
2833
--

generated_diagnostic.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ This diagnostic is shown for code with inactive `#[cfg]` attributes.
2424
This diagnostic is triggered if an item name doesn't follow https://doc.rust-lang.org/1.0.0/style/style/naming/README.html[Rust naming convention].
2525

2626

27+
=== invalid-derive-target
28+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/invalid_derive_target.rs#L3[invalid_derive_target.rs]
29+
30+
This diagnostic is shown when the derive attribute is used on an item other than a `struct`,
31+
`enum` or `union`.
32+
33+
2734
=== macro-error
2835
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/macro_error.rs#L3[macro_error.rs]
2936

3037
This diagnostic is shown for macro expansion errors.
3138

3239

40+
=== malformed-derive
41+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/malformed_derive.rs#L3[malformed_derive.rs]
42+
43+
This diagnostic is shown when the derive attribute has invalid input.
44+
45+
3346
=== mismatched-arg-count
3447
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/mismatched_arg_count.rs#L10[mismatched_arg_count.rs]
3548

generated_features.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
223223

224224

225225
=== Find All References
226-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/references.rs#L43[references.rs]
226+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/references.rs#L40[references.rs]
227227

228228
Shows all references of the item at the cursor location
229229

@@ -547,7 +547,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
547547

548548

549549
=== Related Tests
550-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L189[runnables.rs]
550+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L192[runnables.rs]
551551

552552
Provides a sneak peek of all tests where the current item is used.
553553

@@ -577,7 +577,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
577577

578578

579579
=== Run
580-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L111[runnables.rs]
580+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L114[runnables.rs]
581581

582582
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
583583
location**. Super useful for repeatedly running just a single test. Do bind this
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
= Changelog #104
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:183ef048f61ae36aa389d1d0345cde940fe788e9[] +
6+
Release: release:2021-11-22[]
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:10769[] Add proc macro ABI for rustc 1.58
16+
* pr:10785[], pr:10796[] Show values of `const`s and `static`s in hover
17+
+
18+
image::https://user-images.githubusercontent.com/5489149/142163890-b6aa2ab4-7bd0-4dd3-b35d-5eaa83fffb7f.png[]
19+
* pr:10798[] Show "go to type" for function return type on hover
20+
+
21+
image::https://user-images.githubusercontent.com/5489149/142375722-4a385216-494b-45a4-be1c-59664213b8d6.png[]
22+
* pr:10812[], pr:10823[] Format `Fn` traits using parentheses
23+
* pr:10810[] Add toggle to disable cache priming
24+
25+
26+
== Fixes
27+
28+
* pr:10773[] Reimplement mapping out of test/bench attributes for runnables
29+
* pr:10734[] Add generic parameters in "convert to manual impl" assist
30+
* pr:10776[] Remove validation of `super` in use paths
31+
* pr:10799[] Fix proc macro ABI version checks
32+
* pr:10794[] Parse range patterns inside tuple patterns
33+
* pr:10795[] Fix crash in doc path resolution
34+
* pr:10804[] Diagnose using `derive` on non-adt items
35+
* pr:10806[] Make inlay param hint hiding heurstic case unsensitive
36+
* pr:10807[] Diagnose invalid derive attribute input
37+
* pr:10808[] Really show custom check-command
38+
* pr:10821[] Wrap `inline_call` and `inline_into_callers` if it inlines into the left side of a binary expression
39+
* pr:10805[] Dedupe or merge hover actions
40+
* pr:10817[] Omit redundant `{unnamed}` where clauses on hover
41+
42+
43+
== Internal Improvements
44+
45+
* pr:10777[] Allow disabling perf counters access via `RA_DISABLE_PERF`
46+
* pr:10778[] Skip test/bench attr expansion in resolution instead of collection
47+
* pr:10781[] Do not use reference search in `runnables::related_tests`
48+
* pr:10789[] Check for derive attributes by item path, not `derive` identifier
49+
* pr:10819[] Replace some `Vec` occurences with `Box`
50+

0 commit comments

Comments
 (0)