mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01: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')
|
decorators.append('unsafe')
|
||||||
|
|
||||||
if self.extern:
|
if self.extern:
|
||||||
decorators.append('extern')
|
decorators.append('extern "C"')
|
||||||
|
|
||||||
if not decorators:
|
if not decorators:
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue