Don't complain about unimplemented setters in release builds.

This commit is contained in:
Cameron McCormack 2016-05-27 11:40:13 +10:00
parent 55b0bb027c
commit 18f7fdd26a

View file

@ -420,11 +420,15 @@ impl ${style_struct.trait_name} for ${style_struct.gecko_struct_name} {
*/
% for longhand in stub_longhands:
fn set_${longhand.ident}(&mut self, _: longhands::${longhand.ident}::computed_value::T) {
if cfg!(debug_assertions) {
println!("stylo: Unimplemented property setter: ${longhand.name}");
}
}
fn copy_${longhand.ident}_from(&mut self, _: &Self) {
if cfg!(debug_assertions) {
println!("stylo: Unimplemented property setter: ${longhand.name}");
}
}
% if longhand.need_clone:
fn clone_${longhand.ident}(&self) -> longhands::${longhand.ident}::computed_value::T {
unimplemented!()