From c49434726e22ba0ffedd505601c7001ea397f7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 18 Jan 2018 14:52:48 +0100 Subject: [PATCH] style: Skip a function for the static tests. --- ports/geckolib/tests/build.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ports/geckolib/tests/build.rs b/ports/geckolib/tests/build.rs index 7712698c4b8..bfb20d5af4e 100644 --- a/ports/geckolib/tests/build.rs +++ b/ports/geckolib/tests/build.rs @@ -39,6 +39,21 @@ fn main() { for line in r.lines() { let s = line.unwrap(); for cap in matcher.captures_iter(&s) { + // This causes a mismatch in old libclangs (the ones that are + // used in linux32 mozilla-central) because it generates: + // + // *const nsTArray<*const RawServoStyleSet> + // + // Instead of: + // + // *const nsTArray + // + // Which is not a problem, but would cause this to not compile. + // + // Skip this until libclang is updated there. + if &cap[1] == "InvalidateStyleForDocStateChanges" { + continue; + } w.write_all(format!(" [ Servo_{0}, bindings::Servo_{0} ];\n", &cap[1]).as_bytes()).unwrap(); } }