From ed5c49c1022b94ec0b90cf7d131f2f02e0f2f139 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Thu, 6 Apr 2017 13:06:51 +1000 Subject: [PATCH] Add std::atomic to opaque_types in build_gecko Recent change in bug 1277709 makes ThreadSafeAutoRefCnt start using std::atomic, which somehow doesn't not have #[derive(Debug)] on Windows, which makes all objects which includes ThreadSafeAutoRefCnt to stop having #[derive(Debug)]. This breaks stylo build on Windows. By adding it as an opaque type, std::atomic would derive Debug again. --- components/style/build_gecko.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index fa7142b69a2..2e33ade635c 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -439,6 +439,7 @@ mod bindings { let opaque_types = [ "std::pair__PCCP", "std::namespace::atomic___base", "std::atomic__My_base", + "std::atomic", "std::atomic___base", "mozilla::gfx::.*", "FallibleTArray",