Merge pull request #3057 from Ms2ger/3041-method-trait

Correct the fallibility of proxy operations in the *Methods trait (fixes #3041); r=jdm
This commit is contained in:
Ms2ger 2014-08-08 14:16:04 +02:00
commit bf3954c8d8

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