mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Generate 'pub' before 'unsafe extern', if both are used.
This commit is contained in:
parent
b5412f3840
commit
1dcdc2859c
1 changed files with 3 additions and 3 deletions
|
@ -2178,13 +2178,13 @@ class CGAbstractMethod(CGThing):
|
|||
if self.alwaysInline:
|
||||
decorators.append('#[inline]')
|
||||
|
||||
if self.pub:
|
||||
decorators.append('pub')
|
||||
|
||||
if self.extern:
|
||||
decorators.append('unsafe')
|
||||
decorators.append('extern')
|
||||
|
||||
if self.pub:
|
||||
decorators.append('pub')
|
||||
|
||||
if not decorators:
|
||||
return ''
|
||||
return ' '.join(decorators) + ' '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue