[INFO] fetching crate easy-ffi-wrapper 0.1.1... [INFO] checking easy-ffi-wrapper-0.1.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate easy-ffi-wrapper 0.1.1 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate easy-ffi-wrapper 0.1.1 [INFO] finished tweaking crates.io crate easy-ffi-wrapper 0.1.1 [INFO] tweaked toml for crates.io crate easy-ffi-wrapper 0.1.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate easy-ffi-wrapper 0.1.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7296ca9367853ff1671092c06df3b5235babfc2b78488d31ca87d2bdf1a62ea [INFO] running `Command { std: "docker" "start" "-a" "f7296ca9367853ff1671092c06df3b5235babfc2b78488d31ca87d2bdf1a62ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7296ca9367853ff1671092c06df3b5235babfc2b78488d31ca87d2bdf1a62ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7296ca9367853ff1671092c06df3b5235babfc2b78488d31ca87d2bdf1a62ea", kill_on_drop: false }` [INFO] [stdout] f7296ca9367853ff1671092c06df3b5235babfc2b78488d31ca87d2bdf1a62ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef0bb40606728a79ac204135fa9453c6e88d31b839fef1f9446269abfb620e37 [INFO] running `Command { std: "docker" "start" "-a" "ef0bb40606728a79ac204135fa9453c6e88d31b839fef1f9446269abfb620e37", kill_on_drop: false }` [INFO] [stderr] Checking easy-ffi-wrapper v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: unused return value of `must_use` that must be used [INFO] [stdout] --> src/lib.rs:634:9 [INFO] [stdout] | [INFO] [stdout] 634 | format!("{:?}", A::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings, missing_debug_implementations, missing_docs)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 634 | let _ = format!("{:?}", A::new()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/lib.rs:691:10 [INFO] [stdout] | [INFO] [stdout] 691 | &(*ptr).0[index] [INFO] [stdout] | ^^---^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*const MyVec` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/lib.rs:691:10 [INFO] [stdout] | [INFO] [stdout] 691 | &(*ptr).0[index] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 691 | &(&(*ptr).0)[index] [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/lib.rs:815:14 [INFO] [stdout] | [INFO] [stdout] 815 | &mut (*c).0[pos] [INFO] [stdout] | ^^-^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MyVec` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut Vec` [INFO] [stdout] --> src/lib.rs:815:14 [INFO] [stdout] | [INFO] [stdout] 815 | &mut (*c).0[pos] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 815 | &mut (&mut (*c).0)[pos] [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:537:25 [INFO] [stdout] | [INFO] [stdout] 537 | pub fn iter(&self) -> $iter_type { [INFO] [stdout] | ^^^^^ ---------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 825 | / ffi_vec!( [INFO] [stdout] 826 | | MyVec(MyVecIterConst, MyVecIterMut) -> usize, [INFO] [stdout] 827 | | len(vec_len), [INFO] [stdout] 828 | | get(vec_get), [INFO] [stdout] ... | [INFO] [stdout] 831 | | clear(vec_clear) [INFO] [stdout] 832 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[deny(mismatched_lifetime_syntaxes)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the macro `ffi_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 537 | pub fn iter(&self) -> $iter_type<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:542:29 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn iter_mut(&mut self) -> $iter_mut_type { [INFO] [stdout] | ^^^^^^^^^ -------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 825 | / ffi_vec!( [INFO] [stdout] 826 | | MyVec(MyVecIterConst, MyVecIterMut) -> usize, [INFO] [stdout] 827 | | len(vec_len), [INFO] [stdout] 828 | | get(vec_get), [INFO] [stdout] ... | [INFO] [stdout] 831 | | clear(vec_clear) [INFO] [stdout] 832 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: this error originates in the macro `ffi_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 542 | pub fn iter_mut(&mut self) -> $iter_mut_type<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `easy-ffi-wrapper` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "ef0bb40606728a79ac204135fa9453c6e88d31b839fef1f9446269abfb620e37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef0bb40606728a79ac204135fa9453c6e88d31b839fef1f9446269abfb620e37", kill_on_drop: false }` [INFO] [stdout] ef0bb40606728a79ac204135fa9453c6e88d31b839fef1f9446269abfb620e37