Skip to content

Commit c919e9d

Browse files
committed
Changelog #208
1 parent c9b24ed commit c919e9d

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fn foo() -> i32 { 42i32 }
245245

246246
[discrete]
247247
=== `add_turbo_fish`
248-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_turbo_fish.rs#L10[add_turbo_fish.rs]
248+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_turbo_fish.rs#L13[add_turbo_fish.rs]
249249

250250
Adds `::<_>` to a call of a generic method or function.
251251

@@ -850,7 +850,7 @@ fn main() {
850850

851851
[discrete]
852852
=== `destructure_tuple_binding`
853-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/destructure_tuple_binding.rs#L13[destructure_tuple_binding.rs]
853+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/destructure_tuple_binding.rs#L15[destructure_tuple_binding.rs]
854854

855855
Destructures a tuple binding in place.
856856

generated_diagnostic.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,24 @@ This diagnostic is triggered if the accessed field is not visible from the curre
130130
This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)`.
131131

132132

133+
=== trait-impl-incorrect-safety
134+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/trait_impl_incorrect_safety.rs#L6[trait_impl_incorrect_safety.rs]
135+
136+
Diagnoses incorrect safety annotations of trait impls.
137+
138+
139+
=== trait-impl-missing-assoc_item
140+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs#L7[trait_impl_missing_assoc_item.rs]
141+
142+
Diagnoses missing trait items in a trait impl.
143+
144+
145+
=== trait-impl-orphan
146+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs#L5[trait_impl_orphan.rs]
147+
148+
Only traits defined in the current crate can be implemented for arbitrary types
149+
150+
133151
=== type-mismatch
134152
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/type_mismatch.rs#L11[type_mismatch.rs]
135153

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
= Changelog #208
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:255eed40c45fcf108ba844b4ad126bdc4e7a18df[] +
7+
Release: release:2023-11-20[] (`v0.3.1740`)
8+
9+
== New Features
10+
11+
* pr:15891[] diagnose some orphan trait impl cases:
12+
+
13+
image::https://user-images.githubusercontent.com/308347/284157545-023795e0-8781-4352-87a1-56d393d8da19.png["Screenshot showing an error on `impl Copy for String`"]
14+
* pr:15895[] diagnose missing associated items in trait impls:
15+
+
16+
image::https://user-images.githubusercontent.com/308347/284159815-834d5686-99df-459e-b493-dca040e73394.png["Screenshot showing an error on a trait implementation with a missing associated const value"]
17+
* pr:15893[] diagnose incorrect unsafety for trait impls:
18+
+
19+
image::https://user-images.githubusercontent.com/308347/284161150-7cedb948-b5b8-4b12-9249-0bd402c763a3.png["Screenshot showing an error on a safe trait implementation of an unsafe trait, and on an unsafe implementation of a safe trait"]
20+
21+
== Fixes
22+
23+
* pr:15901[] diagnose everything in nested items.
24+
* pr:15903[] make `line!` and `column!` expand to literals.
25+
26+
== Internal Improvements
27+
28+
* pr:15875[] fix `PathSegment` grammar.
29+
* pr:15899[], pr:15917[] sync from downstream.
30+
* pr:15874[] migrate assists to the structured snippet API, part 4.
31+
* pr:15925[] remove debugging code in path resolution.
32+
* pr:15902[], pr:15913[] bump some deps.
33+
* pr:15830[] VS Code: expose workspaces to other extensions, remove `addProject` command.
34+
* pr:15900[] disable VSIX builds for `win32-ia32`, which VS Code no longer supports.
35+
* pr:15904[] bump minimum supported VS Code to 1.78.

0 commit comments

Comments
 (0)