[INFO] cloning repository https://github.com/linusconcepcion/advent2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/linusconcepcion/advent2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinusconcepcion%2Fadvent2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinusconcepcion%2Fadvent2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b204bf228fdb176c49b277a2ee9919345356a6c [INFO] building linusconcepcion/advent2020 against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinusconcepcion%2Fadvent2020" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/linusconcepcion/advent2020 [INFO] finished tweaking git repo https://github.com/linusconcepcion/advent2020 [INFO] tweaked toml for git repo https://github.com/linusconcepcion/advent2020 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/linusconcepcion/advent2020 on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/linusconcepcion/advent2020 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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df8993916ee62fd902b8c4f2b4c9c16ff66de9eb430b946bfa4634f070eb2293 [INFO] running `Command { std: "docker" "start" "-a" "df8993916ee62fd902b8c4f2b4c9c16ff66de9eb430b946bfa4634f070eb2293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df8993916ee62fd902b8c4f2b4c9c16ff66de9eb430b946bfa4634f070eb2293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df8993916ee62fd902b8c4f2b4c9c16ff66de9eb430b946bfa4634f070eb2293", kill_on_drop: false }` [INFO] [stdout] df8993916ee62fd902b8c4f2b4c9c16ff66de9eb430b946bfa4634f070eb2293 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] bf66787a06808ee8ccbe0dcccb1d55cfc3966737bacb4ecb54ca1eaf9e9703ac [INFO] running `Command { std: "docker" "start" "-a" "bf66787a06808ee8ccbe0dcccb1d55cfc3966737bacb4ecb54ca1eaf9e9703ac", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling advent2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/day19.rs:77:77 [INFO] [stdout] | [INFO] [stdout] 77 | None => &Rule::process_definition(self.number, self.definition, |ids| { Rule::expand_value(ids, all, cache, counters) }) [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found closure [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a str) -> Vec` [INFO] [stdout] found closure `{closure@src/day19.rs:77:77: 77:82}` [INFO] [stdout] note: closures can only be coerced to `fn` types if they do not capture any variables [INFO] [stdout] --> src/day19.rs:77:109 [INFO] [stdout] | [INFO] [stdout] 77 | None => &Rule::process_definition(self.number, self.definition, |ids| { Rule::expand_value(ids, all, cache, counters) }) [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^^^ `counters` captured here [INFO] [stdout] | | | [INFO] [stdout] | | `cache` captured here [INFO] [stdout] | `all` captured here [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/day19.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn process_definition(number: i32, definition: String, expandfunc: fn(ids: &str) -> Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day16.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | for mut field in fields { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/day19.rs:83:27 [INFO] [stdout] | [INFO] [stdout] 83 | fn process_definition(number: i32, definition: String, expandfunc: fn(ids: &str) -> Vec) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent2020` (bin "advent2020") due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bf66787a06808ee8ccbe0dcccb1d55cfc3966737bacb4ecb54ca1eaf9e9703ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf66787a06808ee8ccbe0dcccb1d55cfc3966737bacb4ecb54ca1eaf9e9703ac", kill_on_drop: false }` [INFO] [stdout] bf66787a06808ee8ccbe0dcccb1d55cfc3966737bacb4ecb54ca1eaf9e9703ac