[INFO] fetching crate rcodec 1.0.1... [INFO] checking rcodec-1.0.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate rcodec 1.0.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate rcodec 1.0.1 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rcodec 1.0.1 [INFO] finished tweaking crates.io crate rcodec 1.0.1 [INFO] tweaked toml for crates.io crate rcodec 1.0.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8765cdbd065d4e88f7dd59643044ad86560ca29a1309d3008127d1ad477764d [INFO] running `Command { std: "docker" "start" "-a" "f8765cdbd065d4e88f7dd59643044ad86560ca29a1309d3008127d1ad477764d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8765cdbd065d4e88f7dd59643044ad86560ca29a1309d3008127d1ad477764d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8765cdbd065d4e88f7dd59643044ad86560ca29a1309d3008127d1ad477764d", kill_on_drop: false }` [INFO] [stdout] f8765cdbd065d4e88f7dd59643044ad86560ca29a1309d3008127d1ad477764d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d07c19ec4bc0544e3115690dd29698afaff424fff166d31ee87d561be67d6999 [INFO] running `Command { std: "docker" "start" "-a" "d07c19ec4bc0544e3115690dd29698afaff424fff166d31ee87d561be67d6999", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling pl-hlist-derive v1.0.0 [INFO] [stderr] Checking pl-hlist v1.0.1 [INFO] [stderr] Checking rcodec v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0505]: cannot move out of `input` because it is borrowed [INFO] [stdout] --> src/codec.rs:1000:56 [INFO] [stdout] | [INFO] [stdout] 999 | let input = byte_vector!(1, 2, 3, 4); [INFO] [stdout] | ----- binding `input` declared here [INFO] [stdout] 1000 | assert_round_trip(constant(&input), &(), &Some(input)); [INFO] [stdout] | ----------------- ------ ^^^^^ move out of `input` occurs here [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `input` occurs here [INFO] [stdout] | borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/macros.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | $crate::byte_vector::from_vec(vec!($($byte),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/codec.rs:1007:53 [INFO] [stdout] | [INFO] [stdout] 1007 | let codec = constant(&byte_vector!(6, 6, 6)); [INFO] [stdout] | --------------------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | in this macro invocation [INFO] [stdout] 1008 | assert_eq!( [INFO] [stdout] 1009 | codec.decode(&input).unwrap_err().message(), [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `byte_vector` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] --> src/codec.rs:1007:9 [INFO] [stdout] | [INFO] [stdout] 1007 ~ let binding = byte_vector!(6, 6, 6); [INFO] [stdout] 1008 ~ let codec = constant(&binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/macros.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | $crate::byte_vector::from_vec(vec!($($byte),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/codec.rs:1018:53 [INFO] [stdout] | [INFO] [stdout] 1018 | let codec = constant(&byte_vector!(6, 6, 6)); [INFO] [stdout] | --------------------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | in this macro invocation [INFO] [stdout] 1019 | assert_eq!( [INFO] [stdout] 1020 | codec.decode(&input).unwrap_err().message(), [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `byte_vector` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] --> src/codec.rs:1018:9 [INFO] [stdout] | [INFO] [stdout] 1018 ~ let binding = byte_vector!(6, 6, 6); [INFO] [stdout] 1019 ~ let codec = constant(&binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/macros.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | $crate::byte_vector::from_vec(vec!($($byte),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/codec.rs:1087:74 [INFO] [stdout] | [INFO] [stdout] 1087 | let codec = fixed_size_bytes(1, constant(&byte_vector!(6, 6, 6))); [INFO] [stdout] | --------------------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | in this macro invocation [INFO] [stdout] 1088 | assert_eq!( [INFO] [stdout] 1089 | codec.encode(&()).unwrap_err().message(), [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `byte_vector` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] --> src/codec.rs:1087:9 [INFO] [stdout] | [INFO] [stdout] 1087 ~ let binding = byte_vector!(6, 6, 6); [INFO] [stdout] 1088 ~ let codec = fixed_size_bytes(1, constant(&binding)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `m` does not live long enough [INFO] [stdout] --> src/codec.rs:1236:48 [INFO] [stdout] | [INFO] [stdout] 1234 | let m = byte_vector!(0xCA, 0xFE); [INFO] [stdout] | - binding `m` declared here [INFO] [stdout] 1235 | hcodec!( [INFO] [stdout] 1236 | { "magic" => constant(&m) } >> [INFO] [stdout] | ^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 1246 | } [INFO] [stdout] | - `m` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 1252 | let codec = make_test_hcodec!(); [INFO] [stdout] | ----- ------------------- in this macro invocation [INFO] [stdout] | | [INFO] [stdout] | borrow later stored here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `make_test_hcodec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rcodec` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "d07c19ec4bc0544e3115690dd29698afaff424fff166d31ee87d561be67d6999", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d07c19ec4bc0544e3115690dd29698afaff424fff166d31ee87d561be67d6999", kill_on_drop: false }` [INFO] [stdout] d07c19ec4bc0544e3115690dd29698afaff424fff166d31ee87d561be67d6999