[INFO] fetching crate easy-ffi-wrapper 0.1.1... [INFO] testing easy-ffi-wrapper-0.1.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate easy-ffi-wrapper 0.1.1 into /workspace/builds/worker-0-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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate easy-ffi-wrapper 0.1.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8be8b6503a1bd29196662e6021d0dddd63d909971bd6d45af8d2504e3c1b394 [INFO] running `Command { std: "docker" "start" "-a" "b8be8b6503a1bd29196662e6021d0dddd63d909971bd6d45af8d2504e3c1b394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8be8b6503a1bd29196662e6021d0dddd63d909971bd6d45af8d2504e3c1b394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8be8b6503a1bd29196662e6021d0dddd63d909971bd6d45af8d2504e3c1b394", kill_on_drop: false }` [INFO] [stdout] b8be8b6503a1bd29196662e6021d0dddd63d909971bd6d45af8d2504e3c1b394 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb983fb1e723898daeb67d7d54e282c47da2d81b6b07e84603851998bca179bb [INFO] running `Command { std: "docker" "start" "-a" "eb983fb1e723898daeb67d7d54e282c47da2d81b6b07e84603851998bca179bb", kill_on_drop: false }` [INFO] [stderr] Compiling easy-ffi-wrapper v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "eb983fb1e723898daeb67d7d54e282c47da2d81b6b07e84603851998bca179bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb983fb1e723898daeb67d7d54e282c47da2d81b6b07e84603851998bca179bb", kill_on_drop: false }` [INFO] [stdout] eb983fb1e723898daeb67d7d54e282c47da2d81b6b07e84603851998bca179bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be81b121e23ffb59cc1f1b8d840c9cff09a744b10e86689fdccba5aa6bb9712f [INFO] running `Command { std: "docker" "start" "-a" "be81b121e23ffb59cc1f1b8d840c9cff09a744b10e86689fdccba5aa6bb9712f", kill_on_drop: false }` [INFO] [stderr] Compiling 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" "be81b121e23ffb59cc1f1b8d840c9cff09a744b10e86689fdccba5aa6bb9712f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be81b121e23ffb59cc1f1b8d840c9cff09a744b10e86689fdccba5aa6bb9712f", kill_on_drop: false }` [INFO] [stdout] be81b121e23ffb59cc1f1b8d840c9cff09a744b10e86689fdccba5aa6bb9712f