diff options
author | Joshua Nelson <[email protected]> | 2021-03-08 21:56:42 +0000 |
---|---|---|
committer | Joshua Nelson <[email protected]> | 2021-03-08 21:56:42 +0000 |
commit | c7b0914b3fffc9fd648003c950cfff596c75edbf (patch) | |
tree | e1334a1311a552d820fc485e8340910e9866cf02 /crates | |
parent | c48478621fe9b50cb19bfd0ea4a5c2ff0de5d6ac (diff) |
Add more documentation for rustc_private
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 078c83f75..28e221271 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -180,10 +180,14 @@ config_data! { | |||
180 | /// tests or binaries.\nFor example, it may be `--release`. | 180 | /// tests or binaries.\nFor example, it may be `--release`. |
181 | runnables_cargoExtraArgs: Vec<String> = "[]", | 181 | runnables_cargoExtraArgs: Vec<String> = "[]", |
182 | 182 | ||
183 | /// Path to the rust compiler sources, for usage in rustc_private projects, or "discover" | 183 | /// Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private |
184 | /// to try to automatically find it. Any project which uses rust-analyzer with the rustcPrivate | 184 | /// projects, or "discover" to try to automatically find it. |
185 | /// | ||
186 | /// Any project which uses rust-analyzer with the rustcPrivate | ||
185 | /// crates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it. | 187 | /// crates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it. |
186 | rustcSource : Option<String> = "null", | 188 | /// |
189 | /// This option is not reloaded automatically; you must restart rust-analyzer for it to take effect. | ||
190 | rustcSource: Option<String> = "null", | ||
187 | 191 | ||
188 | /// Additional arguments to `rustfmt`. | 192 | /// Additional arguments to `rustfmt`. |
189 | rustfmt_extraArgs: Vec<String> = "[]", | 193 | rustfmt_extraArgs: Vec<String> = "[]", |