gecko-dev/xpcom
Valentin Gosu d16b0d8318 Bug 1552176 - Generate rust methods from cenum idl r=nika
This patch changes the xpidl parser to generate the rust trait code for
methods that take or return a cenum value.
Previously this would return an error, which means that adding a method
that uses cenums to an existing interface could cause rust code that
implements that interface to fail to build.

The generated methods take or return u8/u16/u32 depending on the width of the
enum. While this is not optimal (the parameter could contain values that are
not actually part of the enum), this is similar to what we do for nsLoadFlags.
In the future it would be nice to generate code that actually checks the
values are present in the enum, and to use a typedef instead of a plain
unsigned int.

Differential Revision: https://phabricator.services.mozilla.com/D51838

--HG--
extra : moz-landing-system : lando
2020-01-07 19:35:02 +00:00
..
base Bug 1030481 - Remove nsIMutable, r=smaug 2020-01-07 15:02:00 +00:00
build Bug 1030481 - Remove nsIMutable, r=smaug 2020-01-07 15:02:00 +00:00
components Bug 1241518 - Part 3: Switch various nsAutoPtr uses to UniquePtr in xpcom/ r=kmag 2020-01-07 00:06:05 +00:00
doc
ds Bug 1596476 - Remove nsuri_xbl static atom r=bholley 2020-01-08 04:44:33 +00:00
glue Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
idl-parser Bug 1552176 - Generate rust methods from cenum idl r=nika 2020-01-07 19:35:02 +00:00
io Bug 1241518 - Part 2: Use Maybe instead of nsAutoPtr in nsInputStreamTee r=kmag 2020-01-07 00:06:02 +00:00
libxpt/xptcall
reflect Bug 1241518 - Part 1: Remove unused nsAutoPtr.h includes in xpcom/ r=kmag 2020-01-07 00:06:01 +00:00
rust Bug 1587468 - Update uuid to 0.8.1. r=webdriver-reviewers,whimboo,emilio 2019-12-06 00:47:50 +00:00
string Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj 2020-01-07 21:37:12 +00:00
system Bug 1470591 - Part 1: Add a new process type for ForkServer. r=gsvelto 2019-12-05 00:03:29 +00:00
tests Bug 1241518 - Part 1: Remove unused nsAutoPtr.h includes in xpcom/ r=kmag 2020-01-07 00:06:01 +00:00
threads Bug 1241518 - Part 4: Switch nsThread to use UniquePtr r=KrisWright,kmag 2020-01-07 00:06:08 +00:00
windbgdlg
xpidl
moz.build
xpcom-config.h.in Bug 1570982 - remove CPP_THROW_NEW; r=glandium 2019-08-14 01:32:41 +00:00
xpcom-private.h.in