[INFO] updating cached repository https://github.com/m-bra/swirl [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 2b7459ae84cc4acb4585c33ff4a2bb080fd80a03 [INFO] testing m-bra/swirl against try#41997647ba6a77908f6ef64401414feb00bccf16 for pr-71274 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-bra%2Fswirl" "/workspace/builds/worker-9/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/m-bra/swirl on toolchain 41997647ba6a77908f6ef64401414feb00bccf16 [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/m-bra/swirl [INFO] finished tweaking git repo https://github.com/m-bra/swirl [INFO] tweaked toml for git repo https://github.com/m-bra/swirl written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tinytemplate v1.0.4 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 70f9175c5e998941ef778387ff27ca2b98af9a1cb37c8ad97cc2b599ccb8cbba [INFO] running `"docker" "start" "-a" "70f9175c5e998941ef778387ff27ca2b98af9a1cb37c8ad97cc2b599ccb8cbba"` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling oorandom v11.1.0 [INFO] [stderr] Compiling finally-block v0.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling plotters v0.2.12 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling serde_json v1.0.51 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling bstr v0.2.12 [INFO] [stderr] Compiling criterion-plot v0.4.1 [INFO] [stderr] Compiling rayon v1.3.0 [INFO] [stderr] Compiling csv v1.1.3 [INFO] [stderr] Compiling tinytemplate v1.0.4 [INFO] [stderr] Compiling regex v1.3.7 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling criterion v0.3.1 [INFO] [stderr] Compiling swirl v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/mmatch/match_rule_variant.rs:156:58 [INFO] [stderr] | [INFO] [stderr] 151 | / unimplemented!(" [INFO] [stderr] 152 | | this program crashed because the coder was too lazy to implement a specific case. sorry. [INFO] [stderr] 153 | | okay but alright to be fair, recursive rules are unefficient when they have bodies. [INFO] [stderr] 154 | | "); [INFO] [stderr] | |___________________________- any code following this expression is unreachable [INFO] [stderr] 155 | // the following code needs to be fixed by ... [INFO] [stderr] 156 | for (_, mut invoc_str_result) in frame_stack.drain(..).rev() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `level` is never read [INFO] [stderr] --> src/mmatch/match_invocation_string.rs:229:13 [INFO] [stderr] | [INFO] [stderr] 229 | level -= 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `frame_result` is never read [INFO] [stderr] --> src/mmatch/match_rule_variant.rs:115:25 [INFO] [stderr] | [INFO] [stderr] 115 | let mut frame_result = Ok(("", InvocStrResult::empty())); // result of current frame [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `body` [INFO] [stderr] --> src/mmatch/match_rule_variant.rs:150:33 [INFO] [stderr] | [INFO] [stderr] 150 | if let Some(body) = &self.body { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/mmatch/match_rule_variant.rs:168:33 [INFO] [stderr] | [INFO] [stderr] 168 | for (_, mut invoc_str_result) in frame_stack.drain(..).rev() { [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `first` should have an upper case name [INFO] [stderr] --> src/mmatch/match_rule_variant.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | static mut first: bool = true; [INFO] [stderr] | ^^^^^ help: convert the identifier to upper case: `FIRST` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 41s [INFO] running `"docker" "inspect" "70f9175c5e998941ef778387ff27ca2b98af9a1cb37c8ad97cc2b599ccb8cbba"` [INFO] running `"docker" "rm" "-f" "70f9175c5e998941ef778387ff27ca2b98af9a1cb37c8ad97cc2b599ccb8cbba"` [INFO] [stdout] 70f9175c5e998941ef778387ff27ca2b98af9a1cb37c8ad97cc2b599ccb8cbba [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2515c6abdb602e0529433a2e3f60c58792d10ea87a6551327b0c6d58fab1ca7c [INFO] running `"docker" "start" "-a" "2515c6abdb602e0529433a2e3f60c58792d10ea87a6551327b0c6d58fab1ca7c"` [INFO] [stderr] Compiling swirl v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0425]: cannot find function `parse_header` in this scope [INFO] [stderr] --> src/mmatch/match_rule.rs:79:17 [INFO] [stderr] | [INFO] [stderr] 79 | parse_header("::digit").unwrap(), None [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `parse_header` in this scope [INFO] [stderr] --> src/mmatch/match_rule.rs:82:17 [INFO] [stderr] | [INFO] [stderr] 82 | parse_header(":d:digit::digits").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `parse_body` in this scope [INFO] [stderr] --> src/mmatch/match_rule.rs:83:22 [INFO] [stderr] | [INFO] [stderr] 83 | Some(parse_body("Two .times: :d:d").unwrap()), [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/mmatch/match_rule_variant.rs:156:58 [INFO] [stderr] | [INFO] [stderr] 151 | / unimplemented!(" [INFO] [stderr] 152 | | this program crashed because the coder was too lazy to implement a specific case. sorry. [INFO] [stderr] 153 | | okay but alright to be fair, recursive rules are unefficient when they have bodies. [INFO] [stderr] 154 | | "); [INFO] [stderr] | |___________________________- any code following this expression is unreachable [INFO] [stderr] 155 | // the following code needs to be fixed by ... [INFO] [stderr] 156 | for (_, mut invoc_str_result) in frame_stack.drain(..).rev() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/types/invocation_string.rs:142:82 [INFO] [stderr] | [INFO] [stderr] 142 | let header = match_invocation_string_def("{::expr {' or '} ::or}", '{', '}', WhiteSpaceHandling::Remove) .unwrap().1.unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected `&mmatch::match_invocation_string::WhiteSpaceHandling`, found enum `mmatch::match_invocation_string::WhiteSpaceHandling` [INFO] [stderr] | help: consider borrowing here: `&WhiteSpaceHandling::Remove` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `swirl`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "2515c6abdb602e0529433a2e3f60c58792d10ea87a6551327b0c6d58fab1ca7c"` [INFO] running `"docker" "rm" "-f" "2515c6abdb602e0529433a2e3f60c58792d10ea87a6551327b0c6d58fab1ca7c"` [INFO] [stdout] 2515c6abdb602e0529433a2e3f60c58792d10ea87a6551327b0c6d58fab1ca7c