[INFO] cloning repository https://github.com/mkomitee/krb5.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mkomitee/krb5.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkomitee%2Fkrb5.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkomitee%2Fkrb5.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69c0f39fc2215d6c0492805ee07d16f1068d554c [INFO] testing mkomitee/krb5.rs against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkomitee%2Fkrb5.rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mkomitee/krb5.rs [INFO] finished tweaking git repo https://github.com/mkomitee/krb5.rs [INFO] tweaked toml for git repo https://github.com/mkomitee/krb5.rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mkomitee/krb5.rs on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mkomitee/krb5.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82da083468e003bbba09b73f057bedfb3c4b27327b69c30ac2eddd81c08fe646 [INFO] running `Command { std: "docker" "start" "-a" "82da083468e003bbba09b73f057bedfb3c4b27327b69c30ac2eddd81c08fe646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82da083468e003bbba09b73f057bedfb3c4b27327b69c30ac2eddd81c08fe646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82da083468e003bbba09b73f057bedfb3c4b27327b69c30ac2eddd81c08fe646", kill_on_drop: false }` [INFO] [stdout] 82da083468e003bbba09b73f057bedfb3c4b27327b69c30ac2eddd81c08fe646 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e22022156091ca8cd798007e06ee93a6ca0e904b9a8bacf02b21ef63a2f5a101 [INFO] running `Command { std: "docker" "start" "-a" "e22022156091ca8cd798007e06ee93a6ca0e904b9a8bacf02b21ef63a2f5a101", 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.6 [INFO] [stderr] Compiling krb5 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stdout] --> src/context.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | #[allow(raw_pointer_derive)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let cname = try!(CString::new(name.as_bytes())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(try!(String::from_utf8(lname))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stdout] --> src/principal.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[allow(raw_pointer_derive)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | fn cause(&self) -> Option<&::std::error::Error> { [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] 62 | fn cause(&self) -> Option<&dyn (::std::error::Error)> { [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | Error::FromUtf8(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | Error::Nul(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:64:50 [INFO] [stdout] | [INFO] [stdout] 64 | Error::FromUtf8(ref e) => Some(e as &::std::error::Error), [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] 64 | Error::FromUtf8(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | Error::Nul(ref e) => Some(e as &::std::error::Error), [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] 65 | Error::Nul(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `major` is never read [INFO] [stdout] --> src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Krb5Error { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | major: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Krb5Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn krb5_init_context(context: *mut *mut krb5_context) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn krb5_free_context(context: *mut krb5_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn krb5_parse_name(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | ... principal: *mut *mut krb5_principal) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn krb5_free_principal(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 61 | ... val: *mut krb5_principal); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn krb5_aname_to_localname(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | ... aname: *mut krb5_principal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:72:43 [INFO] [stdout] | [INFO] [stdout] 72 | ... lname: *mut [u8]) -> c_int; [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: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:78:44 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn krb5_get_error_message(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn krb5_clear_error_message(context: *mut krb5_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn krb5_free_error_message(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/principal.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(ctx: &Context) -> Principal { [INFO] [stdout] | ^^^^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(ctx: &Context) -> Principal<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "e22022156091ca8cd798007e06ee93a6ca0e904b9a8bacf02b21ef63a2f5a101", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e22022156091ca8cd798007e06ee93a6ca0e904b9a8bacf02b21ef63a2f5a101", kill_on_drop: false }` [INFO] [stdout] e22022156091ca8cd798007e06ee93a6ca0e904b9a8bacf02b21ef63a2f5a101 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 752c4d55fb25ebd013e90f9809616eeec46e32dd4d9fdf6d01bf84411b392c38 [INFO] running `Command { std: "docker" "start" "-a" "752c4d55fb25ebd013e90f9809616eeec46e32dd4d9fdf6d01bf84411b392c38", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling krb5 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stdout] --> src/context.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | #[allow(raw_pointer_derive)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let cname = try!(CString::new(name.as_bytes())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(try!(String::from_utf8(lname))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stdout] --> src/principal.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[allow(raw_pointer_derive)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | fn cause(&self) -> Option<&::std::error::Error> { [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] 62 | fn cause(&self) -> Option<&dyn (::std::error::Error)> { [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | Error::FromUtf8(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | Error::Nul(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:64:50 [INFO] [stdout] | [INFO] [stdout] 64 | Error::FromUtf8(ref e) => Some(e as &::std::error::Error), [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] 64 | Error::FromUtf8(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | Error::Nul(ref e) => Some(e as &::std::error::Error), [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] 65 | Error::Nul(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `major` is never read [INFO] [stdout] --> src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Krb5Error { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | major: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Krb5Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn krb5_init_context(context: *mut *mut krb5_context) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn krb5_free_context(context: *mut krb5_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn krb5_parse_name(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | ... principal: *mut *mut krb5_principal) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn krb5_free_principal(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 61 | ... val: *mut krb5_principal); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn krb5_aname_to_localname(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | ... aname: *mut krb5_principal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:72:43 [INFO] [stdout] | [INFO] [stdout] 72 | ... lname: *mut [u8]) -> c_int; [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: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:78:44 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn krb5_get_error_message(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn krb5_clear_error_message(context: *mut krb5_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn krb5_free_error_message(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/principal.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(ctx: &Context) -> Principal { [INFO] [stdout] | ^^^^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(ctx: &Context) -> Principal<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stdout] --> src/context.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | #[allow(raw_pointer_derive)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let cname = try!(CString::new(name.as_bytes())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(try!(String::from_utf8(lname))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stdout] --> src/principal.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[allow(raw_pointer_derive)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | fn cause(&self) -> Option<&::std::error::Error> { [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] 62 | fn cause(&self) -> Option<&dyn (::std::error::Error)> { [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | Error::FromUtf8(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | Error::Nul(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:64:50 [INFO] [stdout] | [INFO] [stdout] 64 | Error::FromUtf8(ref e) => Some(e as &::std::error::Error), [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] 64 | Error::FromUtf8(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | Error::Nul(ref e) => Some(e as &::std::error::Error), [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] 65 | Error::Nul(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `major` is never read [INFO] [stdout] --> src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Krb5Error { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | major: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Krb5Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn krb5_init_context(context: *mut *mut krb5_context) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn krb5_free_context(context: *mut krb5_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn krb5_parse_name(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | ... principal: *mut *mut krb5_principal) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn krb5_free_principal(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 61 | ... val: *mut krb5_principal); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn krb5_aname_to_localname(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | ... aname: *mut krb5_principal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct krb5_principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:72:43 [INFO] [stdout] | [INFO] [stdout] 72 | ... lname: *mut [u8]) -> c_int; [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: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:78:44 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn krb5_get_error_message(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn krb5_clear_error_message(context: *mut krb5_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn krb5_free_error_message(context: *mut krb5_context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct krb5_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/principal.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(ctx: &Context) -> Principal { [INFO] [stdout] | ^^^^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(ctx: &Context) -> Principal<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "752c4d55fb25ebd013e90f9809616eeec46e32dd4d9fdf6d01bf84411b392c38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "752c4d55fb25ebd013e90f9809616eeec46e32dd4d9fdf6d01bf84411b392c38", kill_on_drop: false }` [INFO] [stdout] 752c4d55fb25ebd013e90f9809616eeec46e32dd4d9fdf6d01bf84411b392c38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 86a1d1bc21c399ef3399f44bf354d36b74bd294aefaddc7922eeacbdd3ba7faa [INFO] running `Command { std: "docker" "start" "-a" "86a1d1bc21c399ef3399f44bf354d36b74bd294aefaddc7922eeacbdd3ba7faa", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stderr] --> src/context.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | #[allow(raw_pointer_derive)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/context.rs:54:21 [INFO] [stderr] | [INFO] [stderr] 54 | let cname = try!(CString::new(name.as_bytes())); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/context.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | Ok(try!(String::from_utf8(lname))) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [INFO] [stderr] --> src/principal.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | #[allow(raw_pointer_derive)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/error.rs:62:32 [INFO] [stderr] | [INFO] [stderr] 62 | fn cause(&self) -> Option<&::std::error::Error> { [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] 62 | fn cause(&self) -> Option<&dyn (::std::error::Error)> { [INFO] [stderr] | +++++ + [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:57:41 [INFO] [stderr] | [INFO] [stderr] 57 | Error::FromUtf8(ref e) => e.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:58:36 [INFO] [stderr] | [INFO] [stderr] 58 | Error::Nul(ref e) => e.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/error.rs:64:50 [INFO] [stderr] | [INFO] [stderr] 64 | Error::FromUtf8(ref e) => Some(e as &::std::error::Error), [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] 64 | Error::FromUtf8(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stderr] | +++++ + [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/error.rs:65:45 [INFO] [stderr] | [INFO] [stderr] 65 | Error::Nul(ref e) => Some(e as &::std::error::Error), [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] 65 | Error::Nul(ref e) => Some(e as &dyn (::std::error::Error)), [INFO] [stderr] | +++++ + [INFO] [stderr] [INFO] [stderr] warning: field `major` is never read [INFO] [stderr] --> src/error.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Krb5Error { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 18 | major: c_int, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Krb5Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:40:39 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn krb5_init_context(context: *mut *mut krb5_context) -> c_int; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:45:39 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn krb5_free_context(context: *mut krb5_context); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:52:37 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn krb5_parse_name(context: *mut krb5_context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:54:39 [INFO] [stderr] | [INFO] [stderr] 54 | ... principal: *mut *mut krb5_principal) -> c_int; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct krb5_principal; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:60:41 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn krb5_free_principal(context: *mut krb5_context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:61:37 [INFO] [stderr] | [INFO] [stderr] 61 | ... val: *mut krb5_principal); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct krb5_principal; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:69:45 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn krb5_aname_to_localname(context: *mut krb5_context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_principal`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:70:43 [INFO] [stderr] | [INFO] [stderr] 70 | ... aname: *mut krb5_principal, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct krb5_principal; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `[u8]`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:72:43 [INFO] [stderr] | [INFO] [stderr] 72 | ... lname: *mut [u8]) -> c_int; [INFO] [stderr] | ^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider using a raw pointer instead [INFO] [stderr] = note: slices have no C equivalent [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:78:44 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn krb5_get_error_message(context: *mut krb5_context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:84:46 [INFO] [stderr] | [INFO] [stderr] 84 | pub fn krb5_clear_error_message(context: *mut krb5_context); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `ffi::krb5_context`, which is not FFI-safe [INFO] [stderr] --> src/ffi.rs:90:45 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn krb5_free_error_message(context: *mut krb5_context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a member to this struct [INFO] [stderr] = note: this struct has no fields [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ffi.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct krb5_context; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/principal.rs:18:21 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new(ctx: &Context) -> Principal { [INFO] [stderr] | ^^^^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new(ctx: &Context) -> Principal<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `krb5` (lib) generated 23 warnings (run `cargo fix --lib -p krb5` to apply 3 suggestions) [INFO] [stderr] warning: `krb5` (lib test) generated 23 warnings (23 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/krb5-bb1fa1914859bd3b) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test context::tests::create_context ... ok [INFO] [stdout] test context::tests::translate_localname_ok ... FAILED [INFO] [stdout] test context::tests::translate_localname_err - should panic ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- context::tests::translate_localname_ok stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'context::tests::translate_localname_ok' panicked at src/context.rs:97:30: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Krb5(Krb5Error { major: -1765328208, message: "No translation available for requested principal" }) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x6406475fdb42 - std::backtrace_rs::backtrace::libunwind::trace::hf6dd235ae0786829 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x6406475fdb42 - std::backtrace_rs::backtrace::trace_unsynchronized::h3a5b54e78104e8b2 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x6406475fdb42 - std::sys::backtrace::_print_fmt::hca7a5c1644e21919 [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x6406475fdb42 - ::fmt::h38110959524b373c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x640647622f03 - core::fmt::rt::Argument::fmt::h391eb3fdbf3d4042 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x640647622f03 - core::fmt::write::h5b87140645224122 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/fmt/mod.rs:1465:25 [INFO] [stdout] 6: 0x6406475faa13 - std::io::default_write_fmt::h3039811ce7aea84b [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x6406475faa13 - std::io::Write::write_fmt::h2eef262cf4840ab4 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x6406475fd992 - std::sys::backtrace::BacktraceLock::print::hcd755c38f62e4492 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x6406475ff0ac - std::panicking::default_hook::{{closure}}::h351f33591b26e6e7 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x6406475fef02 - std::panicking::default_hook::he5bba7bf0a373c6e [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x6406475c6ed4 - as core::ops::function::Fn>::call::he967d9fa26b9957c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x6406475c6ed4 - test::test_main_with_exit_callback::{{closure}}::h80e1694b81a05381 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x6406475ffa8b - as core::ops::function::Fn>::call::h4e924fcf5bc64d70 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x6406475ffa8b - std::panicking::rust_panic_with_hook::hdf456b43e6535023 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x6406475ff85a - std::panicking::begin_panic_handler::{{closure}}::he1c1ab0b84006a97 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x6406475fe039 - std::sys::backtrace::__rust_end_short_backtrace::h2a71da996e10b8a0 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x6406475ff4ed - __rustc[92197b79f0fe8095]::rust_begin_unwind [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x640647621a80 - core::panicking::panic_fmt::h723bf1d52f6dad29 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x640647621df6 - core::result::unwrap_failed::hee42034aaecc2a24 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/result.rs:1761:5 [INFO] [stdout] 20: 0x64064758d465 - core::result::Result::unwrap::h6557a2bdbf42cc15 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/result.rs:1167:23 [INFO] [stdout] 21: 0x64064758d465 - krb5::context::tests::translate_localname_ok::hbc33b83c1467f7ad [INFO] [stdout] at /opt/rustwide/workdir/src/context.rs:97:30 [INFO] [stdout] 22: 0x64064758d217 - krb5::context::tests::translate_localname_ok::{{closure}}::h33cf9fb637454889 [INFO] [stdout] at /opt/rustwide/workdir/src/context.rs:92:32 [INFO] [stdout] 23: 0x640647589e86 - core::ops::function::FnOnce::call_once::hbbbe5d0d502feafd [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x6406475cc67b - core::ops::function::FnOnce::call_once::h0669c8b9c48a7d8a [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x6406475cc67b - test::__rust_begin_short_backtrace::h7b085d6d90a7575c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x6406475cb84e - test::run_test_in_process::{{closure}}::ha304053f1e1d1fbe [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x6406475cb84e - as core::ops::function::FnOnce<()>>::call_once::h8e30650eb6723f86 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x6406475cb84e - std::panicking::catch_unwind::do_call::hfe563e330be3fd9d [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x6406475cb84e - std::panicking::catch_unwind::hed40f568f7f44546 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x6406475cb84e - std::panic::catch_unwind::h3bb9c46c11d39dfb [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x6406475cb84e - test::run_test_in_process::hd65f1a6e6622ae42 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x6406475cb84e - test::run_test::{{closure}}::h9e896de936f245ea [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x64064758f444 - test::run_test::{{closure}}::hbb18881f56552c10 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x64064758f444 - std::sys::backtrace::__rust_begin_short_backtrace::hca2387d32733b689 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x640647592d3a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9601175bf02a7fb8 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x640647592d3a - as core::ops::function::FnOnce<()>>::call_once::had8286ad0e1f2528 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x640647592d3a - std::panicking::catch_unwind::do_call::he4164e9e75841fd6 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x640647592d3a - std::panicking::catch_unwind::h48ccc52a84ae7300 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x640647592d3a - std::panic::catch_unwind::h3d97eb787aa35ee4 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x640647592d3a - std::thread::Builder::spawn_unchecked_::{{closure}}::h1019329d11de31fb [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x640647592d3a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h050615be551c6447 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x6406476029e7 - as core::ops::function::FnOnce>::call_once::h23e83c3768c28e74 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x6406476029e7 - as core::ops::function::FnOnce>::call_once::he67b41932d2c126e [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x6406476029e7 - std::sys::pal::unix::thread::Thread::new::thread_start::hc05bf0eaa2386caa [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x74d053381aa4 - [INFO] [stdout] 46: 0x74d05340ea34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] context::tests::translate_localname_ok [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "86a1d1bc21c399ef3399f44bf354d36b74bd294aefaddc7922eeacbdd3ba7faa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86a1d1bc21c399ef3399f44bf354d36b74bd294aefaddc7922eeacbdd3ba7faa", kill_on_drop: false }` [INFO] [stdout] 86a1d1bc21c399ef3399f44bf354d36b74bd294aefaddc7922eeacbdd3ba7faa