style: Skip a function for the static tests.

This commit is contained in:
Emilio Cobos Álvarez 2018-01-18 14:52:48 +01:00
parent e74fad6259
commit c49434726e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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<RawServoStyleSetBorrowed>
//
// 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();
}
}