Skip to content

Commit 0f66c05

Browse files
committed
Changelog #162
1 parent 6175112 commit 0f66c05

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

generated_assists.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ fn ┃fun_name(n: i32) {
761761

762762
[discrete]
763763
=== `extract_module`
764-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_module.rs#L30[extract_module.rs]
764+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_module.rs#L32[extract_module.rs]
765765

766766
Extracts a selected region as separate module. All the references, visibility and imports are
767767
resolved.

generated_diagnostic.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ This diagnostic is triggered if an operation marked as `unsafe` is used outside
7575
This diagnostic is triggered if created structure does not have field provided in record.
7676

7777

78+
=== private-assoc-item
79+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/private_assoc_item.rs#L5[private_assoc_item.rs]
80+
81+
This diagnostic is triggered if the referenced associated item is not visible from the current
82+
module.
83+
84+
85+
=== private-field
86+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/private_field.rs#L3[private_field.rs]
87+
88+
This diagnostic is triggered if the accessed field is not visible from the current module.
89+
90+
7891
=== replace-filter-map-next-with-find-map
7992
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs#L11[replace_filter_map_next_with_find_map.rs]
8093

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
= Changelog #162
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:643bc02ded7141a462bc0c9357c8914f9d50fb06[] +
7+
Release: release:2023-01-02[]
8+
9+
== New Features
10+
11+
* pr:13870[], pr:13875[] diagnose private field and associated item accesses:
12+
+
13+
image::https://user-images.githubusercontent.com/308347/210206429-97b3e267-0984-4044-a15f-f9365a45fd3c.png["Screenshot showing an error when accessing a private field of a struct"]
14+
* pr:13856[] fix inference of `try {}` blocks:
15+
+
16+
image::https://user-images.githubusercontent.com/38225716/209875594-8bf9c9e2-9998-40b0-8820-28c7f2d9bae4.gif["Screen recording showing the inferred type of a `try { 42 }` block"]
17+
* pr:13857[] implement https://rust-lang.github.io/rfcs/0243-trait-based-exception-handling.html#throw-and-throws[yeeting]:
18+
+
19+
image::https://user-images.githubusercontent.com/38225716/209884633-4bba5eba-6dcc-4714-86cb-5c0d1f358364.png["Screenshot showing no type errors on `fn test() -> Result<(), u32> { do yeet 1 }`"]
20+
21+
== Fixes
22+
23+
* pr:13866[] (first contribution) use `rustc_safe_intrinsic` attribute to check for intrinsic safety.
24+
* pr:13867[] fall back to inaccessible associated functions and constants if no visible resolutions are found.
25+
* pr:13869[] improve exit point highlighting for `for` and `while` loops in tail position.
26+
* pr:13871[] merge multiple intersecting ranges to fix panic in "Extract module".
27+
28+
== Internal Improvements
29+
30+
* pr:13861[] (first contribution) derive `Hash` for `FileId`.
31+
* pr:13841[] fix a couple more Clippy lints.

0 commit comments

Comments
 (0)