diff --git a/generated_config.adoc b/generated_config.adoc index ac95767e..2be338dd 100644 --- a/generated_config.adoc +++ b/generated_config.adoc @@ -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`):: + -- diff --git a/generated_diagnostic.adoc b/generated_diagnostic.adoc index f90d7363..9316291b 100644 --- a/generated_diagnostic.adoc +++ b/generated_diagnostic.adoc @@ -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] diff --git a/generated_features.adoc b/generated_features.adoc index ab5e0673..7d5af005 100644 --- a/generated_features.adoc +++ b/generated_features.adoc @@ -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: diff --git a/manual.adoc b/manual.adoc index a1777209..703ec669 100644 --- a/manual.adoc +++ b/manual.adoc @@ -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. diff --git a/thisweek/_posts/2024-08-12-changelog-246.adoc b/thisweek/_posts/2024-08-12-changelog-246.adoc new file mode 100644 index 00000000..627aca2c --- /dev/null +++ b/thisweek/_posts/2024-08-12-changelog-246.adoc @@ -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.