gecko-dev/servo
Emilio Cobos Álvarez 72c43d2bf2 Bug 1538661 - Simplify Owned FFI types. r=boris
And make them actually sound. We're defining functions on Rust-land that get
structs as arguments, but declaring them in C++ as getting pointers.

This is another step in order to be able to autogenerate ServoBindings.h and
remove bindings.rs altogether.

We remove FooOwned in favor of Owned<Foo>, which is generated via cbindgen.

It'd be good to actually mark Owned and such as MOZ_MUST_USE_TYPE, so I sent
https://github.com/eqrion/cbindgen/pull/307 for that.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 18:15:59 +00:00
..
components Bug 1538661 - Simplify Owned FFI types. r=boris 2019-03-26 18:15:59 +00:00
ports/geckolib Bug 1538661 - Simplify Owned FFI types. r=boris 2019-03-26 18:15:59 +00:00
tests/unit Bug 1518098 - Rename LengthOrPercentage to LengthPercentage. r=jwatt#style 2019-01-07 12:42:42 +00:00
moz.build Bug 1511811 - Use https for the MPL license URL. 2018-12-03 08:43:48 -05:00
rustfmt.toml Bug 1505618 - Add Servo's rustfmt.toml to the servo/ directory. r=heycam 2018-11-08 00:50:17 +01:00