mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Specify C ABI for generated extern functions in CodegenRust.py (#35278)
Extern functions without an explicit abi are deprecated in future versions of rust. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
d5daa31b1f
commit
eaaad757e8
1 changed files with 1 additions and 1 deletions
|
@ -2854,7 +2854,7 @@ class CGAbstractMethod(CGThing):
|
|||
decorators.append('unsafe')
|
||||
|
||||
if self.extern:
|
||||
decorators.append('extern')
|
||||
decorators.append('extern "C"')
|
||||
|
||||
if not decorators:
|
||||
return ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue