Skip to content

Commit 20007fd

Browse files
committed
Document rustc_private in metadata
1 parent d0a51d7 commit 20007fd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

crates/rust-analyzer/src/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ config_data! {
180180
runnables_cargoExtraArgs: Vec<String> = "[]",
181181

182182
/// Path to the rust compiler sources, for usage in rustc_private projects, or "discover"
183-
/// to try to automatically find it.
183+
/// to try to automatically find it. Any project which uses rust-analyzer with the rustcPrivate
184+
/// crates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.
184185
rustcSource : Option<String> = "null",
185186

186187
/// Additional arguments to `rustfmt`.

docs/user/generated_config.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
[[rust-analyzer.runnables.cargoExtraArgs]]rust-analyzer.runnables.cargoExtraArgs (default: `[]`)::
106106
Additional arguments to be passed to cargo for runnables such as tests or binaries.\nFor example, it may be `--release`.
107107
[[rust-analyzer.rustcSource]]rust-analyzer.rustcSource (default: `null`)::
108-
Path to the rust compiler sources, for usage in rustc_private projects, or "discover" to try to automatically find it.
108+
Path to the rust compiler sources, for usage in rustc_private projects, or "discover" to try to automatically find it. Any project which uses rust-analyzer with the rustcPrivate crates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.
109109
[[rust-analyzer.rustfmt.extraArgs]]rust-analyzer.rustfmt.extraArgs (default: `[]`)::
110110
Additional arguments to `rustfmt`.
111111
[[rust-analyzer.rustfmt.overrideCommand]]rust-analyzer.rustfmt.overrideCommand (default: `null`)::

editors/code/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@
707707
}
708708
},
709709
"rust-analyzer.rustcSource": {
710-
"markdownDescription": "Path to the rust compiler sources, for usage in rustc_private projects, or \"discover\" to try to automatically find it.",
710+
"markdownDescription": "Path to the rust compiler sources, for usage in rustc_private projects, or \"discover\" to try to automatically find it. Any project which uses rust-analyzer with the rustcPrivate crates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.",
711711
"default": null,
712712
"type": [
713713
"null",

0 commit comments

Comments
 (0)