Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/rustdoc/doc-cfg/doc-cfg-implicit-gate.rs

9 lines
236 B
Rust
Raw Normal View History

[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ compile-flags:--cfg feature="worricow"
Put back the `doc_cfg` code behind a nightly feature
2025-04-11 14:32:31 +02:00
#![feature(doc_cfg)]
Make cfg implicitly imply doc(cfg) This is only active when the `doc_cfg` feature is active. The implicit cfg can be overridden via #[doc(cfg(...))], so e.g. to hide a #[cfg] you can use something like: ```rust #[cfg(unix)] #[doc(cfg(all()))] pub struct Unix; ``` (since `all()` is always true, it is never shown in the docs)
2020-11-03 19:45:16 +01:00
#![crate_name = "xenogenous"]
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has 'xenogenous/struct.Worricow.html'
Update rustdoc tests
2025-03-29 00:54:22 +01:00
//@ count - '//*[@class="stab portability"]' 1
Make cfg implicitly imply doc(cfg) This is only active when the `doc_cfg` feature is active. The implicit cfg can be overridden via #[doc(cfg(...))], so e.g. to hide a #[cfg] you can use something like: ```rust #[cfg(unix)] #[doc(cfg(all()))] pub struct Unix; ``` (since `all()` is always true, it is never shown in the docs)
2020-11-03 19:45:16 +01:00
#[cfg(feature = "worricow")]
pub struct Worricow;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 811ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API