[INFO] fetching crate allium 0.1.3... [INFO] checking allium-0.1.3 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate allium 0.1.3 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate allium 0.1.3 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 allium 0.1.3 [INFO] finished tweaking crates.io crate allium 0.1.3 [INFO] tweaked toml for crates.io crate allium 0.1.3 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate allium 0.1.3 already has a lockfile, it will not be regenerated [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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] b9b78fa085224081e59ecc095ea3afee1b073903b8c8e8f6ea1079ac6b8208e8 [INFO] running `Command { std: "docker" "start" "-a" "b9b78fa085224081e59ecc095ea3afee1b073903b8c8e8f6ea1079ac6b8208e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9b78fa085224081e59ecc095ea3afee1b073903b8c8e8f6ea1079ac6b8208e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9b78fa085224081e59ecc095ea3afee1b073903b8c8e8f6ea1079ac6b8208e8", kill_on_drop: false }` [INFO] [stdout] b9b78fa085224081e59ecc095ea3afee1b073903b8c8e8f6ea1079ac6b8208e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 5fec7536ddd538b0426ad5c478c59f3da8f68cd7d3b5302ecd9c3f926bb278f2 [INFO] running `Command { std: "docker" "start" "-a" "5fec7536ddd538b0426ad5c478c59f3da8f68cd7d3b5302ecd9c3f926bb278f2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Compiling anyhow v1.0.42 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Compiling tokio v1.8.1 [INFO] [stderr] Compiling openssl-sys v0.9.65 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Checking thiserror v1.0.26 [INFO] [stderr] Checking tokio-stream v0.1.7 [INFO] [stderr] Checking allium v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*buf` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/onion/protocol.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 212 | let digest = crypto::digest(&buf[DIGEST_LEN..]); [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 213 | if digest.as_ref()[..DIGEST_LEN] == buf[..DIGEST_LEN] { [INFO] [stdout] 214 | buf.advance(DIGEST_LEN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 219 | } [INFO] [stdout] | - immutable borrow might be used here, when `digest` is dropped and runs the destructor for type `impl AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*buf` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/onion/protocol.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 212 | let digest = crypto::digest(&buf[DIGEST_LEN..]); [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | Self::try_read_from(buf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 219 | } [INFO] [stdout] | - immutable borrow might be used here, when `digest` is dropped and runs the destructor for type `impl AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `payload_buf` because it is borrowed [INFO] [stdout] --> src/onion/protocol.rs:234:21 [INFO] [stdout] | [INFO] [stdout] 229 | let mut payload_buf = buf.split_off(payload_start); [INFO] [stdout] | --------------- binding `payload_buf` declared here [INFO] [stdout] ... [INFO] [stdout] 232 | let digest = crypto::digest(&payload_buf[..]); [INFO] [stdout] | ----------- borrow of `payload_buf` occurs here [INFO] [stdout] 233 | buf[digest_start..payload_start].copy_from_slice(&digest.as_ref()[..DIGEST_LEN]); [INFO] [stdout] 234 | buf.unsplit(payload_buf); [INFO] [stdout] | ^^^^^^^^^^^ move out of `payload_buf` occurs here [INFO] [stdout] 235 | } [INFO] [stdout] | - borrow might be used here, when `digest` is dropped and runs the destructor for type `impl AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `allium` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `*buf` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/onion/protocol.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 212 | let digest = crypto::digest(&buf[DIGEST_LEN..]); [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 213 | if digest.as_ref()[..DIGEST_LEN] == buf[..DIGEST_LEN] { [INFO] [stdout] 214 | buf.advance(DIGEST_LEN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 219 | } [INFO] [stdout] | - immutable borrow might be used here, when `digest` is dropped and runs the destructor for type `impl AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*buf` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/onion/protocol.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 212 | let digest = crypto::digest(&buf[DIGEST_LEN..]); [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | Self::try_read_from(buf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 219 | } [INFO] [stdout] | - immutable borrow might be used here, when `digest` is dropped and runs the destructor for type `impl AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `payload_buf` because it is borrowed [INFO] [stdout] --> src/onion/protocol.rs:234:21 [INFO] [stdout] | [INFO] [stdout] 229 | let mut payload_buf = buf.split_off(payload_start); [INFO] [stdout] | --------------- binding `payload_buf` declared here [INFO] [stdout] ... [INFO] [stdout] 232 | let digest = crypto::digest(&payload_buf[..]); [INFO] [stdout] | ----------- borrow of `payload_buf` occurs here [INFO] [stdout] 233 | buf[digest_start..payload_start].copy_from_slice(&digest.as_ref()[..DIGEST_LEN]); [INFO] [stdout] 234 | buf.unsplit(payload_buf); [INFO] [stdout] | ^^^^^^^^^^^ move out of `payload_buf` occurs here [INFO] [stdout] 235 | } [INFO] [stdout] | - borrow might be used here, when `digest` is dropped and runs the destructor for type `impl AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `allium` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "5fec7536ddd538b0426ad5c478c59f3da8f68cd7d3b5302ecd9c3f926bb278f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fec7536ddd538b0426ad5c478c59f3da8f68cd7d3b5302ecd9c3f926bb278f2", kill_on_drop: false }` [INFO] [stdout] 5fec7536ddd538b0426ad5c478c59f3da8f68cd7d3b5302ecd9c3f926bb278f2