about summary refs log tree commit diff
path: root/src/librustdoc/doctest.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-02-25 14:56:14 +0100
committerUrgau <urgau@numericable.fr>2024-04-15 21:49:55 +0200
commit909fcfcb6a01b9a811835ba001954e6c62b2a2bc (patch)
treeb83d43c1e4e41d2f835f5f2d99b3b935a8aa7f93 /src/librustdoc/doctest.rs
parent99d0186b1d0547eae913eff04be272c9d348b9b8 (diff)
downloadrust-909fcfcb6a01b9a811835ba001954e6c62b2a2bc.tar.gz
rust-909fcfcb6a01b9a811835ba001954e6c62b2a2bc.zip
Stabilize checking of cfgs at compile-time: --check-cfg option
Diffstat (limited to 'src/librustdoc/doctest.rs')
-rw-r--r--src/librustdoc/doctest.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs
index 22a3cf4d44d..0ad4c9c2346 100644
--- a/src/librustdoc/doctest.rs
+++ b/src/librustdoc/doctest.rs
@@ -60,11 +60,8 @@ pub(crate) fn generate_args_file(file_path: &Path, options: &RustdocOptions) ->
     for cfg in &options.cfgs {
         content.push(format!("--cfg={cfg}"));
     }
-    if !options.check_cfgs.is_empty() {
-        content.push("-Zunstable-options".to_string());
-        for check_cfg in &options.check_cfgs {
-            content.push(format!("--check-cfg={check_cfg}"));
-        }
+    for check_cfg in &options.check_cfgs {
+        content.push(format!("--check-cfg={check_cfg}"));
     }
 
     for lib_str in &options.lib_strs {