[INFO] fetching crate ic-canister-serve 0.1.0... [INFO] checking ic-canister-serve-0.1.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate ic-canister-serve 0.1.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate ic-canister-serve 0.1.0 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 ic-canister-serve 0.1.0 [INFO] finished tweaking crates.io crate ic-canister-serve 0.1.0 [INFO] tweaked toml for crates.io crate ic-canister-serve 0.1.0 written to /workspace/builds/worker-6-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-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] 22fe4798bdcc5931d41418d2f00604100be5d1f58579ae33a2ed92afe7f174c1 [INFO] running `Command { std: "docker" "start" "-a" "22fe4798bdcc5931d41418d2f00604100be5d1f58579ae33a2ed92afe7f174c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22fe4798bdcc5931d41418d2f00604100be5d1f58579ae33a2ed92afe7f174c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22fe4798bdcc5931d41418d2f00604100be5d1f58579ae33a2ed92afe7f174c1", kill_on_drop: false }` [INFO] [stdout] 22fe4798bdcc5931d41418d2f00604100be5d1f58579ae33a2ed92afe7f174c1 [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] 29a9884074e658f332e38930bac0bef03716073fdeb47ec4c8761b3ad8c505ca [INFO] running `Command { std: "docker" "start" "-a" "29a9884074e658f332e38930bac0bef03716073fdeb47ec4c8761b3ad8c505ca", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling termcolor v1.3.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling priority-queue v1.3.2 [INFO] [stderr] Checking ic0 v0.18.12 [INFO] [stderr] Checking ic-canister-log v0.1.0 [INFO] [stderr] Checking by_address v1.1.0 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking ic-metrics-encoder v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling candid_derive v0.5.0 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Checking serde_bytes v0.11.12 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling candid v0.8.4 [INFO] [stderr] Compiling ic-cdk-macros v0.6.10 [INFO] [stderr] Checking ic-cdk v0.7.4 [INFO] [stderr] Checking ic-canister-serve v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `info_logs` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:208:44 [INFO] [stdout] | [INFO] [stdout] 204 | let info_priority = info_logs.priority(); [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 208 | sources.push(ByAddress(&mut info_logs), info_priority); [INFO] [stdout] | ^^^^^^^^^^^^^^ ------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `error_logs` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:209:44 [INFO] [stdout] | [INFO] [stdout] 205 | let error_priority = error_logs.priority(); [INFO] [stdout] | ---------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 209 | sources.push(ByAddress(&mut error_logs), error_priority); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `error_logs` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:212:44 [INFO] [stdout] | [INFO] [stdout] 205 | let error_priority = error_logs.priority(); [INFO] [stdout] | ---------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 212 | sources.push(ByAddress(&mut error_logs), error_priority); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `log_iter` does not live long enough [INFO] [stdout] --> src/lib.rs:245:32 [INFO] [stdout] | [INFO] [stdout] 225 | let mut log_iter = match sources.pop() { [INFO] [stdout] | ------------ ------- borrow later used here [INFO] [stdout] | | [INFO] [stdout] | binding `log_iter` declared here [INFO] [stdout] ... [INFO] [stdout] 245 | let priority = log_iter.priority(); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 248 | } [INFO] [stdout] | - `log_iter` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `log_iter` because it is borrowed [INFO] [stdout] --> src/lib.rs:246:30 [INFO] [stdout] | [INFO] [stdout] 225 | let mut log_iter = match sources.pop() { [INFO] [stdout] | ------------ binding `log_iter` declared here [INFO] [stdout] ... [INFO] [stdout] 245 | let priority = log_iter.priority(); [INFO] [stdout] | -------- borrow of `log_iter` occurs here [INFO] [stdout] 246 | sources.push(log_iter, priority); [INFO] [stdout] | ^^^^^^^^ -------- borrow later used here [INFO] [stdout] | | [INFO] [stdout] | move out of `log_iter` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `info_logs` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:208:44 [INFO] [stdout] | [INFO] [stdout] 204 | let info_priority = info_logs.priority(); [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 208 | sources.push(ByAddress(&mut info_logs), info_priority); [INFO] [stdout] | ^^^^^^^^^^^^^^ ------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `error_logs` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:209:44 [INFO] [stdout] | [INFO] [stdout] 205 | let error_priority = error_logs.priority(); [INFO] [stdout] | ---------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 209 | sources.push(ByAddress(&mut error_logs), error_priority); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `error_logs` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:212:44 [INFO] [stdout] | [INFO] [stdout] 205 | let error_priority = error_logs.priority(); [INFO] [stdout] | ---------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 212 | sources.push(ByAddress(&mut error_logs), error_priority); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `log_iter` does not live long enough [INFO] [stdout] --> src/lib.rs:245:32 [INFO] [stdout] | [INFO] [stdout] 225 | let mut log_iter = match sources.pop() { [INFO] [stdout] | ------------ ------- borrow later used here [INFO] [stdout] | | [INFO] [stdout] | binding `log_iter` declared here [INFO] [stdout] ... [INFO] [stdout] 245 | let priority = log_iter.priority(); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 248 | } [INFO] [stdout] | - `log_iter` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `log_iter` because it is borrowed [INFO] [stdout] --> src/lib.rs:246:30 [INFO] [stdout] | [INFO] [stdout] 225 | let mut log_iter = match sources.pop() { [INFO] [stdout] | ------------ binding `log_iter` declared here [INFO] [stdout] ... [INFO] [stdout] 245 | let priority = log_iter.priority(); [INFO] [stdout] | -------- borrow of `log_iter` occurs here [INFO] [stdout] 246 | sources.push(log_iter, priority); [INFO] [stdout] | ^^^^^^^^ -------- borrow later used here [INFO] [stdout] | | [INFO] [stdout] | move out of `log_iter` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ic-canister-serve` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ic-canister-serve` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "29a9884074e658f332e38930bac0bef03716073fdeb47ec4c8761b3ad8c505ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29a9884074e658f332e38930bac0bef03716073fdeb47ec4c8761b3ad8c505ca", kill_on_drop: false }` [INFO] [stdout] 29a9884074e658f332e38930bac0bef03716073fdeb47ec4c8761b3ad8c505ca