docs: rust: add command line to rust-analyzer section
authorGuillaume Plourde <gplourde@protonmail.com>
Mon, 14 Aug 2023 15:07:22 +0000 (15:07 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 20 Aug 2023 21:16:39 +0000 (23:16 +0200)
Add command line to rust-analyzer section for convenience purposes.

Signed-off-by: Guillaume Plourde <gplourde@protonmail.com>
Link: https://lore.kernel.org/r/y4jBalhfESeCZDShmVaGwrdlIRoIHroqNVUUYLck6qGNwB5e7wbIJO5DoiLBTPpTNYtdneWRODjhXwlIl9VzokqxffdNU7y__1wIa7BBl94=@protonmail.com
[ Fixed indentation to tab and reworded title. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Documentation/rust/quick-start.rst

index 2cdf75eeae1d809baad6d22d6cf8ce9f65561475..1274cd74f76797664b29b1c895f5747317ecb6ff 100644 (file)
@@ -196,7 +196,9 @@ be used with many editors to enable syntax highlighting, completion, go to
 definition, and other features.
 
 ``rust-analyzer`` needs a configuration file, ``rust-project.json``, which
-can be generated by the ``rust-analyzer`` Make target.
+can be generated by the ``rust-analyzer`` Make target::
+
+       make LLVM=1 rust-analyzer
 
 
 Configuration