[INFO] cloning repository https://github.com/killercup/cthulhu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/killercup/cthulhu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkillercup%2Fcthulhu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkillercup%2Fcthulhu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee4a9f5a5bcf72164831650b23d9dc0d5618a04e [INFO] checking killercup/cthulhu against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkillercup%2Fcthulhu" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/killercup/cthulhu [INFO] finished tweaking git repo https://github.com/killercup/cthulhu [INFO] tweaked toml for git repo https://github.com/killercup/cthulhu written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/killercup/cthulhu on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/killercup/cthulhu 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df99ff18f948e5f0c2bf11099f2d33ad4173a9ab88f150fda6ea0dca74fbedc4 [INFO] running `Command { std: "docker" "start" "-a" "df99ff18f948e5f0c2bf11099f2d33ad4173a9ab88f150fda6ea0dca74fbedc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df99ff18f948e5f0c2bf11099f2d33ad4173a9ab88f150fda6ea0dca74fbedc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df99ff18f948e5f0c2bf11099f2d33ad4173a9ab88f150fda6ea0dca74fbedc4", kill_on_drop: false }` [INFO] [stdout] df99ff18f948e5f0c2bf11099f2d33ad4173a9ab88f150fda6ea0dca74fbedc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e6cd187206f7c14c9dd673b05fa9a920128e7c835190692291b9aab22923a12 [INFO] running `Command { std: "docker" "start" "-a" "0e6cd187206f7c14c9dd673b05fa9a920128e7c835190692291b9aab22923a12", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling cc v1.0.88 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking proc-macro2 v1.0.78 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking quote v1.0.35 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking ident_case v1.0.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Checking heck v0.4.1 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Compiling snafu-derive v0.4.4 [INFO] [stderr] Compiling cffi-impl v0.2.0-dev (/opt/rustwide/workdir/impl) [INFO] [stderr] Compiling ctor v0.2.7 [INFO] [stderr] Checking snafu v0.4.4 [INFO] [stderr] Checking assert_tokens_eq v0.1.0 (https://github.com/killercup/assert_tokens_eq#81281938) [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stdout] warning: unexpected `cfg` condition value: `used_linker` [INFO] [stdout] --> impl/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[ctor] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ctor` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `ctor` may come from an old version of the `ctor` crate, try updating your dependency with `cargo update -p ctor` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `used_linker` [INFO] [stdout] --> impl/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[ctor] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ctor` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `ctor` may come from an old version of the `ctor` crate, try updating your dependency with `cargo update -p ctor` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `used_linker` [INFO] [stdout] --> impl/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[ctor] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ctor` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `ctor` may come from an old version of the `ctor` crate, try updating your dependency with `cargo update -p ctor` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking cffi v0.2.0-dev (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/str.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct StrMarshaler<'a>(&'a PhantomData<()>); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/arc.rs:43:67 [INFO] [stdout] | [INFO] [stdout] 43 | fn to_foreign(local: Arc) -> Result<*const T, Self::Error> { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 44 | | log::debug!( [INFO] [stdout] 45 | | " as ToForeign<{ty}, {o}>>::to_foreign", [INFO] [stdout] 46 | | ty = std::any::type_name::(), [INFO] [stdout] ... | [INFO] [stdout] 56 | | Ok(Arc::into_raw(local)) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/arc.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | Ok(Arc::into_raw(local)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:24:64 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe fn from_foreign(i: u8) -> Result { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 25 | | Ok(i != 0) [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | Ok(i != 0) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cffi` (lib) due to 17 previous errors; 1 warning emitted [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | fn to_foreign(b: bool) -> Result { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 34 | | Ok(if b { 1 } else { 0 }) [INFO] [stdout] 35 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | Ok(if b { 1 } else { 0 }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/boxed.rs:74:67 [INFO] [stdout] | [INFO] [stdout] 74 | fn to_foreign(local: Box) -> Result<*const T, Self::Error> { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 75 | | log::debug!( [INFO] [stdout] 76 | | " as ToForeign<{ty}, {o}>>::to_foreign", [INFO] [stdout] 77 | | ty = std::any::type_name::(), [INFO] [stdout] ... | [INFO] [stdout] 80 | | Ok(Box::into_raw(local) as *const _ as *const _) [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/boxed.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | Ok(Box::into_raw(local) as *const _ as *const _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/pathbuf/unix.rs:54:69 [INFO] [stdout] | [INFO] [stdout] 54 | fn to_foreign(input: PathBuf) -> Result, Self::Error> { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 55 | | use std::os::unix::ffi::OsStringExt; [INFO] [stdout] 56 | | [INFO] [stdout] 57 | | let vec = input.into_os_string().into_vec(); [INFO] [stdout] 58 | | VecMarshaler::to_foreign(vec) [INFO] [stdout] 59 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/pathbuf/unix.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | VecMarshaler::to_foreign(vec) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/pathbuf/unix.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | input.and_then(|x| Ok(PathBufMarshaler::to_foreign(x).unwrap())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:27:69 [INFO] [stdout] | [INFO] [stdout] 27 | fn to_foreign(string: String) -> Result, Self::Error> { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 28 | | VecMarshaler::to_foreign(string.into_bytes()) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | VecMarshaler::to_foreign(string.into_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | result.and_then(|v| Ok(StringMarshaler::to_foreign(v).unwrap())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | Some(v) => Ok(StringMarshaler::to_foreign(v).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/vec.rs:29:69 [INFO] [stdout] | [INFO] [stdout] 29 | fn to_foreign(mut vec: Vec) -> Result, Self::Error> { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 30 | | vec.shrink_to_fit(); [INFO] [stdout] 31 | | let len = vec.len(); [INFO] [stdout] 32 | | let data = vec.as_mut_ptr(); [INFO] [stdout] ... | [INFO] [stdout] 42 | | Ok(raw) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/vec.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(raw) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/str.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct StrMarshaler<'a>(&'a PhantomData<()>); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/arc.rs:43:67 [INFO] [stdout] | [INFO] [stdout] 43 | fn to_foreign(local: Arc) -> Result<*const T, Self::Error> { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 44 | | log::debug!( [INFO] [stdout] 45 | | " as ToForeign<{ty}, {o}>>::to_foreign", [INFO] [stdout] 46 | | ty = std::any::type_name::(), [INFO] [stdout] ... | [INFO] [stdout] 56 | | Ok(Arc::into_raw(local)) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/arc.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | Ok(Arc::into_raw(local)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:24:64 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe fn from_foreign(i: u8) -> Result { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 25 | | Ok(i != 0) [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | Ok(i != 0) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | fn to_foreign(b: bool) -> Result { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 34 | | Ok(if b { 1 } else { 0 }) [INFO] [stdout] 35 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bool.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | Ok(if b { 1 } else { 0 }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/boxed.rs:74:67 [INFO] [stdout] | [INFO] [stdout] 74 | fn to_foreign(local: Box) -> Result<*const T, Self::Error> { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 75 | | log::debug!( [INFO] [stdout] 76 | | " as ToForeign<{ty}, {o}>>::to_foreign", [INFO] [stdout] 77 | | ty = std::any::type_name::(), [INFO] [stdout] ... | [INFO] [stdout] 80 | | Ok(Box::into_raw(local) as *const _ as *const _) [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<*const T, Infallible> [INFO] [stdout] --> src/boxed.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | Ok(Box::into_raw(local) as *const _ as *const _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/pathbuf/unix.rs:54:69 [INFO] [stdout] | [INFO] [stdout] 54 | fn to_foreign(input: PathBuf) -> Result, Self::Error> { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 55 | | use std::os::unix::ffi::OsStringExt; [INFO] [stdout] 56 | | [INFO] [stdout] 57 | | let vec = input.into_os_string().into_vec(); [INFO] [stdout] 58 | | VecMarshaler::to_foreign(vec) [INFO] [stdout] 59 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/pathbuf/unix.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | VecMarshaler::to_foreign(vec) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/pathbuf/unix.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | input.and_then(|x| Ok(PathBufMarshaler::to_foreign(x).unwrap())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:27:69 [INFO] [stdout] | [INFO] [stdout] 27 | fn to_foreign(string: String) -> Result, Self::Error> { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 28 | | VecMarshaler::to_foreign(string.into_bytes()) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | VecMarshaler::to_foreign(string.into_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | result.and_then(|v| Ok(StringMarshaler::to_foreign(v).unwrap())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/string.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | Some(v) => Ok(StringMarshaler::to_foreign(v).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/vec.rs:29:69 [INFO] [stdout] | [INFO] [stdout] 29 | fn to_foreign(mut vec: Vec) -> Result, Self::Error> { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 30 | | vec.shrink_to_fit(); [INFO] [stdout] 31 | | let len = vec.len(); [INFO] [stdout] 32 | | let data = vec.as_mut_ptr(); [INFO] [stdout] ... | [INFO] [stdout] 42 | | Ok(raw) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/vec.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(raw) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cffi` (lib test) due to 17 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "0e6cd187206f7c14c9dd673b05fa9a920128e7c835190692291b9aab22923a12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e6cd187206f7c14c9dd673b05fa9a920128e7c835190692291b9aab22923a12", kill_on_drop: false }` [INFO] [stdout] 0e6cd187206f7c14c9dd673b05fa9a920128e7c835190692291b9aab22923a12