[INFO] cloning repository https://github.com/rohankumardubey/node-to-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rohankumardubey/node-to-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohankumardubey%2Fnode-to-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohankumardubey%2Fnode-to-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 975c4e9ed8823027abf3355727842f3b321272ef [INFO] testing rohankumardubey/node-to-rust against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohankumardubey%2Fnode-to-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rohankumardubey/node-to-rust [INFO] finished tweaking git repo https://github.com/rohankumardubey/node-to-rust [INFO] tweaked toml for git repo https://github.com/rohankumardubey/node-to-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rohankumardubey/node-to-rust on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rohankumardubey/node-to-rust 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8fa918c2afbade0084a8f241453cf5d03e07eb3a32f310255cb2be493e48f5f7 [INFO] running `Command { std: "docker" "start" "-a" "8fa918c2afbade0084a8f241453cf5d03e07eb3a32f310255cb2be493e48f5f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8fa918c2afbade0084a8f241453cf5d03e07eb3a32f310255cb2be493e48f5f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fa918c2afbade0084a8f241453cf5d03e07eb3a32f310255cb2be493e48f5f7", kill_on_drop: false }` [INFO] [stdout] 8fa918c2afbade0084a8f241453cf5d03e07eb3a32f310255cb2be493e48f5f7 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89764eb2434d92db844b7f229e6a781d70d37cfa72f1e6c5382bab77037ad3cd [INFO] running `Command { std: "docker" "start" "-a" "89764eb2434d92db844b7f229e6a781d70d37cfa72f1e6c5382bab77037ad3cd", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling serde_derive v1.0.132 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling pipeline v0.5.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling serde v1.0.132 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling serde_json v1.0.73 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling day-9-structs v0.0.0 (/opt/rustwide/workdir/crates/day-9/structs) [INFO] [stderr] Compiling day-5-let-vs-const v0.0.0 (/opt/rustwide/workdir/crates/day-5/let-vs-const) [INFO] [stdout] warning: method `get_state` is never used [INFO] [stdout] --> crates/day-9/structs/src/main.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 22 | impl TrafficLight { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_state(&self) -> &TrafficLightColor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Yellow` is never constructed [INFO] [stdout] --> crates/day-9/structs/src/main.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 39 | enum TrafficLightColor { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 40 | Red, [INFO] [stdout] 41 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-16-unsafe-pointers v0.0.0 (/opt/rustwide/workdir/crates/day-16/unsafe-pointers) [INFO] [stderr] Compiling day-6-loads-of-strs v0.0.0 (/opt/rustwide/workdir/crates/day-6/loads-of-strs) [INFO] [stderr] Compiling day-16-static v0.0.0 (/opt/rustwide/workdir/crates/day-16/static) [INFO] [stderr] Compiling day-11-traffic-light v0.0.0 (/opt/rustwide/workdir/crates/day-11/traffic-light) [INFO] [stderr] Compiling day-16-static-bounds v0.0.0 (/opt/rustwide/workdir/crates/day-16/static-bounds) [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static-bounds/src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 4 | let mut string = "First".to_owned(); [INFO] [stdout] | ---------- binding `string` declared here [INFO] [stdout] ... [INFO] [stdout] 9 | print_c(&string); // Compilation error [INFO] [stdout] | --------^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `string` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 14 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static-bounds/src/main.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 4 | let mut string = "First".to_owned(); [INFO] [stdout] | ---------- binding `string` declared here [INFO] [stdout] ... [INFO] [stdout] 10 | print_d(&string); // Compilation error [INFO] [stdout] | --------^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `string` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 14 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static-bounds/src/main.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 4 | let mut string = "First".to_owned(); [INFO] [stdout] | ---------- binding `string` declared here [INFO] [stdout] ... [INFO] [stdout] 13 | print_g(&string); // Compilation error [INFO] [stdout] | --------^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `string` is borrowed for `'static` [INFO] [stdout] 14 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static/src/main.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 18 | let string = "String".to_owned(); [INFO] [stdout] | ------ binding `string` declared here [INFO] [stdout] ... [INFO] [stdout] 21 | r3 = &string; // This *is* [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 22 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] 23 | println!("{}", r3); [INFO] [stdout] | -- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] Compiling day-12-impl-asref-str v0.0.0 (/opt/rustwide/workdir/crates/day-12/impl-asref-str) [INFO] [stderr] error: could not compile `day-16-static` (bin "day-16-static") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `day-16-static-bounds` (bin "day-16-static-bounds") due to 3 previous errors [INFO] [stdout] warning: method `turn_green` is never used [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl TrafficLight { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn turn_green(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Yellow` and `Green` are never constructed [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 39 | enum TrafficLightColor { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 40 | Red, [INFO] [stdout] 41 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_address` [INFO] [stdout] --> crates/day-12/impl-asref-str/src/main.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | let ip_address = std::net::Ipv4Addr::from_str("127.0.0.1").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "89764eb2434d92db844b7f229e6a781d70d37cfa72f1e6c5382bab77037ad3cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89764eb2434d92db844b7f229e6a781d70d37cfa72f1e6c5382bab77037ad3cd", kill_on_drop: false }` [INFO] [stdout] 89764eb2434d92db844b7f229e6a781d70d37cfa72f1e6c5382bab77037ad3cd