Bug 1548341 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Thanks for taking this!

That error is in Rust code that's generated during the build process.  You probably need to update some rust/C++ glue code to make this code get generated properly -- based on [https://hg.mozilla.org/mozilla-central/rev/85192f61b49e](a recent similar change for another ALL_CAPS_KEYWORD conversion), it looks like:
 - you need to add your new type to this list: https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/layout/style/ServoBindings.toml#59

 - you need to add a `gecko_enum_prefix` decl to the appropriate block, probably here:
https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/servo/components/style/properties/longhands/border.mako.rs#45


And you also might need to clobber your old build (`./mach clobber`) to get rid of the old generated code.  Though I suspect if you update those ^^ files, the relevant old stuff might get cleaned up & regenerated as part of the normal build process.
Thanks for taking this!

That error is in Rust code that's generated during the build process.  You probably need to update some rust/C++ glue code to make this code get generated properly -- based on [a recent similar change for another ALL_CAPS_KEYWORD conversion](https://hg.mozilla.org/mozilla-central/rev/85192f61b49e), it looks like:
 - you need to add your new type to this list: https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/layout/style/ServoBindings.toml#59

 - you need to add a `gecko_enum_prefix` decl to the appropriate block, probably here:
https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/servo/components/style/properties/longhands/border.mako.rs#45


And you also might need to clobber your old build (`./mach clobber`) to get rid of the old generated code.  Though I suspect if you update those ^^ files, the relevant old stuff might get cleaned up & regenerated as part of the normal build process.
Thanks for taking this!

That error is in Rust code that's generated during the build process.  You probably need to update some rust/C++ glue code to make this code get generated properly -- based on [a recent similar change for another ALL_CAPS_KEYWORD conversion](https://hg.mozilla.org/mozilla-central/rev/85192f61b49e), it looks like:
 - you need to add your new type to this list: https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/layout/style/ServoBindings.toml#59

 - you need to add a `gecko_enum_prefix` decl to the appropriate block, probably here:
https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/servo/components/style/properties/longhands/border.mako.rs#45

(See the .rs and .toml changes in the above-linked recent similar change for more.)

And you also might need to clobber your old build (`./mach clobber`) to get rid of the old generated code.  Though I suspect if you update those ^^ files, the relevant old stuff might get cleaned up & regenerated as part of the normal build process.

Back to Bug 1548341 Comment 2