[INFO] cloning repository https://github.com/chrde/toycc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chrde/toycc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchrde%2Ftoycc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchrde%2Ftoycc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8056cb9bff9b6b9ac6177340b88a75f7d116b10 [INFO] checking chrde/toycc/f8056cb9bff9b6b9ac6177340b88a75f7d116b10 against try#24cd45d7714ba43afd4b8e62fb677b069b21c4a5 for pr-129543 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchrde%2Ftoycc" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chrde/toycc on toolchain 24cd45d7714ba43afd4b8e62fb677b069b21c4a5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+24cd45d7714ba43afd4b8e62fb677b069b21c4a5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/chrde/toycc [INFO] finished tweaking git repo https://github.com/chrde/toycc [INFO] tweaked toml for git repo https://github.com/chrde/toycc written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/chrde/toycc 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" "+24cd45d7714ba43afd4b8e62fb677b069b21c4a5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+24cd45d7714ba43afd4b8e62fb677b069b21c4a5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6260855597be25139199f3cacef4c44740c86a3a0975560edb38da2beebcb5e6 [INFO] running `Command { std: "docker" "start" "-a" "6260855597be25139199f3cacef4c44740c86a3a0975560edb38da2beebcb5e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6260855597be25139199f3cacef4c44740c86a3a0975560edb38da2beebcb5e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6260855597be25139199f3cacef4c44740c86a3a0975560edb38da2beebcb5e6", kill_on_drop: false }` [INFO] [stdout] 6260855597be25139199f3cacef4c44740c86a3a0975560edb38da2beebcb5e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+24cd45d7714ba43afd4b8e62fb677b069b21c4a5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2feb70e0cb781876b33cfd437e4ea3f3fde9ce24637001e00ed736586d6052d [INFO] running `Command { std: "docker" "start" "-a" "c2feb70e0cb781876b33cfd437e4ea3f3fde9ce24637001e00ed736586d6052d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling tree-sitter v0.17.1 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking toycc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 66 | Statement::Expr(e) => self.gen_expr(&e), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 67 | Statement::Return(r) => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 71 | Statement::Compound(c) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 76 | Statement::Empty => {} [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 125 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 162 | BinOp::Add => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 166 | BinOp::Sub => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | BinOp::Mul => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 174 | BinOp::Div => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 215 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ ...and 6 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 237 | Expression::Unary(e) => self.gen_unary(e), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 238 | Expression::Assignment(a) => match a.lhs.as_ref() { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 248 | Expression::NumberLiteral(n) => { [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 251 | Expression::Identifier(local) => { [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 269 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op` is never read [INFO] [stdout] --> src/ast.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct AssignmentExpr { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 73 | pub op: AssignmentOp, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AssignmentExpr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Addr` and `Deref` are never constructed [INFO] [stdout] --> src/ast.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub enum UnaryOp { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 135 | Neg, [INFO] [stdout] 136 | Addr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 137 | Deref, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/tokenizer.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 263 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 264 | pub start: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 265 | pub end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 66 | Statement::Expr(e) => self.gen_expr(&e), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 67 | Statement::Return(r) => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 71 | Statement::Compound(c) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 76 | Statement::Empty => {} [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 125 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 162 | BinOp::Add => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 166 | BinOp::Sub => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | BinOp::Mul => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 174 | BinOp::Div => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 215 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ ...and 6 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 237 | Expression::Unary(e) => self.gen_unary(e), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 238 | Expression::Assignment(a) => match a.lhs.as_ref() { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 248 | Expression::NumberLiteral(n) => { [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 251 | Expression::Identifier(local) => { [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 269 | k => unimplemented!("{:?}", k), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op` is never read [INFO] [stdout] --> src/ast.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct AssignmentExpr { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 73 | pub op: AssignmentOp, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AssignmentExpr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Addr` and `Deref` are never constructed [INFO] [stdout] --> src/ast.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub enum UnaryOp { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 135 | Neg, [INFO] [stdout] 136 | Addr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 137 | Deref, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/tokenizer.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 263 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 264 | pub start: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 265 | pub end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.36s [INFO] running `Command { std: "docker" "inspect" "c2feb70e0cb781876b33cfd437e4ea3f3fde9ce24637001e00ed736586d6052d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2feb70e0cb781876b33cfd437e4ea3f3fde9ce24637001e00ed736586d6052d", kill_on_drop: false }` [INFO] [stdout] c2feb70e0cb781876b33cfd437e4ea3f3fde9ce24637001e00ed736586d6052d