[PATCH] docs: update rust-analyzer command

In review
From:Onur Özkan <work@onurozkan.dev>
Date:
Message-ID:<20260513092017.265269-1-work@onurozkan.dev>
Patch:v1 · 1/1
Language:zh_CN
Patch-ID:096d021846e0ca4e22dc927bc9c9990000e78ede
Files:Documentation/rust/quick-start.rstDocumentation/translations/zh_CN/rust/quick-start.rst

Patch content 2 changed files

On a fresh checkout, generating rust-project.json alone is not enoughfor rust-analyzer to work reliably. The issue only becomes apparentlater when the LSP fails on a proc macro or binding types/functions. Recommend running prepare together with the rust-analyzer target so thegenerated files expected by rust-analyzer are available from the start. Link: https://rust-for-linux.zulipchat.com/#narrow/channel/597064-rust-analyzerSigned-off-by: Onur Özkan <work@onurozkan.dev>--- Documentation/rust/quick-start.rst                    | 2 +- Documentation/translations/zh_CN/rust/quick-start.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rstindex a6ec3fa94d33..df5b54b51deb 100644--- a/Documentation/rust/quick-start.rst+++ b/Documentation/rust/quick-start.rst@@ -314,7 +314,7 @@ definition, and other features. ``rust-analyzer`` needs a configuration file, ``rust-project.json``, which can be generated by the ``rust-analyzer`` Make target:: -	make LLVM=1 rust-analyzer+	make LLVM=1 prepare rust-analyzer   Configurationdiff --git a/Documentation/translations/zh_CN/rust/quick-start.rst b/Documentation/translations/zh_CN/rust/quick-start.rstindex 5f0ece6411f5..3f7efd3a63ad 100644--- a/Documentation/translations/zh_CN/rust/quick-start.rst+++ b/Documentation/translations/zh_CN/rust/quick-start.rst@@ -291,7 +291,7 @@ rust-analyzer ``rust-analyzer`` 需要一个配置文件, ``rust-project.json``, 它可以由 ``rust-analyzer`` Make 目标生成:: -       make LLVM=1 rust-analyzer+       make LLVM=1 prepare rust-analyzer   配置-- 2.51.2