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.
This commit is contained in:
Ms2ger 2014-08-08 10:18:58 +02:00
parent 9d1a495a4e
commit 98d25e3de9

View file

@ -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