Skip to content

Commit e0b0987

Browse files
committed
Changelog #201
1 parent f547657 commit e0b0987

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

generated_assists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ fn main() {
354354

355355
.After
356356
```rust
357-
fn main() {
358-
#[derive(PartialEq, Eq)]
359-
enum Bool { True, False }
357+
#[derive(PartialEq, Eq)]
358+
enum Bool { True, False }
360359

360+
fn main() {
361361
let bool = Bool::True;
362362

363363
if bool == Bool::True {

generated_diagnostic.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,9 @@ enable support for procedural macros (see `rust-analyzer.procMacro.attributes.en
226226
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mutability_errors.rs#L45[mutability_errors.rs]
227227

228228
This diagnostic is triggered when a mutable variable isn't actually mutated.
229+
230+
231+
=== unused-variables
232+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unused_variables.rs#L3[unused_variables.rs]
233+
234+
This diagnostic is triggered when a local variable is not used.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
= Changelog #201
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:0840038f02daec6ba3238f05d8caa037d28701a0[] +
7+
Release: release:2023-10-02[] (`v0.3.1681`)
8+
9+
== New Features
10+
11+
* pr:15659[], pr:15693[] add `unused_variables` native diagnostic:
12+
+
13+
image::https://user-images.githubusercontent.com/308347/271902902-1eb755d3-3ee0-40bb-b83c-428ce03c7f5a.png["A screenshot showing a native rust-analyzer warning on an unused variable"]
14+
15+
== Fixes
16+
17+
* pr:15662[] fix panic in wrapping and unwrapping `Result` return type assists.
18+
* pr:15667[] make `bool_to_enum` assist create enum at top-level.
19+
* pr:15682[] recover better on missing parameter in parameter list.
20+
* pr:15688[] make `rustc_layout_scalar_valid_range` attributes work for non-decimal literals.
21+
* pr:15692[] don't trigger completion when typing underscore in types or patterns.
22+
23+
== Internal Improvements
24+
25+
* pr:15680[] (first contribution) re-generate `lints.rs`.
26+
* pr:15633[] allow customizing SCIP config.
27+
* pr:15677[] allocate AST ids for parameters.
28+
* pr:15686[] only run tests on Linux for pull requests.

0 commit comments

Comments
 (0)