aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-12-19 22:09:02 -0800
committerGitHub <noreply@github.com>2016-12-19 22:09:02 -0800
commite13f0017931e7f87cad13a13e3fe4e9bcbb9c554 (patch)
tree681c4c9e06e1cb3c29589563db573868c5e6b464 /components/script/dom/bindings/codegen/CodegenRust.py
parent56f236724c5989c5b0e020e4f1c98feb63a4375f (diff)
parent53f502368592b53c1593271fc56be47459861d5a (diff)
downloadservo-e13f0017931e7f87cad13a13e3fe4e9bcbb9c554.tar.gz
servo-e13f0017931e7f87cad13a13e3fe4e9bcbb9c554.zip
Auto merge of #14644 - servo:ever-so-slightly-less-unstable, r=heycam
Ever so slightly less unstable <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14644) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 6329a81048f..d68b1adf33e 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -4260,7 +4260,9 @@ class CGUnionConversionStruct(CGThing):
return CGWrapper(
CGIndenter(jsConversion, 4),
- pre="unsafe fn TryConvertTo%s(cx: *mut JSContext, value: HandleValue) -> %s {\n" % (t.name, returnType),
+ # TryConvertToObject is unused, but not generating it while generating others is tricky.
+ pre="#[allow(dead_code)] unsafe fn TryConvertTo%s(cx: *mut JSContext, value: HandleValue) -> %s {\n"
+ % (t.name, returnType),
post="\n}")
def define(self):