mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
commit
bf3954c8d8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue