Bug 1521732 - Part 4: fix SM rust binging test. r=fitzgen
authorYoshi Cheng-Hao Huang <allstars.chh@gmail.com>
Mon, 25 Mar 2019 06:39:25 +0000
changeset 466289 b48232ea7b093d787a1479510a80da7545303f53
parent 466288 66414629b2e353ef5740bd57da3a8ffdf39e5ce0
child 466290 13329efc586a66e30eec62128e22d6546e57131c
push id35764
push useraciure@mozilla.com
push dateWed, 27 Mar 2019 16:35:35 +0000
treeherdermozilla-central@16f19322ec76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfitzgen
bugs1521732
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521732 - Part 4: fix SM rust binging test. r=fitzgen StackGCVector and RootedVector are partial template specialization and cause cargo test failure. Bypass the classes by adding them to OPAQUE_TYPES. Depends on D23184 Differential Revision: https://phabricator.services.mozilla.com/D23185
js/rust/build.rs
--- a/js/rust/build.rs
+++ b/js/rust/build.rs
@@ -468,18 +468,20 @@ const WHITELIST_FUNCTIONS: &'static [&'s
 ///
 /// These are types which are too tricky for bindgen to handle, and/or use C++
 /// features that don't have an equivalent in rust, such as partial template
 /// specialization.
 const OPAQUE_TYPES: &'static [&'static str] = &[
     "JS::ReadOnlyCompileOptions",
     "mozilla::BufferList",
     "mozilla::UniquePtr.*",
+    "JS::RootedVector",
     "JS::Rooted<JS::Auto.*Vector.*>",
-    "JS::Auto.*Vector"
+    "JS::Auto.*Vector",
+    "JS::StackGCVector"
 ];
 
 /// Types for which we should NEVER generate bindings, even if it is used within
 /// a type or function signature that we are generating bindings for.
 const BLACKLIST_TYPES: &'static [&'static str] = &[
     // We provide our own definition because we need to express trait bounds in
     // the definition of the struct to make our Drop implementation correct.
     "JS::Heap",