[INFO] fetching crate emacs_module_bindings 0.7.0... [INFO] testing emacs_module_bindings-0.7.0 against try#eafdee2dfae8c2233b74f98b123308be7ccefcc6 for pr-79296 [INFO] extracting crate emacs_module_bindings 0.7.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate emacs_module_bindings 0.7.0 on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate emacs_module_bindings 0.7.0 [INFO] finished tweaking crates.io crate emacs_module_bindings 0.7.0 [INFO] tweaked toml for crates.io crate emacs_module_bindings 0.7.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bindgen v0.32.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3cce260d44380881c4be79e25be2434c6e28d0b8470ae7702fa7db779a32c230 [INFO] running `Command { std: "docker" "start" "-a" "3cce260d44380881c4be79e25be2434c6e28d0b8470ae7702fa7db779a32c230", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cce260d44380881c4be79e25be2434c6e28d0b8470ae7702fa7db779a32c230", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cce260d44380881c4be79e25be2434c6e28d0b8470ae7702fa7db779a32c230", kill_on_drop: false }` [INFO] [stdout] 3cce260d44380881c4be79e25be2434c6e28d0b8470ae7702fa7db779a32c230 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 509caa8606f28fbba81054bfcc67b482b0bd33bb32c472ea0f296271e4a2bd58 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "509caa8606f28fbba81054bfcc67b482b0bd33bb32c472ea0f296271e4a2bd58", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling libloading v0.4.3 [INFO] [stderr] Compiling bindgen v0.32.3 [INFO] [stderr] Compiling clang-sys v0.21.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v1.0.5 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling env_logger v0.4.3 [INFO] [stderr] Compiling cexpr v0.2.3 [INFO] [stderr] Compiling emacs_module_bindings v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:29:42 [INFO] [stdout] | [INFO] [stdout] 29 | let doc = CString::new(doc).unwrap().as_ptr(); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:39:50 [INFO] [stdout] | [INFO] [stdout] 39 | let c_string = CString::new(string).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:59:49 [INFO] [stdout] | [INFO] [stdout] 59 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | intern (env, CString::new(feature).unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | pub extern "C" fn find_function(env: *mut EmacsEnv, name: &str) -> EmacsVal { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | ... doc: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | pub extern "C" fn intern_symbol(env: *mut EmacsEnv, name: String) -> EmacsVal { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | ... name: String, [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:77:56 [INFO] [stdout] | [INFO] [stdout] 77 | pub extern "C" fn provide(env: *mut EmacsEnv, feature: String) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:92:58 [INFO] [stdout] | [INFO] [stdout] 92 | pub extern "C" fn get_buffer(env: *mut EmacsEnv, buffer: String) -> EmacsVal { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:102:53 [INFO] [stdout] | [INFO] [stdout] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[*mut emacs_value_tag]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:102:65 [INFO] [stdout] | [INFO] [stdout] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.68s [INFO] running `Command { std: "docker" "inspect" "509caa8606f28fbba81054bfcc67b482b0bd33bb32c472ea0f296271e4a2bd58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "509caa8606f28fbba81054bfcc67b482b0bd33bb32c472ea0f296271e4a2bd58", kill_on_drop: false }` [INFO] [stdout] 509caa8606f28fbba81054bfcc67b482b0bd33bb32c472ea0f296271e4a2bd58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 666186c90adc5b1f34db3076cadd86f39875f7cbf52824092fe5abb612640f11 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "666186c90adc5b1f34db3076cadd86f39875f7cbf52824092fe5abb612640f11", kill_on_drop: false }` [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:29:42 [INFO] [stdout] | [INFO] [stdout] 29 | let doc = CString::new(doc).unwrap().as_ptr(); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:39:50 [INFO] [stdout] | [INFO] [stdout] 39 | let c_string = CString::new(string).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:59:49 [INFO] [stdout] | [INFO] [stdout] 59 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | intern (env, CString::new(feature).unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | pub extern "C" fn find_function(env: *mut EmacsEnv, name: &str) -> EmacsVal { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | ... doc: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | pub extern "C" fn intern_symbol(env: *mut EmacsEnv, name: String) -> EmacsVal { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | ... name: String, [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:77:56 [INFO] [stdout] | [INFO] [stdout] 77 | pub extern "C" fn provide(env: *mut EmacsEnv, feature: String) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling emacs_module_bindings v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:92:58 [INFO] [stdout] | [INFO] [stdout] 92 | pub extern "C" fn get_buffer(env: *mut EmacsEnv, buffer: String) -> EmacsVal { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:102:53 [INFO] [stdout] | [INFO] [stdout] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[*mut emacs_value_tag]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:102:65 [INFO] [stdout] | [INFO] [stdout] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:29:42 [INFO] [stdout] | [INFO] [stdout] 29 | let doc = CString::new(doc).unwrap().as_ptr(); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:39:50 [INFO] [stdout] | [INFO] [stdout] 39 | let c_string = CString::new(string).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:59:49 [INFO] [stdout] | [INFO] [stdout] 59 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | intern (env, CString::new(feature).unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | pub extern "C" fn find_function(env: *mut EmacsEnv, name: &str) -> EmacsVal { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | ... doc: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | pub extern "C" fn intern_symbol(env: *mut EmacsEnv, name: String) -> EmacsVal { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | ... name: String, [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:77:56 [INFO] [stdout] | [INFO] [stdout] 77 | pub extern "C" fn provide(env: *mut EmacsEnv, feature: String) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:92:58 [INFO] [stdout] | [INFO] [stdout] 92 | pub extern "C" fn get_buffer(env: *mut EmacsEnv, buffer: String) -> EmacsVal { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:102:53 [INFO] [stdout] | [INFO] [stdout] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[*mut emacs_value_tag]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:102:65 [INFO] [stdout] | [INFO] [stdout] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.68s [INFO] running `Command { std: "docker" "inspect" "666186c90adc5b1f34db3076cadd86f39875f7cbf52824092fe5abb612640f11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "666186c90adc5b1f34db3076cadd86f39875f7cbf52824092fe5abb612640f11", kill_on_drop: false }` [INFO] [stdout] 666186c90adc5b1f34db3076cadd86f39875f7cbf52824092fe5abb612640f11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c1e7d20a9a04dd24b97e084a7ebee07f5a5391bf71564d8eba60dc9f99d13ddf [INFO] running `Command { std: "docker" "start" "-a" "c1e7d20a9a04dd24b97e084a7ebee07f5a5391bf71564d8eba60dc9f99d13ddf", kill_on_drop: false }` [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:18:49 [INFO] [stderr] | [INFO] [stderr] 18 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:29:42 [INFO] [stderr] | [INFO] [stderr] 29 | let doc = CString::new(doc).unwrap().as_ptr(); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:39:50 [INFO] [stderr] | [INFO] [stderr] 39 | let c_string = CString::new(string).unwrap().as_ptr(); [INFO] [stderr] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:59:49 [INFO] [stderr] | [INFO] [stderr] 59 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:80:53 [INFO] [stderr] | [INFO] [stderr] 80 | intern (env, CString::new(feature).unwrap().as_ptr()) [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:15:59 [INFO] [stderr] | [INFO] [stderr] 15 | pub extern "C" fn find_function(env: *mut EmacsEnv, name: &str) -> EmacsVal { [INFO] [stderr] | ^^^^ not FFI-safe [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 4 tests [INFO] [stderr] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] test emacs_gen::bindgen_test_layout_emacs_runtime ... ok [INFO] [stderr] = help: consider using `*const u8` and a length instead [INFO] [stdout] test emacs_gen::bindgen_test_layout___fsid_t ... ok [INFO] [stderr] = note: string slices have no C equivalent [INFO] [stdout] test emacs_gen::bindgen_test_layout_emacs_env_25 ... ok [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:27:38 [INFO] [stderr] | [INFO] [stderr] 27 | ... doc: &str, [INFO] [stderr] | ^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider using `*const u8` and a length instead [INFO] [stderr] = note: string slices have no C equivalent [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:56:59 [INFO] [stderr] | [INFO] [stderr] 56 | pub extern "C" fn intern_symbol(env: *mut EmacsEnv, name: String) -> EmacsVal { [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:65:39 [INFO] [stderr] | [INFO] [stderr] 65 | ... name: String, [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:77:56 [INFO] [stderr] | [INFO] [stderr] 77 | pub extern "C" fn provide(env: *mut EmacsEnv, feature: String) { [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:92:58 [INFO] [stderr] | [INFO] [stderr] 92 | pub extern "C" fn get_buffer(env: *mut EmacsEnv, buffer: String) -> EmacsVal { [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:102:53 [INFO] [stderr] | [INFO] [stderr] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stderr] | ^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider using `*const u8` and a length instead [INFO] [stderr] = note: string slices have no C equivalent [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `[*mut emacs_value_tag]`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:102:65 [INFO] [stderr] | [INFO] [stderr] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider using a raw pointer instead [INFO] [stderr] = note: slices have no C equivalent [INFO] [stderr] [INFO] [stderr] warning: 13 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:18:49 [INFO] [stderr] | [INFO] [stderr] 18 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:29:42 [INFO] [stderr] | [INFO] [stderr] 29 | let doc = CString::new(doc).unwrap().as_ptr(); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:39:50 [INFO] [stderr] | [INFO] [stderr] 39 | let c_string = CString::new(string).unwrap().as_ptr(); [INFO] [stderr] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:59:49 [INFO] [stderr] | [INFO] [stderr] 59 | intern(env, CString::new(name).unwrap().as_ptr()) [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stdout] test emacs_gen::bindgen_test_layout_max_align_t ... FAILED [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] failures: [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] ---- emacs_gen::bindgen_test_layout_max_align_t stdout ---- [INFO] [stderr] [INFO] [stdout] thread 'emacs_gen::bindgen_test_layout_max_align_t' panicked at 'assertion failed: `(left == right)` [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] left: `24`, [INFO] [stderr] --> src/lib.rs:80:53 [INFO] [stdout] right: `32`: Size of: max_align_t', /opt/rustwide/target/debug/build/emacs_module_bindings-dc443e45dc20cc00/out/emacs_module.rs:3:11421 [INFO] [stderr] | [INFO] [stdout] stack backtrace: [INFO] [stderr] 80 | intern (env, CString::new(feature).unwrap().as_ptr()) [INFO] [stdout] 0: 0x56079b382aa0 - std::backtrace_rs::backtrace::libunwind::trace::h95fc93571932622e [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stderr] | | [INFO] [stdout] 1: 0x56079b382aa0 - std::backtrace_rs::backtrace::trace_unsynchronized::h4d0b90afc33151fd [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] | [INFO] [stdout] 2: 0x56079b382aa0 - std::sys_common::backtrace::_print_fmt::h93d302d001a3bf01 [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] 3: 0x56079b382aa0 - ::fmt::h7881e3a580134f9a [INFO] [stderr] [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stderr] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] 4: 0x56079b3a659c - core::fmt::write::h1857a60b204f1b6a [INFO] [stderr] --> src/lib.rs:15:59 [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/core/src/fmt/mod.rs:1078:17 [INFO] [stderr] | [INFO] [stdout] 5: 0x56079b37ef42 - std::io::Write::write_fmt::hd17811b9a5dec54b [INFO] [stderr] 15 | pub extern "C" fn find_function(env: *mut EmacsEnv, name: &str) -> EmacsVal { [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/io/mod.rs:1519:15 [INFO] [stderr] | ^^^^ not FFI-safe [INFO] [stdout] 6: 0x56079b3852d5 - std::sys_common::backtrace::_print::h3e3f9fed81bc11e9 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stderr] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] 7: 0x56079b3852d5 - std::sys_common::backtrace::print::hd22ac23fed5071c8 [INFO] [stderr] = help: consider using `*const u8` and a length instead [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stderr] = note: string slices have no C equivalent [INFO] [stdout] 8: 0x56079b3852d5 - std::panicking::default_hook::{{closure}}::h1647bdcf68060e17 [INFO] [stderr] [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:208:50 [INFO] [stderr] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] 9: 0x56079b384e62 - std::panicking::default_hook::hb08853b392b9404b [INFO] [stderr] --> src/lib.rs:27:38 [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:222:9 [INFO] [stderr] | [INFO] [stdout] 10: 0x56079b385a71 - std::panicking::rust_panic_with_hook::h3624ee29da369ede [INFO] [stderr] 27 | ... doc: &str, [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:591:17 [INFO] [stderr] | ^^^^ not FFI-safe [INFO] [stdout] 11: 0x56079b3855b7 - std::panicking::begin_panic_handler::{{closure}}::hefcfcedcde6bb6d9 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:497:13 [INFO] [stderr] = help: consider using `*const u8` and a length instead [INFO] [stdout] 12: 0x56079b382f5c - std::sys_common::backtrace::__rust_end_short_backtrace::heb130cec93caa706 [INFO] [stderr] = note: string slices have no C equivalent [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stderr] [INFO] [stdout] 13: 0x56079b385519 - rust_begin_unwind [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:493:5 [INFO] [stderr] --> src/lib.rs:56:59 [INFO] [stdout] 14: 0x56079b3854cb - std::panicking::begin_panic_fmt::h37a25c59c4d54517 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:435:5 [INFO] [stderr] 56 | pub extern "C" fn intern_symbol(env: *mut EmacsEnv, name: String) -> EmacsVal { [INFO] [stdout] 15: 0x56079b3275ca - emacs_module_bindings::emacs_gen::bindgen_test_layout_max_align_t::h457d5f73ed1e2d3c [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stdout] at /opt/rustwide/target/debug/build/emacs_module_bindings-dc443e45dc20cc00/out/emacs_module.rs:3:11421 [INFO] [stderr] | [INFO] [stdout] 16: 0x56079b3273fa - emacs_module_bindings::emacs_gen::bindgen_test_layout_max_align_t::{{closure}}::h104fa97236df2cf1 [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] at /opt/rustwide/target/debug/build/emacs_module_bindings-dc443e45dc20cc00/out/emacs_module.rs:3:11380 [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stdout] 17: 0x56079b32c49e - core::ops::function::FnOnce::call_once::h240c7b04d8886472 [INFO] [stderr] [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/core/src/ops/function.rs:227:5 [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] 18: 0x56079b353eb3 - core::ops::function::FnOnce::call_once::h72b3efc134abec04 [INFO] [stderr] --> src/lib.rs:65:39 [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/core/src/ops/function.rs:227:5 [INFO] [stderr] | [INFO] [stdout] 19: 0x56079b353eb3 - test::__rust_begin_short_backtrace::hf76173a3f44f554b [INFO] [stderr] 65 | ... name: String, [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/test/src/lib.rs:516:5 [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stdout] 20: 0x56079b3525a8 - as core::ops::function::FnOnce>::call_once::h49f5b686efed1e06 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/alloc/src/boxed.rs:1318:9 [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] 21: 0x56079b3525a8 - as core::ops::function::FnOnce<()>>::call_once::h4879f836ca9aaead [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panic.rs:322:9 [INFO] [stderr] [INFO] [stdout] 22: 0x56079b3525a8 - std::panicking::try::do_call::h9655796ce3021b6c [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:379:40 [INFO] [stderr] --> src/lib.rs:77:56 [INFO] [stdout] 23: 0x56079b3525a8 - std::panicking::try::h346508ed448399f4 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:343:19 [INFO] [stderr] 77 | pub extern "C" fn provide(env: *mut EmacsEnv, feature: String) { [INFO] [stdout] 24: 0x56079b3525a8 - std::panic::catch_unwind::h00e84f4e9c3caaa0 [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panic.rs:396:14 [INFO] [stderr] | [INFO] [stdout] 25: 0x56079b3525a8 - test::run_test_in_process::hc80321f825c30106 [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/test/src/lib.rs:538:18 [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stdout] 26: 0x56079b3525a8 - test::run_test::run_test_inner::{{closure}}::h89c217441620999f [INFO] [stderr] [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/test/src/lib.rs:449:39 [INFO] [stderr] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] 27: 0x56079b32cb96 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3852ec0877008db6 [INFO] [stderr] --> src/lib.rs:92:58 [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stderr] | [INFO] [stdout] 28: 0x56079b33135d - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h7c7dfff4b938ae67 [INFO] [stderr] 92 | pub extern "C" fn get_buffer(env: *mut EmacsEnv, buffer: String) -> EmacsVal { [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/thread/mod.rs:474:17 [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stdout] 29: 0x56079b33135d - as core::ops::function::FnOnce<()>>::call_once::h8db0dd15c072a403 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panic.rs:322:9 [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] 30: 0x56079b33135d - std::panicking::try::do_call::haad8639857ae1187 [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:379:40 [INFO] [stderr] [INFO] [stdout] 31: 0x56079b33135d - std::panicking::try::h61de115e9dce60f6 [INFO] [stderr] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panicking.rs:343:19 [INFO] [stderr] --> src/lib.rs:102:53 [INFO] [stdout] 32: 0x56079b33135d - std::panic::catch_unwind::h50601fd82666a838 [INFO] [stderr] | [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/panic.rs:396:14 [INFO] [stderr] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] 33: 0x56079b33135d - std::thread::Builder::spawn_unchecked::{{closure}}::hac267391ef9d21bd [INFO] [stderr] | ^^^^ not FFI-safe [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/thread/mod.rs:473:30 [INFO] [stderr] | [INFO] [stdout] 34: 0x56079b33135d - core::ops::function::FnOnce::call_once{{vtable.shim}}::heb15d2d9c42706b7 [INFO] [stderr] = help: consider using `*const u8` and a length instead [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/core/src/ops/function.rs:227:5 [INFO] [stderr] = note: string slices have no C equivalent [INFO] [stdout] 35: 0x56079b38b05a - as core::ops::function::FnOnce>::call_once::h5446ed3fdb82006e [INFO] [stderr] [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/alloc/src/boxed.rs:1318:9 [INFO] [stderr] warning: `extern` fn uses type `[*mut emacs_value_tag]`, which is not FFI-safe [INFO] [stdout] 36: 0x56079b38b05a - as core::ops::function::FnOnce>::call_once::h62a21a889329a3f2 [INFO] [stderr] --> src/lib.rs:102:65 [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/alloc/src/boxed.rs:1318:9 [INFO] [stderr] | [INFO] [stdout] 37: 0x56079b38b05a - std::sys::unix::thread::Thread::new::thread_start::h62402416daf174b6 [INFO] [stderr] 102 | pub extern "C" fn call(env: *mut EmacsEnv, fn_name: &str, args: &mut [EmacsVal]) [INFO] [stdout] at /rustc/eafdee2dfae8c2233b74f98b123308be7ccefcc6/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] 38: 0x7f475a3ca609 - start_thread [INFO] [stderr] | [INFO] [stdout] 39: 0x7f475a19c293 - clone [INFO] [stderr] = help: consider using a raw pointer instead [INFO] [stdout] 40: 0x0 - [INFO] [stderr] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: 13 warnings emitted [INFO] [stdout] failures: [INFO] [stderr] [INFO] [stdout] emacs_gen::bindgen_test_layout_max_align_t [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/emacs_module_bindings-99008e5326d10324 [INFO] [stdout] test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c1e7d20a9a04dd24b97e084a7ebee07f5a5391bf71564d8eba60dc9f99d13ddf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1e7d20a9a04dd24b97e084a7ebee07f5a5391bf71564d8eba60dc9f99d13ddf", kill_on_drop: false }` [INFO] [stdout] c1e7d20a9a04dd24b97e084a7ebee07f5a5391bf71564d8eba60dc9f99d13ddf