[INFO] fetching crate easy-ffi-wrapper 0.1.1... [INFO] testing easy-ffi-wrapper-0.1.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate easy-ffi-wrapper 0.1.1 into /workspace/builds/worker-1-tc1/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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate easy-ffi-wrapper 0.1.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cf1fd48313c2b99f6f1615b9d588260c780803eff34639ed616e2783a684e9b [INFO] running `Command { std: "docker" "start" "-a" "5cf1fd48313c2b99f6f1615b9d588260c780803eff34639ed616e2783a684e9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cf1fd48313c2b99f6f1615b9d588260c780803eff34639ed616e2783a684e9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cf1fd48313c2b99f6f1615b9d588260c780803eff34639ed616e2783a684e9b", kill_on_drop: false }` [INFO] [stdout] 5cf1fd48313c2b99f6f1615b9d588260c780803eff34639ed616e2783a684e9b [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6def97a94f5bb698913a604e75a70a906e2428ebce5dd335d50f05a8a42d8572 [INFO] running `Command { std: "docker" "start" "-a" "6def97a94f5bb698913a604e75a70a906e2428ebce5dd335d50f05a8a42d8572", 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.18s [INFO] running `Command { std: "docker" "inspect" "6def97a94f5bb698913a604e75a70a906e2428ebce5dd335d50f05a8a42d8572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6def97a94f5bb698913a604e75a70a906e2428ebce5dd335d50f05a8a42d8572", kill_on_drop: false }` [INFO] [stdout] 6def97a94f5bb698913a604e75a70a906e2428ebce5dd335d50f05a8a42d8572 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf3177357322d67c2e2e94b178bb9fb6b8c8055b38696420c77c0bb47db4a885 [INFO] running `Command { std: "docker" "start" "-a" "cf3177357322d67c2e2e94b178bb9fb6b8c8055b38696420c77c0bb47db4a885", 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" "cf3177357322d67c2e2e94b178bb9fb6b8c8055b38696420c77c0bb47db4a885", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf3177357322d67c2e2e94b178bb9fb6b8c8055b38696420c77c0bb47db4a885", kill_on_drop: false }` [INFO] [stdout] cf3177357322d67c2e2e94b178bb9fb6b8c8055b38696420c77c0bb47db4a885