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

Commit

Permalink
Replace cfg(rustdoc) with cfg(doc)
Browse files Browse the repository at this point in the history
`cfg(doc)` has been stabilized in rust-lang/rust#61351.
  • Loading branch information
yvt committed Jan 1, 2020
1 parent 8794f71 commit 47b6dc1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tcw3/pal/src/iface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl<T: Wm, TLayer: Debug> Debug for WndAttrs<'_, T, TLayer> {
}
}

#[cfg_attr(rustdoc, svgbobdoc::transform)]
#[cfg_attr(doc, svgbobdoc::transform)]
/// Specifies layer attributes.
#[allow(clippy::option_option)] // for consistency between fields
#[derive(Debug, Clone)]
Expand Down
1 change: 0 additions & 1 deletion tcw3/pal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//!
//! This crate is reexported by TCW3 as `tcw3::pal`.
#![feature(const_fn)] // `'static` bounds on `const fn` parameters
#![feature(doc_cfg)] // `cfg(rustdoc)`
#![feature(is_sorted)] // `<[_]>::is_sorted`
#![feature(unsized_locals)] // Call `dyn FnOnce`
#![allow(clippy::float_cmp)]
Expand Down
1 change: 0 additions & 1 deletion tcw3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
//! - **Color management**: Color values are specified in the sRGB color space,
//! unless otherwise specified.
//!
#![feature(doc_cfg)] // `cfg(rustdoc)`
#![feature(unsized_locals)] // Call `dyn FnOnce`
#![feature(const_if_match)] // `if` and `match` in `const fn`
#![feature(const_fn)] // conditional expressions in `const fn`
Expand Down
2 changes: 1 addition & 1 deletion tcw3/src/ui/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use cggeom::{prelude::*, Box2};
use crate::uicore::SizeTraits;

bitflags! {
#[cfg_attr(rustdoc, svgbobdoc::transform)]
#[cfg_attr(doc, svgbobdoc::transform)]
/// Describes how to align a layout element within the containing box.
///
/// ```svgbob
Expand Down

0 comments on commit 47b6dc1

Please sign in to comment.