Bug 1397937 - Prune unused FFI types with Linux 32-bit issues. r=emilio

MozReview-Commit-ID: 26UmO9RcGQm

--HG--
extra : rebase_source : a70cca90cecbba5ec8712bdfb7ee46c0ab54f418
This commit is contained in:
J. Ryan Stinnett 2017-09-07 18:00:43 -05:00
Родитель b0b0d844da
Коммит 832e5d3c2e
1 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -87,6 +87,18 @@ hide-types = [
"nsString", "nsString",
".*char_traits", ".*char_traits",
".*incompatible_char_type", ".*incompatible_char_type",
# JS::Value uses alignas(8) which bindgen can't represent correctly on Linux
# 32-bit. See https://github.com/rust-lang-nursery/rust-bindgen/issues/917.
# It's also not used by Stylo. The following types are also hidden for
# making use of it and being similarly unused by Stylo.
"JS::Value",
"mozilla::binding_danger::TErrorResult.*",
"mozilla::ErrorResult.*", # Causes JSWhyMagic to be included & handled incorrectly.
"mozilla::dom::CallbackFunction",
"mozilla::dom::CallbackObject.*",
"nsINode_ErrorResult",
"nsDOMAttributeMap_ErrorResult",
# End of JS::Value related types
] ]
bitfield-enums = [ bitfield-enums = [
"nsChangeHint", "nsChangeHint",
@ -325,9 +337,10 @@ opaque-types = [
"mozilla::Maybe", "mozilla::Maybe",
"gfxSize", # <- union { struct { T width; T height; }; T components[2] }; "gfxSize", # <- union { struct { T width; T height; }; T components[2] };
"gfxSize_Super", # Ditto. "gfxSize_Super", # Ditto.
"mozilla::ErrorResult", # Causes JSWhyMagic to be included & handled incorrectly.
"mozilla::StyleAnimationValue", "mozilla::StyleAnimationValue",
"StyleAnimationValue", # pulls in a whole bunch of stuff we don't need in the bindings "StyleAnimationValue", # pulls in a whole bunch of stuff we don't need in the bindings
"mozilla::dom::.*Callback", # Pulls in ErrorResult and other things that
# don't align properly on Linux 32-bit
] ]
mapped-generic-types = [ mapped-generic-types = [
{ generic = true, gecko = "mozilla::ServoUnsafeCell", servo = "::std::cell::UnsafeCell" }, { generic = true, gecko = "mozilla::ServoUnsafeCell", servo = "::std::cell::UnsafeCell" },