about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-07 16:18:27 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-09-27 11:29:48 +0200
commit18df897221c57941956f77ef1f92261cf983577d (patch)
treeb4b3b4870b316c08bc604db4e87a47f92475a554
parent4847eaf6d25473ad1b8dab4d8d6cd62520f55e0e (diff)
downloadrust-18df897221c57941956f77ef1f92261cf983577d.tar.gz
rust-18df897221c57941956f77ef1f92261cf983577d.zip
Remove ui test for doc_cfg feature gate
-rw-r--r--tests/ui/feature-gates/feature-gate-doc_cfg.rs6
-rw-r--r--tests/ui/feature-gates/feature-gate-doc_cfg.stderr13
2 files changed, 5 insertions, 14 deletions
diff --git a/tests/ui/feature-gates/feature-gate-doc_cfg.rs b/tests/ui/feature-gates/feature-gate-doc_cfg.rs
index b12b8a10571..83053e8c8bf 100644
--- a/tests/ui/feature-gates/feature-gate-doc_cfg.rs
+++ b/tests/ui/feature-gates/feature-gate-doc_cfg.rs
@@ -1,2 +1,6 @@
-#[doc(cfg(unix))] //~ ERROR: `#[doc(cfg)]` is experimental
+//@ build-pass
+
+// FIXME: Remove this test once `doc_cfg` feature is completely removed.
+
+#[doc(cfg(unix))]
 fn main() {}
diff --git a/tests/ui/feature-gates/feature-gate-doc_cfg.stderr b/tests/ui/feature-gates/feature-gate-doc_cfg.stderr
deleted file mode 100644
index 5315aaeeb3e..00000000000
--- a/tests/ui/feature-gates/feature-gate-doc_cfg.stderr
+++ /dev/null
@@ -1,13 +0,0 @@
-error[E0658]: `#[doc(cfg)]` is experimental
-  --> $DIR/feature-gate-doc_cfg.rs:1:1
-   |
-LL | #[doc(cfg(unix))]
-   | ^^^^^^^^^^^^^^^^^
-   |
-   = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
-   = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
-   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0658`.