[INFO] cloning repository https://github.com/alexshadley/Spruce [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alexshadley/Spruce" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexshadley%2FSpruce", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexshadley%2FSpruce'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 34d1e48c4d2cc441bc4e105eafc71dbda9f83543 [INFO] checking alexshadley/Spruce against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexshadley%2FSpruce" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexshadley/Spruce on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alexshadley/Spruce [INFO] finished tweaking git repo https://github.com/alexshadley/Spruce [INFO] tweaked toml for git repo https://github.com/alexshadley/Spruce written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/alexshadley/Spruce already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 67652e07ab9af7003fb643b39165ce8724352a3e98c49a80810336af3a386db1 [INFO] running `Command { std: "docker" "start" "-a" "67652e07ab9af7003fb643b39165ce8724352a3e98c49a80810336af3a386db1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67652e07ab9af7003fb643b39165ce8724352a3e98c49a80810336af3a386db1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67652e07ab9af7003fb643b39165ce8724352a3e98c49a80810336af3a386db1", kill_on_drop: false }` [INFO] [stdout] 67652e07ab9af7003fb643b39165ce8724352a3e98c49a80810336af3a386db1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e54d700d2e8e8e78123c08c33c7d0dd9e656aca0b3d6ccf8c79777910e1c79cf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e54d700d2e8e8e78123c08c33c7d0dd9e656aca0b3d6ccf8c79777910e1c79cf", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling syn v1.0.26 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking static_assertions v0.3.4 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling nom v5.1.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling lexical-core v0.6.7 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking spruce v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Span` [INFO] [stdout] --> src/typecheck.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{NodeInfo, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/name_analysis.rs:613:9 [INFO] [stdout] | [INFO] [stdout] 613 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/name_analysis.rs:613:9 [INFO] [stdout] | [INFO] [stdout] 613 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&Access(_, _)` not covered [INFO] [stdout] --> src/codegen.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | match &expr.val { [INFO] [stdout] | ^^^^^^^^^ pattern `&Access(_, _)` not covered [INFO] [stdout] | [INFO] [stdout] ::: src/name_analysis.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / pub enum Expr { [INFO] [stdout] 35 | | Add(Box, Box), [INFO] [stdout] 36 | | Mult(Box, Box), [INFO] [stdout] 37 | | Subt(Box, Box), [INFO] [stdout] ... | [INFO] [stdout] 55 | | Access(Box, String) [INFO] [stdout] | | ------ not covered [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- `name_analysis::Expr` defined here [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&name_analysis::Expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/codegen.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn gen_type(prog: &Prog, env: &Environment, t: &ADT) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output` is never read [INFO] [stdout] --> src/codegen.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let mut output = String::from(""); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> src/codegen.rs:361:25 [INFO] [stdout] | [INFO] [stdout] 361 | Expr::StructVal(fields) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&Access(_, _)` not covered [INFO] [stdout] --> src/codegen.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | match &expr.val { [INFO] [stdout] | ^^^^^^^^^ pattern `&Access(_, _)` not covered [INFO] [stdout] | [INFO] [stdout] ::: src/name_analysis.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / pub enum Expr { [INFO] [stdout] 35 | | Add(Box, Box), [INFO] [stdout] 36 | | Mult(Box, Box), [INFO] [stdout] 37 | | Subt(Box, Box), [INFO] [stdout] ... | [INFO] [stdout] 55 | | Access(Box, String) [INFO] [stdout] | | ------ not covered [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- `name_analysis::Expr` defined here [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&name_analysis::Expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/codegen.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn gen_type(prog: &Prog, env: &Environment, t: &ADT) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output` is never read [INFO] [stdout] --> src/codegen.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let mut output = String::from(""); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> src/codegen.rs:361:25 [INFO] [stdout] | [INFO] [stdout] 361 | Expr::StructVal(fields) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:571:23 [INFO] [stdout] | [INFO] [stdout] 571 | fn to_type_annotation(mut p: Pair, file_name: &String) -> TypeAnnotationNode { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | let mut children = p.into_inner(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:615:12 [INFO] [stdout] | [INFO] [stdout] 615 | fn to_args(mut args: Pair, file_name: &String) -> (Vec<(String, Option)>, Option) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:645:15 [INFO] [stdout] | [INFO] [stdout] 645 | fn to_interop(mut p: Pair, file_name: &String) -> InteropFuncNode { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:666:12 [INFO] [stdout] | [INFO] [stdout] 666 | fn to_func(mut p: Pair, file_name: &String) -> FuncNode { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/import_analysis.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mod_deps = dependents.get_mut(dependency).expect("unreachable"); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/import_analysis.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut dep_count = dependencies.get_mut(dependent).expect("unreachable"); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:571:23 [INFO] [stdout] | [INFO] [stdout] 571 | fn to_type_annotation(mut p: Pair, file_name: &String) -> TypeAnnotationNode { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | let mut children = p.into_inner(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:615:12 [INFO] [stdout] | [INFO] [stdout] 615 | fn to_args(mut args: Pair, file_name: &String) -> (Vec<(String, Option)>, Option) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:645:15 [INFO] [stdout] | [INFO] [stdout] 645 | fn to_interop(mut p: Pair, file_name: &String) -> InteropFuncNode { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:666:12 [INFO] [stdout] | [INFO] [stdout] 666 | fn to_func(mut p: Pair, file_name: &String) -> FuncNode { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/import_analysis.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mod_deps = dependents.get_mut(dependency).expect("unreachable"); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/import_analysis.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut dep_count = dependencies.get_mut(dependent).expect("unreachable"); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/name_analysis.rs:1022:13 [INFO] [stdout] | [INFO] [stdout] 1022 | let mut adt = self.types.get_mut(data_type).expect("unreachable"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/name_analysis.rs:1022:13 [INFO] [stdout] | [INFO] [stdout] 1022 | let mut adt = self.types.get_mut(data_type).expect("unreachable"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `spruce` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e54d700d2e8e8e78123c08c33c7d0dd9e656aca0b3d6ccf8c79777910e1c79cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e54d700d2e8e8e78123c08c33c7d0dd9e656aca0b3d6ccf8c79777910e1c79cf", kill_on_drop: false }` [INFO] [stdout] e54d700d2e8e8e78123c08c33c7d0dd9e656aca0b3d6ccf8c79777910e1c79cf