diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-08-08 10:18:58 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-08-08 10:28:44 +0200 |
commit | 98d25e3de9d75679c0c143a3282c15cb02234659 (patch) | |
tree | f0f22598498d149752f4fac12e015a4f33f5fa53 /src/components/script/dom/bindings/codegen | |
parent | 9d1a495a4eae25a39b0be571ea1675123e18831f (diff) | |
download | servo-98d25e3de9d75679c0c143a3282c15cb02234659.tar.gz servo-98d25e3de9d75679c0c143a3282c15cb02234659.zip |
Correct the fallibility of proxy operations in the *Methods trait (fixes #3041).
A typo caused us to use the fallibility of the last normal method in the
interface.
Diffstat (limited to 'src/components/script/dom/bindings/codegen')
-rw-r--r-- | src/components/script/dom/bindings/codegen/CodegenRust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py index dd05ac4f881..a7b00cd52a7 100644 --- a/src/components/script/dom/bindings/codegen/CodegenRust.py +++ b/src/components/script/dom/bindings/codegen/CodegenRust.py @@ -4023,7 +4023,7 @@ class CGInterfaceTrait(CGThing): assert len(operation.signatures()) == 1 rettype, arguments = operation.signatures()[0] - infallible = 'infallible' in descriptor.getExtendedAttributes(m) + infallible = 'infallible' in descriptor.getExtendedAttributes(operation) arguments = method_arguments(rettype, arguments, ("found", "&mut bool")) rettype = return_type(rettype, infallible) yield name, arguments, rettype |