mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Don't generate constructor IDs for inline interfaces
This commit is contained in:
parent
987b640c54
commit
3f91ce1d07
3 changed files with 6 additions and 4 deletions
|
@ -5796,7 +5796,7 @@ class CGNonNamespacedEnum(CGThing):
|
|||
entries = ["%s = %s" % (names[0], first)] + names[1:]
|
||||
|
||||
# Append a Last.
|
||||
entries.append('Last = ' + str(first + len(entries)))
|
||||
entries.append('#[allow(dead_code)] Last = ' + str(first + len(entries)))
|
||||
|
||||
# Indent.
|
||||
entries = [' ' + e for e in entries]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue