diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-19 05:56:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-19 05:56:01 -0800 |
commit | 28698dc8ba0501d3c7783e46ad3201cab5730d0b (patch) | |
tree | e181761551444fb4af4e0b655376758c1ceb4524 /components/script/dom/testbinding.rs | |
parent | d2ae3d8bedf99c97877ec944d94f2aa72e67478d (diff) | |
parent | fb8eb1db650e0902ee6909b4142c0e942a12943d (diff) | |
download | servo-28698dc8ba0501d3c7783e46ad3201cab5730d0b.tar.gz servo-28698dc8ba0501d3c7783e46ad3201cab5730d0b.zip |
Auto merge of #15589 - servo:RootedTraceable-union, r=nox
Use RootedTraceableBox for unions.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15589)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 1582647ca33..d9defc53770 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -435,7 +435,9 @@ impl TestBindingMethods for TestBinding { fn PassUnion6(&self, _: UnsignedLongOrBoolean) {} fn PassUnion7(&self, _: StringSequenceOrUnsignedLong) {} fn PassUnion8(&self, _: ByteStringSequenceOrLong) {} - fn PassUnion9(&self, _: UnionTypes::TestDictionaryOrLong) {} + fn PassUnion9(&self, _: RootedTraceableBox<UnionTypes::TestDictionaryOrLong>) {} + #[allow(unsafe_code)] + unsafe fn PassUnion10(&self, _: *mut JSContext, _: RootedTraceableBox<UnionTypes::StringOrObject>) {} fn PassUnionWithTypedef(&self, _: DocumentOrTestTypedef) {} fn PassUnionWithTypedef2(&self, _: LongSequenceOrTestTypedef) {} #[allow(unsafe_code)] |