style: followup: Skip a rustest that depends on include order and isn't super-useful.

Bug: 1457026
Reviewed-by: bholley
MozReview-Commit-ID: 3lwAyl8aztW
This commit is contained in:
Emilio Cobos Álvarez 2018-04-26 19:11:35 +02:00
parent 14b05bead7
commit 29d5c47023
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -49,7 +49,16 @@ fn main() {
// Which is not a problem, but would cause this to not compile.
//
// Skip this until libclang is updated there.
if &cap[1] == "InvalidateStyleForDocStateChanges" {
//
// Also skip Servo_Element_IsDisplayContents because we
// forward-declare it in Element.h without the type bindgen uses
// to replace it by a reference, and it depends on the include
// order in ServoBindings.h. We have the same problem for
// ComputedStyle_{AddRef / Release}, we just don't hit it
// because they're included later...
if &cap[1] == "InvalidateStyleForDocStateChanges" ||
&cap[1] == "Element_IsDisplayContents"
{
continue;
}
w.write_all(format!(" [ Servo_{0}, bindings::Servo_{0} ];\n", &cap[1]).as_bytes()).unwrap();