[INFO] fetching crate emacs_module_bindings 0.7.0... [INFO] checking emacs_module_bindings-0.7.0 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate emacs_module_bindings 0.7.0 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate emacs_module_bindings 0.7.0 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 41 packages [INFO] [stderr] Adding aho-corasick v0.6.10 (latest: v1.1.3) [INFO] [stderr] Adding bindgen v0.32.3 (latest: v0.69.4) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding cexpr v0.2.3 (latest: v0.6.0) [INFO] [stderr] Adding cfg-if v0.1.10 (latest: v1.0.0) [INFO] [stderr] Adding clang-sys v0.21.2 (latest: v1.7.0) [INFO] [stderr] Adding clap v2.34.0 (latest: v4.5.4) [INFO] [stderr] Adding env_logger v0.4.3 (latest: v0.11.3) [INFO] [stderr] Adding glob v0.2.11 (latest: v0.3.1) [INFO] [stderr] Adding hermit-abi v0.1.19 (latest: v0.3.9) [INFO] [stderr] Adding libloading v0.4.3 (latest: v0.8.3) [INFO] [stderr] Adding log v0.3.9 (latest: v0.4.21) [INFO] [stderr] Adding memchr v1.0.2 (latest: v2.7.2) [INFO] [stderr] Adding nom v3.2.1 (latest: v7.1.3) [INFO] [stderr] Adding peeking_take_while v0.1.2 (latest: v1.0.0) [INFO] [stderr] Adding proc-macro2 v0.2.3 (latest: v1.0.79) [INFO] [stderr] Adding quote v0.4.2 (latest: v1.0.35) [INFO] [stderr] Adding regex v0.2.11 (latest: v1.10.4) [INFO] [stderr] Adding regex-syntax v0.5.6 (latest: v0.8.3) [INFO] [stderr] Adding strsim v0.8.0 (latest: v0.11.1) [INFO] [stderr] Adding textwrap v0.11.0 (latest: v0.16.1) [INFO] [stderr] Adding thread_local v0.3.6 (latest: v1.1.8) [INFO] [stderr] Adding ucd-util v0.1.10 (latest: v0.2.1) [INFO] [stderr] Adding unicode-xid v0.1.0 (latest: v0.2.4) [INFO] [stderr] Adding which v1.0.5 (latest: v6.0.1) [INFO] [stderr] Adding winapi v0.2.8 (latest: v0.3.9) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v0.4.2 [INFO] [stderr] Downloaded clang-sys v0.21.2 [INFO] [stderr] Downloaded env_logger v0.4.3 [INFO] [stderr] Downloaded which v1.0.5 [INFO] [stderr] Downloaded libloading v0.4.3 [INFO] [stderr] Downloaded proc-macro2 v0.2.3 [INFO] [stderr] Downloaded memchr v1.0.2 [INFO] [stderr] Downloaded glob v0.2.11 [INFO] [stderr] Downloaded cexpr v0.2.3 [INFO] [stderr] Downloaded nom v3.2.1 [INFO] [stderr] Downloaded bindgen v0.32.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2533cab77dc19ea41a864b335731874f324ca3b4ff7332778728914b01f07255 [INFO] running `Command { std: "docker" "start" "-a" "2533cab77dc19ea41a864b335731874f324ca3b4ff7332778728914b01f07255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2533cab77dc19ea41a864b335731874f324ca3b4ff7332778728914b01f07255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2533cab77dc19ea41a864b335731874f324ca3b4ff7332778728914b01f07255", kill_on_drop: false }` [INFO] [stdout] 2533cab77dc19ea41a864b335731874f324ca3b4ff7332778728914b01f07255 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4934d8987906810c817842d3e97bcee0f83c43b580952ca060dda6b7fbd73f5 [INFO] running `Command { std: "docker" "start" "-a" "e4934d8987906810c817842d3e97bcee0f83c43b580952ca060dda6b7fbd73f5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.10 [INFO] [stderr] Compiling libloading v0.4.3 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling bindgen v0.32.3 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling clang-sys v0.21.2 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Compiling aho-corasick v0.6.10 [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.34.0 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling cexpr v0.2.3 [INFO] [stderr] Compiling env_logger v0.4.3 [INFO] [stderr] Compiling emacs_module_bindings v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/emacs_gen.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `regex` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate regex; [INFO] [stdout] | ------------------- the item `regex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/emacs_gen.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `regex` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate regex; [INFO] [stdout] | ------------------- the item `regex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [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] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [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: 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: `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: 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: `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: 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 `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: 16 warnings emitted [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] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [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: 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: `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: 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: `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: 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 `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: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:8888 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of f... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:11963 [INFO] [stdout] | [INFO] [stdout] 3 | ...! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , co... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:12222 [INFO] [stdout] | [INFO] [stdout] 3 | ...! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:13374 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_runtime > ( ) ) ) . size as * const _ as usize } , 0usize , concat ! ( "Offset of... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:13597 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_runtime > ( ) ) ) . private_members as * const _ as usize } , 8usize , concat ! (... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:13842 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_runtime > ( ) ) ) . get_environment as * const _ as usize } , 16usize , concat ! ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:19566 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . size as * const _ as usize } , 0usize , concat ! ( "Offset of ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:19787 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . private_members as * const _ as usize } , 8usize , concat ! ( ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:20030 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_global_ref as * const _ as usize } , 16usize , concat ! (... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:20274 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . free_global_ref as * const _ as usize } , 24usize , concat ! (... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:20518 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_check as * const _ as usize } , 32usize , conca... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:20772 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_clear as * const _ as usize } , 40usize , conca... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:21026 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_get as * const _ as usize } , 48usize , concat ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:21276 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_signal as * const _ as usize } , 56usize , conc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:21532 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_throw as * const _ as usize } , 64usize , conca... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:21786 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_function as * const _ as usize } , 72usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:22026 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . funcall as * const _ as usize } , 80usize , concat ! ( "Offset... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:22254 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . intern as * const _ as usize } , 88usize , concat ! ( "Offset ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:22480 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . type_of as * const _ as usize } , 96usize , concat ! ( "Offset... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:22708 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . is_not_nil as * const _ as usize } , 104usize , concat ! ( "Of... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:22943 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . eq as * const _ as usize } , 112usize , concat ! ( "Offset of ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:23162 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . extract_integer as * const _ as usize } , 120usize , concat ! ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:23407 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_integer as * const _ as usize } , 128usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:23646 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . extract_float as * const _ as usize } , 136usize , concat ! ( ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:23887 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_float as * const _ as usize } , 144usize , concat ! ( "Of... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:24122 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . copy_string_contents as * const _ as usize } , 152usize , conc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:24377 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_string as * const _ as usize } , 160usize , concat ! ( "O... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:24614 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_user_ptr as * const _ as usize } , 168usize , concat ! ( ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:24855 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . get_user_ptr as * const _ as usize } , 176usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:25094 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . set_user_ptr as * const _ as usize } , 184usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:25333 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . get_user_finalizer as * const _ as usize } , 192usize , concat... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:25584 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . set_user_finalizer as * const _ as usize } , 200usize , concat... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:25835 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . vec_get as * const _ as usize } , 208usize , concat ! ( "Offse... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:26064 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . vec_set as * const _ as usize } , 216usize , concat ! ( "Offse... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-b883d9e2eaf17636/out/emacs_module.rs:3:26293 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . vec_size as * const _ as usize } , 224usize , concat ! ( "Offs... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.51s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e4934d8987906810c817842d3e97bcee0f83c43b580952ca060dda6b7fbd73f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4934d8987906810c817842d3e97bcee0f83c43b580952ca060dda6b7fbd73f5", kill_on_drop: false }` [INFO] [stdout] e4934d8987906810c817842d3e97bcee0f83c43b580952ca060dda6b7fbd73f5 [INFO] checking emacs_module_bindings-0.7.0 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] extracting crate emacs_module_bindings 0.7.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate emacs_module_bindings 0.7.0 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fff2790f40937641c6d1036c3883ee7e9400b682375a6548e924c78d1dae0dd9 [INFO] running `Command { std: "docker" "start" "-a" "fff2790f40937641c6d1036c3883ee7e9400b682375a6548e924c78d1dae0dd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fff2790f40937641c6d1036c3883ee7e9400b682375a6548e924c78d1dae0dd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fff2790f40937641c6d1036c3883ee7e9400b682375a6548e924c78d1dae0dd9", kill_on_drop: false }` [INFO] [stdout] fff2790f40937641c6d1036c3883ee7e9400b682375a6548e924c78d1dae0dd9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58502798d3e7c7f5de7b7df83d92fabf22d14545fdee2c34223f9e683b17ebf5 [INFO] running `Command { std: "docker" "start" "-a" "58502798d3e7c7f5de7b7df83d92fabf22d14545fdee2c34223f9e683b17ebf5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.10 [INFO] [stderr] Compiling libloading v0.4.3 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling bindgen v0.32.3 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling clang-sys v0.21.2 [INFO] [stderr] Compiling aho-corasick v0.6.10 [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.34.0 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling cexpr v0.2.3 [INFO] [stderr] Compiling env_logger v0.4.3 [INFO] [stderr] Compiling emacs_module_bindings v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/emacs_gen.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `regex` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate regex; [INFO] [stdout] | ------------------- the item `regex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/emacs_gen.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `regex` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate regex; [INFO] [stdout] | ------------------- the item `regex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/hlapi.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [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] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [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: 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: `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: 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: `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: 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 `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: 16 warnings emitted [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] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [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: 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: `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: 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: `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: 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 `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: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:8888 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of f... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:11963 [INFO] [stdout] | [INFO] [stdout] 3 | ...! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , co... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:12222 [INFO] [stdout] | [INFO] [stdout] 3 | ...! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:13374 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_runtime > ( ) ) ) . size as * const _ as usize } , 0usize , concat ! ( "Offset of... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:13597 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_runtime > ( ) ) ) . private_members as * const _ as usize } , 8usize , concat ! (... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:13842 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_runtime > ( ) ) ) . get_environment as * const _ as usize } , 16usize , concat ! ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:19566 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . size as * const _ as usize } , 0usize , concat ! ( "Offset of ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:19787 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . private_members as * const _ as usize } , 8usize , concat ! ( ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:20030 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_global_ref as * const _ as usize } , 16usize , concat ! (... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:20274 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . free_global_ref as * const _ as usize } , 24usize , concat ! (... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:20518 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_check as * const _ as usize } , 32usize , conca... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:20772 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_clear as * const _ as usize } , 40usize , conca... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:21026 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_get as * const _ as usize } , 48usize , concat ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:21276 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_signal as * const _ as usize } , 56usize , conc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:21532 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . non_local_exit_throw as * const _ as usize } , 64usize , conca... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:21786 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_function as * const _ as usize } , 72usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:22026 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . funcall as * const _ as usize } , 80usize , concat ! ( "Offset... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:22254 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . intern as * const _ as usize } , 88usize , concat ! ( "Offset ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:22480 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . type_of as * const _ as usize } , 96usize , concat ! ( "Offset... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:22708 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . is_not_nil as * const _ as usize } , 104usize , concat ! ( "Of... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:22943 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . eq as * const _ as usize } , 112usize , concat ! ( "Offset of ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:23162 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . extract_integer as * const _ as usize } , 120usize , concat ! ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:23407 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_integer as * const _ as usize } , 128usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:23646 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . extract_float as * const _ as usize } , 136usize , concat ! ( ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:23887 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_float as * const _ as usize } , 144usize , concat ! ( "Of... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:24122 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . copy_string_contents as * const _ as usize } , 152usize , conc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:24377 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_string as * const _ as usize } , 160usize , concat ! ( "O... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:24614 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . make_user_ptr as * const _ as usize } , 168usize , concat ! ( ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:24855 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . get_user_ptr as * const _ as usize } , 176usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:25094 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . set_user_ptr as * const _ as usize } , 184usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:25333 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . get_user_finalizer as * const _ as usize } , 192usize , concat... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:25584 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . set_user_finalizer as * const _ as usize } , 200usize , concat... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:25835 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . vec_get as * const _ as usize } , 208usize , concat ! ( "Offse... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:26064 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . vec_set as * const _ as usize } , 216usize , concat ! ( "Offse... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/emacs_module_bindings-92d3ef98ba70369d/out/emacs_module.rs:3:26293 [INFO] [stdout] | [INFO] [stdout] 3 | ... ( unsafe { & ( * ( :: std :: ptr :: null :: < emacs_env_25 > ( ) ) ) . vec_size as * const _ as usize } , 224usize , concat ! ( "Offs... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.89s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "58502798d3e7c7f5de7b7df83d92fabf22d14545fdee2c34223f9e683b17ebf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58502798d3e7c7f5de7b7df83d92fabf22d14545fdee2c34223f9e683b17ebf5", kill_on_drop: false }` [INFO] [stdout] 58502798d3e7c7f5de7b7df83d92fabf22d14545fdee2c34223f9e683b17ebf5