From 98d25e3de9d75679c0c143a3282c15cb02234659 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 8 Aug 2014 10:18:58 +0200 Subject: [PATCH] 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. --- src/components/script/dom/bindings/codegen/CodegenRust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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