From nobody Fri Jun 12 18:33:16 2026 Received: from mail-106111.protonmail.ch (mail-106111.protonmail.ch [79.135.106.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4263E3E4C7A for ; Wed, 13 May 2026 09:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.135.106.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778664046; cv=none; b=hODUzMiFvOogWYFRz+WM+aVBaQ+2cGxLV26iQvIrBfnGRWqggUqe9SrNO/sSRIhMwLFdD6MJ63fV91OlI0BX2v2eY/qkugCOTlXtkw4wUo7y7nOL7IiDX9tpsAXW0f5lSPD+XZJZSZ0j+dp1Gkpo7PwAHLTYMnswMWAYNC/woA0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778664046; c=relaxed/simple; bh=Sv+JR1aGeL7VpxBUYQEz5vjPDK9PnJNOBpxT62UZ348=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NOD56yiYHiKE+MsffzlfukFxo44+OFbXO8xxX8vbFdIP1ZmB24iY9BjWELKmto9qsD4dsWmpmkiZOzghPKAQwneYLkrydDNDDiWSlvoh8VRBa7u98p6jLwE52WRx2/satT3P2w6P3hd8aA+N0a5MLMfs+7Rewb2CqKF9HWlq7wk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=onurozkan.dev; spf=pass smtp.mailfrom=onurozkan.dev; dkim=pass (2048-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b=G4nyD1Pr; arc=none smtp.client-ip=79.135.106.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b="G4nyD1Pr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onurozkan.dev; s=protonmail; t=1778664029; x=1778923229; bh=htjBDdNwXVb9k8aZRwnrOHi8Qta6rmdeLjangmCfvHU=; h=From:To:Cc:Subject:Date:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=G4nyD1PrVwh+zwkXiOhHwJUyJEAvpuu2XNSJhyo82TjvEmMBjgcI57JcWauGkRD1W 3ysCsbRJfPs2CTeyj2dGnIGHZaDS+gxu3LSljsx1zVnuK7lqL54C+nnDPkZ/qANd25 XYEGYvapO15SYWliqh5HYM1MDAKbCdgn2waRpdUMNlYvJ43apIPGSC6vNbft7EUsJT K13GopyvUKG00lJ6LSUdnBMQnZVm7lSAITog+R18QYxYMuJcT+EUSYjbVR3mHLJCEg XFU1lSYtKEmbTwEUUt0IhwSuIMRvLCULZ3pE5idTqKCqBFPsR1shNCahKWhcPU8G/o GmKVhc/GiJryg== X-Pm-Submission-Id: 4gFnxH0Fl3z2Scsm From: =?UTF-8?q?Onur=20=C3=96zkan?= To: rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, alexs@kernel.org, si.yanteng@linux.dev, dzm91@hust.edu.cn, =?UTF-8?q?Onur=20=C3=96zkan?= Subject: [PATCH] docs: update rust-analyzer command Date: Wed, 13 May 2026 12:19:53 +0300 Message-ID: <20260513092017.265269-1-work@onurozkan.dev> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On a fresh checkout, generating rust-project.json alone is not enough for rust-analyzer to work reliably. The issue only becomes apparent later when the LSP fails on a proc macro or binding types/functions. Recommend running prepare together with the rust-analyzer target so the generated files expected by rust-analyzer are available from the start. Link: https://rust-for-linux.zulipchat.com/#narrow/channel/597064-rust-anal= yzer Signed-off-by: Onur =C3=96zkan --- 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.rst index 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:: =20 - make LLVM=3D1 rust-analyzer + make LLVM=3D1 prepare rust-analyzer =20 =20 Configuration diff --git a/Documentation/translations/zh_CN/rust/quick-start.rst b/Docume= ntation/translations/zh_CN/rust/quick-start.rst index 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`` =E9=9C=80=E8=A6=81=E4=B8=80=E4=B8=AA=E9=85=8D=E7=BD=AE= =E6=96=87=E4=BB=B6=EF=BC=8C ``rust-project.json``, =E5=AE=83=E5=8F=AF=E4=BB= =A5=E7=94=B1 ``rust-analyzer`` Make =E7=9B=AE=E6=A0=87=E7=94=9F=E6=88=90:: =20 - make LLVM=3D1 rust-analyzer + make LLVM=3D1 prepare rust-analyzer =20 =20 =E9=85=8D=E7=BD=AE --=20 2.51.2