about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-30 12:00:14 +0000
committerbors <bors@rust-lang.org>2023-05-30 12:00:14 +0000
commite8dbb8e2e06d6fb0cb97c98eef27121e81370c93 (patch)
tree5b8884f022aa6ddb8fd992d8ebb48430e810d287 /docs
parent51c3ab5b85189b2430e438954dd792825c07ac87 (diff)
parentcea84427e00ad76b8400d45a84347b65d27dcef3 (diff)
downloadrust-e8dbb8e2e06d6fb0cb97c98eef27121e81370c93.tar.gz
rust-e8dbb8e2e06d6fb0cb97c98eef27121e81370c93.zip
Auto merge of #14911 - Veykril:config-cfg, r=Veykril
Allow setting cfgs

Fixes https://github.com/rust-lang/rust-analyzer/issues/14365
Diffstat (limited to 'docs')
-rw-r--r--docs/user/generated_config.adoc7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index c2f8c6c754f..dc97366eef1 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -71,6 +71,11 @@ cargo check --quiet --workspace --message-format=json --all-targets
 Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to
 avoid checking unnecessary things.
 --
+[[rust-analyzer.cargo.cfgs]]rust-analyzer.cargo.cfgs (default: `{}`)::
++
+--
+List of cfg options to enable with the given values.
+--
 [[rust-analyzer.cargo.extraArgs]]rust-analyzer.cargo.extraArgs (default: `[]`)::
 +
 --
@@ -120,7 +125,7 @@ Compilation target override (target triple).
 [[rust-analyzer.cargo.unsetTest]]rust-analyzer.cargo.unsetTest (default: `["core"]`)::
 +
 --
-Unsets `#[cfg(test)]` for the specified crates.
+Unsets the implicit `#[cfg(test)]` for the specified crates.
 --
 [[rust-analyzer.checkOnSave]]rust-analyzer.checkOnSave (default: `true`)::
 +