diff --git a/generated_assists.adoc b/generated_assists.adoc index 72953a7a..fc3619fd 100644 --- a/generated_assists.adoc +++ b/generated_assists.adoc @@ -73,7 +73,7 @@ fn main() { [discrete] === `add_impl_default_members` -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L55[add_missing_impl_members.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L58[add_missing_impl_members.rs] Adds scaffold for overriding default impl members. @@ -110,7 +110,7 @@ impl Trait for () { [discrete] === `add_impl_missing_members` -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L13[add_missing_impl_members.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L16[add_missing_impl_members.rs] Adds scaffold for required impl members. @@ -2824,7 +2824,7 @@ fn main() { [discrete] === `qualify_path` -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/qualify_path.rs#L23[qualify_path.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/qualify_path.rs#L24[qualify_path.rs] If the name is unresolved, provides all possible qualified paths for it. diff --git a/generated_features.adoc b/generated_features.adoc index 7d5af005..9e587072 100644 --- a/generated_features.adoc +++ b/generated_features.adoc @@ -176,7 +176,7 @@ Displays the ItemTree of the currently open file, for debugging. === Expand Macro Recursively -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L15[expand_macro.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L16[expand_macro.rs] Shows the full macro expansion of the macro at the current caret position. @@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917 === Find All References -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L41[references.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L42[references.rs] Shows all references of the item at the cursor location @@ -334,7 +334,7 @@ Note: `?`, `|` and `->` do not currently trigger this behavior in the VSCode edi === Hover -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L100[hover.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L106[hover.rs] Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code. Focusing is usually hovering with a mouse, but can also be triggered with a shortcut. @@ -343,7 +343,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917 === Inlay Hints -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L452[inlay_hints.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L454[inlay_hints.rs] rust-analyzer shows additional information inline with the source code. Editors usually render this using read-only virtual text snippets interspersed with code. @@ -605,7 +605,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b === Related Tests -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L212[runnables.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L213[runnables.rs] Provides a sneak peek of all tests where the current item is used. @@ -620,7 +620,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**. === Rename -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L74[rename.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L70[rename.rs] Renames the item below the cursor and all of its references @@ -634,7 +634,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b === Run -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L112[runnables.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113[runnables.rs] Shows a popup suggesting to run a test/benchmark/binary **at the current cursor location**. Super useful for repeatedly running just a single test. Do bind this @@ -1003,7 +1003,7 @@ image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b === View Memory Layout -**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_memory_layout.rs#L73[view_memory_layout.rs] +**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_memory_layout.rs#L74[view_memory_layout.rs] Displays the recursive memory layout of a datatype. diff --git a/thisweek/_posts/2024-08-19-changelog-247.adoc b/thisweek/_posts/2024-08-19-changelog-247.adoc new file mode 100644 index 00000000..162147e9 --- /dev/null +++ b/thisweek/_posts/2024-08-19-changelog-247.adoc @@ -0,0 +1,41 @@ += Changelog #247 +:sectanchors: +:experimental: +:page-layout: post + +Commit: commit:fa003262474185fd62168379500fe906b331824b[] + +Release: release:2024-08-19[] (`v0.3.2078`) + +== New Features + +* pr:17845[] implement TAIT and fix ATPIT. +* pr:17853[] support `min_exhaustive_patterns`. +* pr:17595[] implement lifetime inference. +* pr:17915[] make rust-analyzer partially work while offline. + +== Fixes + +* pr:17833[] (first contribution) reuse recursion limit as expansion depth limit. +* pr:17900[] (first contribution) add option to exclude vendored libraries from SCIP/LSIF output. +* pr:17864[] build and run build scripts for LSIF. +* pr:17859[] support `#[rustc_deprecated_safe_2024]`. +* pr:17905[] properly account for editions in names. +* pr:17863[] resolve included files to their calling modules in IDE layer. +* pr:17865[] emit non-exhaustive let diagnostics for async and unsafe blocks. +* pr:17882[] fix panic while canonicalizing erroneous projection type. +* pr:17893[] fix panic on associated functions with type annotations. +* pr:17916[] fix panic while lowering `impl Trait` parameter of parent generics. +* pr:17867[] handle trailing excess comma in "Convert to named struct". + +== Internal Improvements + +* pr:17903[] (first contribution) don't kill the flycheck process command group. +* pr:17908[] test for word boundary in `FindUsages`. +* pr:17842[], pr:17843[] optimize channel usage. +* pr:17850[] send back empty responses while the VFS is still loading. +* pr:17876[] remove unreachable logic for include token mapping. +* pr:17896[] check the edition for edition-dependent syntax kinds. +* pr:17891[] be more resilient to bad language item definitions in binary operator inference. +* pr:17907[] replace `once_cell` with the `std` types. +* pr:17862[] fix auto-publishing workflow. +* pr:17909[] remove `rust-analyzer.workspace.discoverProjectRunner`.