style: Require documentation also for a Gecko build.

This commit is contained in:
Emilio Cobos Álvarez 2017-01-02 04:59:15 +01:00
parent 2cebd3bc96
commit a8fdf5b6b9
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -26,7 +26,7 @@
#![cfg_attr(feature = "servo", feature(proc_macro))] #![cfg_attr(feature = "servo", feature(proc_macro))]
#![deny(warnings)] #![deny(warnings)]
#![cfg_attr(feature = "servo", deny(missing_docs))] #![deny(missing_docs)]
// FIXME(bholley): We need to blanket-allow unsafe code in order to make the // FIXME(bholley): We need to blanket-allow unsafe code in order to make the
// gecko atom!() macro work. When Rust 1.14 is released [1], we can uncomment // gecko atom!() macro work. When Rust 1.14 is released [1], we can uncomment
@ -150,7 +150,7 @@ use style_traits::ToCss;
#[cfg(feature = "servo")] pub use html5ever_atoms::Namespace; #[cfg(feature = "servo")] pub use html5ever_atoms::Namespace;
/// The CSS properties supported by the style system. /// The CSS properties supported by the style system.
// Generated from the properties.mako.rs template by build.rs /// Generated from the properties.mako.rs template by build.rs
#[macro_use] #[macro_use]
#[allow(unsafe_code)] #[allow(unsafe_code)]
#[deny(missing_docs)] #[deny(missing_docs)]
@ -159,7 +159,7 @@ pub mod properties {
} }
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
#[allow(unsafe_code)] #[allow(unsafe_code, missing_docs)]
pub mod gecko_properties { pub mod gecko_properties {
include!(concat!(env!("OUT_DIR"), "/gecko_properties.rs")); include!(concat!(env!("OUT_DIR"), "/gecko_properties.rs"));
} }