mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
9d1a495a4e
commit
98d25e3de9
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