about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2023-10-28 01:07:37 -0700
committerGitHub <noreply@github.com>2023-10-28 01:07:37 -0700
commit87a564d271999dafcc9bcfdcca33fd5fa60b0e58 (patch)
treece26f707f807146ed11cb953d7f435b70f6461f7 /src
parent9f631d0c233790cd7aeef53f2e0409cc038c8ba4 (diff)
parent84a1a689ccc8eb6b8be48f3385bc9b0aeb5c71a6 (diff)
downloadrust-87a564d271999dafcc9bcfdcca33fd5fa60b0e58.tar.gz
rust-87a564d271999dafcc9bcfdcca33fd5fa60b0e58.zip
Rollup merge of #117025 - Urgau:cleanup-improve-check-cfg-impl, r=petrochenkov
Cleanup and improve `--check-cfg` implementation

This PR removes some indentation in the code, as well as preventing some bugs/misusages and fix a nit in the doc.

r? ```@petrochenkov``` (maybe)
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/check-cfg.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/check-cfg.md b/src/doc/unstable-book/src/compiler-flags/check-cfg.md
index 7a3ef5e9e2b..0e15c79076f 100644
--- a/src/doc/unstable-book/src/compiler-flags/check-cfg.md
+++ b/src/doc/unstable-book/src/compiler-flags/check-cfg.md
@@ -139,7 +139,7 @@ fn do_mumble_frotz() {}
 
 ```bash
 # This turns on checking for feature values, but not for condition names.
-rustc --check-cfg 'configure(feature, values("zapping", "lasers"))' \
+rustc --check-cfg 'cfg(feature, values("zapping", "lasers"))' \
       --check-cfg 'cfg(any())' \
       --cfg 'feature="zapping"' -Z unstable-options
 ```