Skip to content

Commit

Permalink
Changelog #201
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Oct 2, 2023
1 parent f547657 commit e0b0987
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generated_assists.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ fn main() {

.After
```rust
fn main() {
#[derive(PartialEq, Eq)]
enum Bool { True, False }
#[derive(PartialEq, Eq)]
enum Bool { True, False }

fn main() {
let bool = Bool::True;

if bool == Bool::True {
Expand Down
6 changes: 6 additions & 0 deletions generated_diagnostic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,9 @@ enable support for procedural macros (see `rust-analyzer.procMacro.attributes.en
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mutability_errors.rs#L45[mutability_errors.rs]

This diagnostic is triggered when a mutable variable isn't actually mutated.


=== unused-variables
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unused_variables.rs#L3[unused_variables.rs]

This diagnostic is triggered when a local variable is not used.
28 changes: 28 additions & 0 deletions thisweek/_posts/2023-10-02-changelog-201.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= Changelog #201
:sectanchors:
:experimental:
:page-layout: post

Commit: commit:0840038f02daec6ba3238f05d8caa037d28701a0[] +
Release: release:2023-10-02[] (`v0.3.1681`)

== New Features

* pr:15659[], pr:15693[] add `unused_variables` native diagnostic:
+
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"]

== Fixes

* pr:15662[] fix panic in wrapping and unwrapping `Result` return type assists.
* pr:15667[] make `bool_to_enum` assist create enum at top-level.
* pr:15682[] recover better on missing parameter in parameter list.
* pr:15688[] make `rustc_layout_scalar_valid_range` attributes work for non-decimal literals.
* pr:15692[] don't trigger completion when typing underscore in types or patterns.

== Internal Improvements

* pr:15680[] (first contribution) re-generate `lints.rs`.
* pr:15633[] allow customizing SCIP config.
* pr:15677[] allocate AST ids for parameters.
* pr:15686[] only run tests on Linux for pull requests.

0 comments on commit e0b0987

Please sign in to comment.