Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit 47b6dc1

Browse files
committed
Replace cfg(rustdoc) with cfg(doc)
`cfg(doc)` has been stabilized in rust-lang/rust#61351.
1 parent 8794f71 commit 47b6dc1

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

tcw3/pal/src/iface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl<T: Wm, TLayer: Debug> Debug for WndAttrs<'_, T, TLayer> {
235235
}
236236
}
237237

238-
#[cfg_attr(rustdoc, svgbobdoc::transform)]
238+
#[cfg_attr(doc, svgbobdoc::transform)]
239239
/// Specifies layer attributes.
240240
#[allow(clippy::option_option)] // for consistency between fields
241241
#[derive(Debug, Clone)]

tcw3/pal/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//!
33
//! This crate is reexported by TCW3 as `tcw3::pal`.
44
#![feature(const_fn)] // `'static` bounds on `const fn` parameters
5-
#![feature(doc_cfg)] // `cfg(rustdoc)`
65
#![feature(is_sorted)] // `<[_]>::is_sorted`
76
#![feature(unsized_locals)] // Call `dyn FnOnce`
87
#![allow(clippy::float_cmp)]

tcw3/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! - **Color management**: Color values are specified in the sRGB color space,
66
//! unless otherwise specified.
77
//!
8-
#![feature(doc_cfg)] // `cfg(rustdoc)`
98
#![feature(unsized_locals)] // Call `dyn FnOnce`
109
#![feature(const_if_match)] // `if` and `match` in `const fn`
1110
#![feature(const_fn)] // conditional expressions in `const fn`

tcw3/src/ui/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use cggeom::{prelude::*, Box2};
55
use crate::uicore::SizeTraits;
66

77
bitflags! {
8-
#[cfg_attr(rustdoc, svgbobdoc::transform)]
8+
#[cfg_attr(doc, svgbobdoc::transform)]
99
/// Describes how to align a layout element within the containing box.
1010
///
1111
/// ```svgbob

0 commit comments

Comments
 (0)