Skip to content

Failing test on macOS #1619

@lopopolo

Description

@lopopolo

macOS 10.14.6

failures:

---- header_objc_template_h stdout ----



diff expected generated
--- expected: "/Users/lopopolo/dev/repos/rust-bindgen/tests/expectations/tests/libclang-5/objc_template.rs"
+++ generated from: "/Users/lopopolo/dev/repos/rust-bindgen/tests/headers/objc_template.h"
 /* automatically generated by rust-bindgen */

 #![allow(
     dead_code,
     non_snake_case,
     non_camel_case_types,
     non_upper_case_globals
 )]
 #![cfg(target_os = "macos")]

 #[macro_use]
 extern crate objc;
 #[allow(non_camel_case_types)]
 pub type id = *mut objc::runtime::Object;
 pub trait Foo {
-    unsafe fn get(self) -> *mut ObjectType;
+    unsafe fn get(self) -> u64;
 }
 impl Foo for id {
-    unsafe fn get(self) -> *mut ObjectType {
+    unsafe fn get(self) -> u64 {
         msg_send!(self, get)
     }
 }

thread 'header_objc_template_h' panicked at 'Header and binding differ! Run with BINDGEN_OVERWRITE_EXPECTED=1 in the environment to automatically overwrite the expectation.', /Users/lopopolo/dev/repos/rust-bindgen/target/debug/build/bindgen-543c1c6b7046c1ec/out/tests.rs:204:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.


failures:
    header_objc_template_h

test result: FAILED. 467 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test tests'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions