Skip to content

Commit

Permalink
servo: Merge #10152 - Fix #9511. Export webidl enums using "pub use" …
Browse files Browse the repository at this point in the history
…(from jdm:9511-rebase); r=nox

Change typedef codegen to export the underlying enum itself, rather
than an alias. Works around rust-lang/rust#31355

Rebase of #9691.

Source-Repo: https://github.com/servo/servo
Source-Revision: edcf24fd4d39e86548717ecdfe36e2f1df30daac

UltraBlame original commit: 00562e792f94bec284362eb890efac88f6ce30c2
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent b7380c9 commit e6976dc
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions servo/components/script/dom/bindings/codegen/CodegenRust.py
Original file line number Diff line number Diff line change
Expand Up @@ -40425,10 +40425,22 @@
"
\
npub
type
use
dom
:
:
bindings
:
:
codegen
:
:
UnionTypes
:
:
%
s
=
as
%
s
;
Expand All @@ -40438,25 +40450,16 @@
n
"
%
(
t
.
innerType
t
.
identifier
.
name
"
UnionTypes
:
:
"
+
str
(
t
.
innerType
)
)
)
]
Expand Down

0 comments on commit e6976dc

Please sign in to comment.