Re: [PATCH] docs: update rust-analyzer command

From: Miguel Ojeda

Date: Wed May 13 2026 - 06:29:49 EST


On Wed, May 13, 2026 at 11:20 AM Onur Özkan <work@xxxxxxxxxxxxx> wrote:
>
> 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::
>
> - make LLVM=1 rust-analyzer
> + make LLVM=1 prepare rust-analyzer

Perhaps we should add a brief sentence after this code block
explaining why the `prepare` is there, e.g. adapted from the commit
message:

For the best experience, it is recommended to make ``prepare``
together with the ``rust-analyzer`` target so that all generated
files (e.g. proc macros) are available.

Cc'ing Tamir and Jesung.

Cheers,
Miguel