Skip to content

Commit 890f757

Browse files
committed
Changelog #250
1 parent 3712810 commit 890f757

File tree

3 files changed

+46
-5
lines changed

3 files changed

+46
-5
lines changed

generated_assists.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ struct S {
12131213

12141214
[discrete]
12151215
=== `extract_variable`
1216-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_variable.rs#L11[extract_variable.rs]
1216+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_variable.rs#L12[extract_variable.rs]
12171217

12181218
Extracts subexpression into a variable.
12191219

@@ -1479,7 +1479,7 @@ impl Person {
14791479

14801480
[discrete]
14811481
=== `generate_delegate_trait`
1482-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_delegate_trait.rs#L28[generate_delegate_trait.rs]
1482+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_delegate_trait.rs#L29[generate_delegate_trait.rs]
14831483

14841484
Generate delegate trait implementation for `StructField`s.
14851485

@@ -2384,7 +2384,7 @@ fn main() -> () {
23842384

23852385
[discrete]
23862386
=== `introduce_named_generic`
2387-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/introduce_named_generic.rs#L8[introduce_named_generic.rs]
2387+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/introduce_named_generic.rs#L9[introduce_named_generic.rs]
23882388

23892389
Replaces `impl Trait` function argument with the named generic.
23902390

@@ -3248,7 +3248,7 @@ fn handle(action: Action) {
32483248

32493249
[discrete]
32503250
=== `replace_is_some_with_if_let_some`
3251-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_is_method_with_if_let_method.rs#L8[replace_is_method_with_if_let_method.rs]
3251+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_is_method_with_if_let_method.rs#L9[replace_is_method_with_if_let_method.rs]
32523252

32533253
Replace `if x.is_some()` with `if let Some(_tmp) = x` or `if x.is_ok()` with `if let Ok(_tmp) = x`.
32543254

@@ -3815,7 +3815,7 @@ fn main() {
38153815

38163816
[discrete]
38173817
=== `wrap_return_type_in_result`
3818-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type_in_result.rs#L14[wrap_return_type_in_result.rs]
3818+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type_in_result.rs#L16[wrap_return_type_in_result.rs]
38193819

38203820
Wrap the function's return type into Result.
38213821

generated_diagnostic.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ This diagnostic is triggered if the `await` keyword is used outside of an async
1212
This diagnostic is triggered if the `break` keyword is used outside of a loop.
1313

1414

15+
=== cast-to-unsized
16+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/invalid_cast.rs#L106[invalid_cast.rs]
17+
18+
This diagnostic is triggered when casting to an unsized type
19+
20+
1521
=== expected-function
1622
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/expected_function.rs#L5[expected_function.rs]
1723

@@ -36,6 +42,12 @@ This diagnostic is triggered if the targe type of an impl is from a foreign crat
3642
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].
3743

3844

45+
=== invalid-cast
46+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/invalid_cast.rs#L18[invalid_cast.rs]
47+
48+
This diagnostic is triggered if the code contains an illegal cast
49+
50+
3951
=== invalid-derive-target
4052
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/invalid_derive_target.rs#L3[invalid_derive_target.rs]
4153

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
= Changelog #250
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:08c7bbc2dbe4dcc8968484f1a0e1e6fe7a1d4f6d[] +
7+
Release: release:2024-09-09[] (`v0.3.2104`)
8+
9+
== New Features
10+
11+
* pr:17984[] implement cast typecheck and diagnostics.
12+
* pr:18022[], pr:18053[] add IDE support for `asm!` expressions.
13+
14+
== Fixes
15+
16+
* pr:18031[] suggest name in pattern completion.
17+
* pr:18016[] use existing type aliases in "Wrap return type in Result".
18+
* pr:18028[] prevent lifetime hint panic in non-generic definitions.
19+
* pr:18045[] keep loop blocks during lowering.
20+
* pr:18068[] set `TraitRef` self types explicitly during lowering.
21+
* pr:18067[] prevent MIR building when unknown types are present.
22+
* pr:18059[] don't clobber discovered projects when updating settings.
23+
24+
== Internal Improvements
25+
26+
* pr:18026[] tweak completion scoring.
27+
* pr:18044[] add edition-dependent keyword highlighting tests.
28+
* pr:18065[] catch panics from diagnostics computation.
29+
* pr:18066[] don't panic LSP writer thread when the receiver gets dropped.

0 commit comments

Comments
 (0)