Skip to content

Commit

Permalink
Changelog #246
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Aug 12, 2024
1 parent a44b2a9 commit 945467f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 11 deletions.
10 changes: 0 additions & 10 deletions generated_config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,6 @@ Unsetting this disables sysroot loading.

This option does not take effect until rust-analyzer is restarted.
--
[[rust-analyzer.cargo.sysrootQueryMetadata]]rust-analyzer.cargo.sysrootQueryMetadata (default: `false`)::
+
--
Whether to run cargo metadata on the sysroot library allowing rust-analyzer to analyze
third-party dependencies of the standard libraries.

This will cause `cargo` to create a lockfile in your sysroot directory. rust-analyzer
will attempt to clean up afterwards, but nevertheless requires the location to be
writable to.
--
[[rust-analyzer.cargo.sysrootSrc]]rust-analyzer.cargo.sysrootSrc (default: `null`)::
+
--
Expand Down
6 changes: 6 additions & 0 deletions generated_diagnostic.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
//! Generated by `cargo codegen diagnostics-docs`, do not edit by hand.

=== await-outside-of-async
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/await_outside_of_async.rs#L3[await_outside_of_async.rs]

This diagnostic is triggered if the `await` keyword is used outside of an async function or block


=== break-outside-of-loop
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs#L3[break_outside_of_loop.rs]

Expand Down
2 changes: 1 addition & 1 deletion generated_features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917


=== Magic Completions
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L43[lib.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L42[lib.rs]

In addition to usual reference completion, rust-analyzer provides some ✨magic✨
completions as well:
Expand Down
6 changes: 6 additions & 0 deletions manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ The `rust-analyzer` binary can be installed via https://brew.sh/[Homebrew].
$ brew install rust-analyzer
----

==== Windows

It is recommended to install the latest Microsoft Visual C++ Redistributable prior to installation.
Download links can be found
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist[here].

=== VS Code or VSCodium in Flatpak

Setting up `rust-analyzer` with a Flatpak version of Code is not trivial because of the Flatpak sandbox.
Expand Down
37 changes: 37 additions & 0 deletions thisweek/_posts/2024-08-12-changelog-246.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
= Changelog #246
:sectanchors:
:experimental:
:page-layout: post

Commit: commit:0daeb5c0b05cfdf2101b0f078c27539099bf38e6[] +
Release: release:2024-08-12[] (`v0.3.2070`)

== New Features

* pr:17791[] add diagnostic for `await` outside of `async`.
* pr:17795[] load sysroot library via `cargo metadata` (for toolchains after `176e54520 2024-08-04`).
* pr:17775[], pr:17824[] segregate syntax and semantic diagnostics to improve latency.
* pr:17771[] load VFS config changes in parallel.

== Fixes

* pr:17802[] supress type mismatches in calls with mismatched argument counts.
* pr:17823[] attach unconfigured diagnostics to the right file for modules.
* pr:17784[] support inlay hints for more expressions with labels.
* pr:17844[] respect non-`std` preference in `find_path`.
* pr:17805[] fix panic in `path_transform` with default type parameters.
* pr:17813[] fix type equality check for non-ADT types in usage search.
* pr:17832[] fix panic while rendering function type hint with `impl Trait` parameters.
* pr:17818[] support `.rust-project.json` in addition to `rust-project.json`.

== Internal Improvements

* pr:17825[] offload diagnostics serialization to the task pool.
* pr:17794[] turn `ErasedFileAstId` into a newtype.
* pr:17821[] remove unnecessary `CfgFlag` definition in `project-model`.
* pr:17809[] include vendored crates in `StaticIndex`.
* pr:17831[] merge `flycheck` into the main `rust-analyzer` crate.
* pr:17799[] split out `syntax-bridge` into a separate crate.
* pr:17772[] reorganize `debug.ts`.
* pr:17745[], pr:17827[] add missing repository and description fields to the crate manifests.
* pr:17793[] suggest installing the MSVC Redistributable in the manual.

0 comments on commit 945467f

Please sign in to comment.