diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2023-10-28 01:07:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-28 01:07:37 -0700 |
| commit | 87a564d271999dafcc9bcfdcca33fd5fa60b0e58 (patch) | |
| tree | ce26f707f807146ed11cb953d7f435b70f6461f7 /src | |
| parent | 9f631d0c233790cd7aeef53f2e0409cc038c8ba4 (diff) | |
| parent | 84a1a689ccc8eb6b8be48f3385bc9b0aeb5c71a6 (diff) | |
| download | rust-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.md | 2 |
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 ``` |
