[INFO] fetching crate easy-ffi-wrapper 0.1.1... [INFO] checking easy-ffi-wrapper-0.1.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate easy-ffi-wrapper 0.1.1 into /workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate easy-ffi-wrapper 0.1.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c06165026e7c31fce53de15675067a9167765fce058447b6cc869b4c8348677d [INFO] running `Command { std: "docker" "start" "-a" "c06165026e7c31fce53de15675067a9167765fce058447b6cc869b4c8348677d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c06165026e7c31fce53de15675067a9167765fce058447b6cc869b4c8348677d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c06165026e7c31fce53de15675067a9167765fce058447b6cc869b4c8348677d", kill_on_drop: false }` [INFO] [stdout] c06165026e7c31fce53de15675067a9167765fce058447b6cc869b4c8348677d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5a1ae0036f8d3af0c1b7fc02091187518d14b35b6ce2b8336c580b9a8f29f9b [INFO] running `Command { std: "docker" "start" "-a" "d5a1ae0036f8d3af0c1b7fc02091187518d14b35b6ce2b8336c580b9a8f29f9b", 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" "d5a1ae0036f8d3af0c1b7fc02091187518d14b35b6ce2b8336c580b9a8f29f9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5a1ae0036f8d3af0c1b7fc02091187518d14b35b6ce2b8336c580b9a8f29f9b", kill_on_drop: false }` [INFO] [stdout] d5a1ae0036f8d3af0c1b7fc02091187518d14b35b6ce2b8336c580b9a8f29f9b