You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialize and Deserialize have code generated, but the resulting code does not retain #[cfg_attr(..., derive(Clone)] as it should. (or even just #[derive(Clone)], if codegen is supposed to evaluate cfgs.) But
This is a bit of a weird one.
See this commit for a needed workaround: servo/webrender@efd4e1d
With some analysis at servo/webrender#549 (comment) -- basically, given:
#[cfg_attr(all(unix, not(target_os = "macos")), derive(Clone, Serialize, Deserialize))]
Serialize
andDeserialize
have code generated, but the resulting code does not retain#[cfg_attr(..., derive(Clone)]
as it should. (or even just#[derive(Clone)]
, if codegen is supposed to evaluate cfgs.) But#[cfg_attr(not(any(target_os = "macos", target_os = "windows")), derive(Clone, Serialize, Deserialize))]
works. Can be reproduced by checking out webrender from servo/webrender@6a2f354 and building on linux.
The text was updated successfully, but these errors were encountered: