mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Convert specified value tests to compile-time tests
These were written at a time where std::mem::size_of wasn't a `const fn` in Rust. Now that it is, we can make these tests live in the style crate, and the build not to compile if they fail. Differential Revision: https://phabricator.services.mozilla.com/D146103
This commit is contained in:
parent
5f75d29aac
commit
9a7e8006e1
4 changed files with 35 additions and 4 deletions
|
@ -63,6 +63,8 @@ pub use servo_arc;
|
|||
#[macro_use]
|
||||
extern crate servo_atoms;
|
||||
#[macro_use]
|
||||
extern crate static_assertions;
|
||||
#[macro_use]
|
||||
extern crate style_derive;
|
||||
#[macro_use]
|
||||
extern crate to_shmem_derive;
|
||||
|
@ -186,7 +188,7 @@ pub mod gecko_properties {
|
|||
}
|
||||
|
||||
macro_rules! reexport_computed_values {
|
||||
( $( { $name: ident, $boxed: expr } )+ ) => {
|
||||
( $( { $name: ident } )+ ) => {
|
||||
/// Types for [computed values][computed].
|
||||
///
|
||||
/// [computed]: https://drafts.csswg.org/css-cascade/#computed
|
||||
|
@ -200,7 +202,6 @@ macro_rules! reexport_computed_values {
|
|||
}
|
||||
}
|
||||
longhand_properties_idents!(reexport_computed_values);
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
use crate::gecko_string_cache::WeakAtom;
|
||||
#[cfg(feature = "servo")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue