diff options
| author | bors <bors@rust-lang.org> | 2024-10-04 15:28:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-04 15:28:24 +0000 |
| commit | c39f318c5e734e7f254c6b2589205d6ed936443d (patch) | |
| tree | a788869266b8bb5a43caf3b75e08afe075f2ca53 /tests/rustdoc-ui | |
| parent | 267cf8d3b20e98315c8e0ddf1d7020f60f664249 (diff) | |
| parent | 6d69af72bf10310d8a059d11decdbbdd5ef09f84 (diff) | |
| download | rust-c39f318c5e734e7f254c6b2589205d6ed936443d.tar.gz rust-c39f318c5e734e7f254c6b2589205d6ed936443d.zip | |
Auto merge of #131237 - GuillaumeGomez:rollup-il2i7z7, r=GuillaumeGomez
Rollup of 4 pull requests Successful merges: - #131034 (Implement RFC3695 Allow boolean literals as cfg predicates) - #131202 (Use wide pointers consistenly across the compiler) - #131230 (Enable `--no-sandbox` option by default for rustdoc GUI tests) - #131232 (Week off of reviews to focus on docs) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc-ui')
| -rw-r--r-- | tests/rustdoc-ui/cfg-boolean-literal.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/cfg-boolean-literal.rs b/tests/rustdoc-ui/cfg-boolean-literal.rs new file mode 100644 index 00000000000..4d4e599bfee --- /dev/null +++ b/tests/rustdoc-ui/cfg-boolean-literal.rs @@ -0,0 +1,19 @@ +//@ check-pass + +#![feature(cfg_boolean_literals)] +#![feature(doc_cfg)] + +#[doc(cfg(false))] +pub fn foo() {} + +#[doc(cfg(true))] +pub fn bar() {} + +#[doc(cfg(any(true)))] +pub fn zoo() {} + +#[doc(cfg(all(true)))] +pub fn toy() {} + +#[doc(cfg(not(true)))] +pub fn nay() {} |
