[INFO] fetching crate dnssd 0.1.0... [INFO] testing dnssd-0.1.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate dnssd 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate dnssd 0.1.0 [INFO] finished tweaking crates.io crate dnssd 0.1.0 [INFO] tweaked toml for crates.io crate dnssd 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate dnssd 0.1.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] [stderr] Adding libc v0.1.12 (available: v0.2.174) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.1.12 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 066396d4c288f341e8576850d06c4e67633b4690f721cc0767d4a74001df48c8 [INFO] running `Command { std: "docker" "start" "-a" "066396d4c288f341e8576850d06c4e67633b4690f721cc0767d4a74001df48c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "066396d4c288f341e8576850d06c4e67633b4690f721cc0767d4a74001df48c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "066396d4c288f341e8576850d06c4e67633b4690f721cc0767d4a74001df48c8", kill_on_drop: false }` [INFO] [stdout] 066396d4c288f341e8576850d06c4e67633b4690f721cc0767d4a74001df48c8 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5e64eae18c73a37edf07873346b091f8a2126b1020989099beeb361963ed0299 [INFO] running `Command { std: "docker" "start" "-a" "5e64eae18c73a37edf07873346b091f8a2126b1020989099beeb361963ed0299", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling dnssd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/ffi.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | pub type DNSServiceDomainEnumReply = Option src/ffi.rs:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | pub type DNSServiceRegisterReply = Option src/ffi.rs:162:41 [INFO] [stdout] | [INFO] [stdout] 162 | pub type DNSServiceBrowseReply = Option src/ffi.rs:171:42 [INFO] [stdout] | [INFO] [stdout] 171 | pub type DNSServiceResolveReply = Option src/ffi.rs:182:49 [INFO] [stdout] | [INFO] [stdout] 182 | pub type DNSServiceRegisterRecordReply = Option src/ffi.rs:188:46 [INFO] [stdout] | [INFO] [stdout] 188 | pub type DNSServiceQueryRecordReply = Option src/ffi.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 201 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:336:56 [INFO] [stdout] | [INFO] [stdout] 336 | ... value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 336 - value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stdout] 336 + value : *const *const c_void) -> DNSServiceErrorType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let value_ptr = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/callback.rs:7:44 [INFO] [stdout] | [INFO] [stdout] 7 | pub type SafeDomainEnumReplyCallback = Box; [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | pub type SafeDomainEnumReplyCallback = Box src/callback.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | pub type SafeRegisterReplyCallback = Box; [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type SafeRegisterReplyCallback = Box src/callback.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub type SafeBrowseReplyCallback = Box; [INFO] [stdout] | |_________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | pub type SafeBrowseReplyCallback = Box src/callback.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SafeResolveReplyCallback = Box; [INFO] [stdout] | |___________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | pub type SafeResolveReplyCallback = Box src/callback.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | pub type SafeRegisterRecordReplyCallback = Box; [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 37 | pub type SafeRegisterRecordReplyCallback = Box src/callback.rs:42:45 [INFO] [stdout] | [INFO] [stdout] 42 | pub type SafeQueryRecordReplyCallback = Box, [INFO] [stdout] 50 | | u32) + 'static>; [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 | pub type SafeQueryRecordReplyCallback = Box src/utils.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | CString::new (new_string).unwrap ().as_ptr () [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | let new_string = value.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut StructDNSServiceRef` does not permit being left uninitialized [INFO] [stdout] --> src/service.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut StructDNSRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/service.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/txtrecord.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn get_value_ptr <'a, T> (&'a self, [INFO] [stdout] | ^^ these lifetimes flow to the output [INFO] [stdout] 98 | key : &'a str) -> Option> { [INFO] [stdout] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | these lifetimes flow to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 98 | key : &'a str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/txtrecord.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_item_at_index (&self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 122 | index : u16, [INFO] [stdout] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stdout] | ---------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*const *const libc::c_void` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let value_ptr = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "5e64eae18c73a37edf07873346b091f8a2126b1020989099beeb361963ed0299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e64eae18c73a37edf07873346b091f8a2126b1020989099beeb361963ed0299", kill_on_drop: false }` [INFO] [stdout] 5e64eae18c73a37edf07873346b091f8a2126b1020989099beeb361963ed0299 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 36e0e84fbc9984e78e4f34026a75c98f1582b07dd21bf99532d958d97b53d8ad [INFO] running `Command { std: "docker" "start" "-a" "36e0e84fbc9984e78e4f34026a75c98f1582b07dd21bf99532d958d97b53d8ad", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/ffi.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | pub type DNSServiceDomainEnumReply = Option src/ffi.rs:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | pub type DNSServiceRegisterReply = Option src/ffi.rs:162:41 [INFO] [stdout] | [INFO] [stdout] 162 | pub type DNSServiceBrowseReply = Option src/ffi.rs:171:42 [INFO] [stdout] | [INFO] [stdout] 171 | pub type DNSServiceResolveReply = Option src/ffi.rs:182:49 [INFO] [stdout] | [INFO] [stdout] 182 | pub type DNSServiceRegisterRecordReply = Option src/ffi.rs:188:46 [INFO] [stdout] | [INFO] [stdout] 188 | pub type DNSServiceQueryRecordReply = Option src/ffi.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 201 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:336:56 [INFO] [stdout] | [INFO] [stdout] 336 | ... value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 336 - value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stdout] 336 + value : *const *const c_void) -> DNSServiceErrorType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let value_ptr = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/callback.rs:7:44 [INFO] [stdout] | [INFO] [stdout] 7 | pub type SafeDomainEnumReplyCallback = Box; [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | pub type SafeDomainEnumReplyCallback = Box src/callback.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | pub type SafeRegisterReplyCallback = Box; [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type SafeRegisterReplyCallback = Box src/callback.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub type SafeBrowseReplyCallback = Box; [INFO] [stdout] | |_________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | pub type SafeBrowseReplyCallback = Box src/callback.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SafeResolveReplyCallback = Box; [INFO] [stdout] | |___________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | pub type SafeResolveReplyCallback = Box src/callback.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | pub type SafeRegisterRecordReplyCallback = Box; [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 37 | pub type SafeRegisterRecordReplyCallback = Box src/callback.rs:42:45 [INFO] [stdout] | [INFO] [stdout] 42 | pub type SafeQueryRecordReplyCallback = Box, [INFO] [stdout] 50 | | u32) + 'static>; [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 | pub type SafeQueryRecordReplyCallback = Box src/utils.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | CString::new (new_string).unwrap ().as_ptr () [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | let new_string = value.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut StructDNSServiceRef` does not permit being left uninitialized [INFO] [stdout] --> src/service.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut StructDNSRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/service.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/txtrecord.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn get_value_ptr <'a, T> (&'a self, [INFO] [stdout] | ^^ these lifetimes flow to the output [INFO] [stdout] 98 | key : &'a str) -> Option> { [INFO] [stdout] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | these lifetimes flow to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 98 | key : &'a str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling dnssd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/txtrecord.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_item_at_index (&self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 122 | index : u16, [INFO] [stdout] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stdout] | ---------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*const *const libc::c_void` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let value_ptr = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/ffi.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | pub type DNSServiceDomainEnumReply = Option src/ffi.rs:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | pub type DNSServiceRegisterReply = Option src/ffi.rs:162:41 [INFO] [stdout] | [INFO] [stdout] 162 | pub type DNSServiceBrowseReply = Option src/ffi.rs:171:42 [INFO] [stdout] | [INFO] [stdout] 171 | pub type DNSServiceResolveReply = Option src/ffi.rs:182:49 [INFO] [stdout] | [INFO] [stdout] 182 | pub type DNSServiceRegisterRecordReply = Option src/ffi.rs:188:46 [INFO] [stdout] | [INFO] [stdout] 188 | pub type DNSServiceQueryRecordReply = Option src/ffi.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 201 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:336:56 [INFO] [stdout] | [INFO] [stdout] 336 | ... value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 336 - value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stdout] 336 + value : *const *const c_void) -> DNSServiceErrorType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/callback.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/service.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/txtrecord.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let value_ptr = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/callback.rs:7:44 [INFO] [stdout] | [INFO] [stdout] 7 | pub type SafeDomainEnumReplyCallback = Box; [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | pub type SafeDomainEnumReplyCallback = Box src/callback.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | pub type SafeRegisterReplyCallback = Box; [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type SafeRegisterReplyCallback = Box src/callback.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub type SafeBrowseReplyCallback = Box; [INFO] [stdout] | |_________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | pub type SafeBrowseReplyCallback = Box src/callback.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SafeResolveReplyCallback = Box; [INFO] [stdout] | |___________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | pub type SafeResolveReplyCallback = Box src/callback.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | pub type SafeRegisterRecordReplyCallback = Box; [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 37 | pub type SafeRegisterRecordReplyCallback = Box src/callback.rs:42:45 [INFO] [stdout] | [INFO] [stdout] 42 | pub type SafeQueryRecordReplyCallback = Box, [INFO] [stdout] 50 | | u32) + 'static>; [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 | pub type SafeQueryRecordReplyCallback = Box src/utils.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | CString::new (new_string).unwrap ().as_ptr () [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | let new_string = value.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut StructDNSServiceRef` does not permit being left uninitialized [INFO] [stdout] --> src/service.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut StructDNSRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/service.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | ptr : unsafe { uninitialized () }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/txtrecord.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn get_value_ptr <'a, T> (&'a self, [INFO] [stdout] | ^^ these lifetimes flow to the output [INFO] [stdout] 98 | key : &'a str) -> Option> { [INFO] [stdout] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | these lifetimes flow to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 98 | key : &'a str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/txtrecord.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_item_at_index (&self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 122 | index : u16, [INFO] [stdout] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stdout] | ---------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*const *const libc::c_void` does not permit being left uninitialized [INFO] [stdout] --> src/txtrecord.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let value_ptr = uninitialized (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "36e0e84fbc9984e78e4f34026a75c98f1582b07dd21bf99532d958d97b53d8ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36e0e84fbc9984e78e4f34026a75c98f1582b07dd21bf99532d958d97b53d8ad", kill_on_drop: false }` [INFO] [stdout] 36e0e84fbc9984e78e4f34026a75c98f1582b07dd21bf99532d958d97b53d8ad [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4c192b7f7fc03d76c48558179623beabb84a84af74c43bea8adec6316d0f186e [INFO] running `Command { std: "docker" "start" "-a" "4c192b7f7fc03d76c48558179623beabb84a84af74c43bea8adec6316d0f186e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/ffi.rs:147:45 [INFO] [stderr] | [INFO] [stderr] 147 | pub type DNSServiceDomainEnumReply = Option src/ffi.rs:154:43 [INFO] [stderr] | [INFO] [stderr] 154 | pub type DNSServiceRegisterReply = Option src/ffi.rs:162:41 [INFO] [stderr] | [INFO] [stderr] 162 | pub type DNSServiceBrowseReply = Option src/ffi.rs:171:42 [INFO] [stderr] | [INFO] [stderr] 171 | pub type DNSServiceResolveReply = Option src/ffi.rs:182:49 [INFO] [stderr] | [INFO] [stderr] 182 | pub type DNSServiceRegisterRecordReply = Option src/ffi.rs:188:46 [INFO] [stderr] | [INFO] [stderr] 188 | pub type DNSServiceQueryRecordReply = Option src/ffi.rs:201:1 [INFO] [stderr] | [INFO] [stderr] 201 | extern { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/ffi.rs:336:56 [INFO] [stderr] | [INFO] [stderr] 336 | ... value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 336 - value : *const (*const c_void)) -> DNSServiceErrorType; [INFO] [stderr] 336 + value : *const *const c_void) -> DNSServiceErrorType; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/callback.rs:83:9 [INFO] [stderr] | [INFO] [stderr] 83 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/callback.rs:106:9 [INFO] [stderr] | [INFO] [stderr] 106 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/callback.rs:132:9 [INFO] [stderr] | [INFO] [stderr] 132 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/callback.rs:159:9 [INFO] [stderr] | [INFO] [stderr] 159 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/callback.rs:188:9 [INFO] [stderr] | [INFO] [stderr] 188 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/callback.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | pub extern fn wrapper (service_ref : DNSServiceRef, [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/service.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use std::mem::uninitialized; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/service.rs:18:28 [INFO] [stderr] | [INFO] [stderr] 18 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/service.rs:231:28 [INFO] [stderr] | [INFO] [stderr] 231 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/txtrecord.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use std::mem::uninitialized; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/txtrecord.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/txtrecord.rs:41:31 [INFO] [stderr] | [INFO] [stderr] 41 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/txtrecord.rs:100:44 [INFO] [stderr] | [INFO] [stderr] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/txtrecord.rs:132:44 [INFO] [stderr] | [INFO] [stderr] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/txtrecord.rs:133:29 [INFO] [stderr] | [INFO] [stderr] 133 | let value_ptr = uninitialized (); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/callback.rs:7:44 [INFO] [stderr] | [INFO] [stderr] 7 | pub type SafeDomainEnumReplyCallback = Box; [INFO] [stderr] | |_____________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 7 | pub type SafeDomainEnumReplyCallback = Box src/callback.rs:13:42 [INFO] [stderr] | [INFO] [stderr] 13 | pub type SafeRegisterReplyCallback = Box; [INFO] [stderr] | |___________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 | pub type SafeRegisterReplyCallback = Box src/callback.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | pub type SafeBrowseReplyCallback = Box; [INFO] [stderr] | |_________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 20 | pub type SafeBrowseReplyCallback = Box src/callback.rs:28:41 [INFO] [stderr] | [INFO] [stderr] 28 | pub type SafeResolveReplyCallback = Box; [INFO] [stderr] | |___________________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 28 | pub type SafeResolveReplyCallback = Box src/callback.rs:37:48 [INFO] [stderr] | [INFO] [stderr] 37 | pub type SafeRegisterRecordReplyCallback = Box; [INFO] [stderr] | |________________________________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 37 | pub type SafeRegisterRecordReplyCallback = Box src/callback.rs:42:45 [INFO] [stderr] | [INFO] [stderr] 42 | pub type SafeQueryRecordReplyCallback = Box, [INFO] [stderr] 50 | | u32) + 'static>; [INFO] [stderr] | |_____________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 42 | pub type SafeQueryRecordReplyCallback = Box src/utils.rs:12:41 [INFO] [stderr] | [INFO] [stderr] 12 | CString::new (new_string).unwrap ().as_ptr () [INFO] [stderr] | ----------------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stderr] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stderr] = help: for more information, see [INFO] [stderr] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/utils.rs:11:27 [INFO] [stderr] | [INFO] [stderr] 11 | let new_string = value.clone(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `*mut StructDNSServiceRef` does not permit being left uninitialized [INFO] [stderr] --> src/service.rs:18:28 [INFO] [stderr] | [INFO] [stderr] 18 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: raw pointers must be initialized [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `*mut StructDNSRecordRef` does not permit being left uninitialized [INFO] [stderr] --> src/service.rs:231:28 [INFO] [stderr] | [INFO] [stderr] 231 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: raw pointers must be initialized [INFO] [stderr] [INFO] [stderr] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stderr] --> src/txtrecord.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] note: integers must be initialized (in this struct field) [INFO] [stderr] --> src/ffi.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the type `UnionTXTRecordRef` does not permit being left uninitialized [INFO] [stderr] --> src/txtrecord.rs:41:31 [INFO] [stderr] | [INFO] [stderr] 41 | ptr : unsafe { uninitialized () }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] note: integers must be initialized (in this struct field) [INFO] [stderr] --> src/ffi.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub _bindgen_data_ : [u64; 2usize], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/txtrecord.rs:97:36 [INFO] [stderr] | [INFO] [stderr] 97 | pub fn get_value_ptr <'a, T> (&'a self, [INFO] [stderr] | ^^ these lifetimes flow to the output [INFO] [stderr] 98 | key : &'a str) -> Option> { [INFO] [stderr] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stderr] | | [INFO] [stderr] | these lifetimes flow to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 98 | key : &'a str) -> Option> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stderr] --> src/txtrecord.rs:100:44 [INFO] [stderr] | [INFO] [stderr] 100 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: raw pointers must be initialized [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/txtrecord.rs:121:35 [INFO] [stderr] | [INFO] [stderr] 121 | pub fn get_item_at_index (&self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] 122 | index : u16, [INFO] [stderr] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stderr] | ---------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 123 | key_buffer_len : Option) -> Result, DNSServiceErrorType> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: the type `*mut u8` does not permit being left uninitialized [INFO] [stderr] --> src/txtrecord.rs:132:44 [INFO] [stderr] | [INFO] [stderr] 132 | let value_len : *mut uint8_t = uninitialized (); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: raw pointers must be initialized [INFO] [stderr] [INFO] [stderr] warning: the type `*const *const libc::c_void` does not permit being left uninitialized [INFO] [stderr] --> src/txtrecord.rs:133:29 [INFO] [stderr] | [INFO] [stderr] 133 | let value_ptr = uninitialized (); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: raw pointers must be initialized [INFO] [stderr] [INFO] [stderr] warning: `dnssd` (lib) generated 40 warnings (run `cargo fix --lib -p dnssd` to apply 23 suggestions) [INFO] [stderr] warning: `dnssd` (lib test) generated 40 warnings (40 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/dnssd-26ecb1f77d0f8d17) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4c192b7f7fc03d76c48558179623beabb84a84af74c43bea8adec6316d0f186e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c192b7f7fc03d76c48558179623beabb84a84af74c43bea8adec6316d0f186e", kill_on_drop: false }` [INFO] [stdout] 4c192b7f7fc03d76c48558179623beabb84a84af74c43bea8adec6316d0f186e