Bug 1753402 - Disable untagged union in Gecko profiler bindings. r=canaltinova

We don't use unions in the bindings, and rust is very picky with what
you can put on untagged unions, so disable them for now.

Differential Revision: https://phabricator.services.mozilla.com/D137837
This commit is contained in:
Emilio Cobos Álvarez 2022-02-04 13:53:28 +00:00
Родитель d46fcb69dc
Коммит c2003bb3e7
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -61,6 +61,7 @@ fn generate_bindings() {
let mut builder = Builder::default()
.enable_cxx_namespaces()
.with_codegen_config(CodegenConfig::TYPES | CodegenConfig::VARS | CodegenConfig::FUNCTIONS)
.disable_untagged_union()
.size_t_is_usize(true);
for dir in SEARCH_PATHS.iter() {