[INFO] updating cached repository https://github.com/m-bra/swirl [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1f5cf94782b69ec0be40766898e8771d1384a3e [INFO] checking m-bra/swirl against master#e1beee4992ad4b235fc700bf7af1ee86f894ea53 for pr-74130 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-bra%2Fswirl" "/workspace/builds/worker-9/source", kill_on_drop: false }` [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 e1beee4992ad4b235fc700bf7af1ee86f894ea53 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "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] 88d0479881728671cc40272a1e11f596e944f387407705e0c479203fc9211ac0 [INFO] running `Command { std: "docker" "start" "-a" "88d0479881728671cc40272a1e11f596e944f387407705e0c479203fc9211ac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88d0479881728671cc40272a1e11f596e944f387407705e0c479203fc9211ac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88d0479881728671cc40272a1e11f596e944f387407705e0c479203fc9211ac0", kill_on_drop: false }` [INFO] [stdout] 88d0479881728671cc40272a1e11f596e944f387407705e0c479203fc9211ac0 [INFO] running `Command { std: "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@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19f2f33e0df25c6847274f4f00382e259e9885ad895c99d70a8e38a02be3477c [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" "19f2f33e0df25c6847274f4f00382e259e9885ad895c99d70a8e38a02be3477c", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libc v0.2.72 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking half v1.6.0 [INFO] [stderr] Checking oorandom v11.1.2 [INFO] [stderr] Checking finally-block v0.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Checking tinytemplate v1.1.0 [INFO] [stderr] Checking criterion v0.3.3 [INFO] [stderr] Checking swirl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `parse_header` in this scope [INFO] [stdout] --> src/mmatch/match_rule.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | parse_header("::digit").unwrap(), None [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_header` in this scope [INFO] [stdout] --> src/mmatch/match_rule.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | parse_header(":d:digit::digits").unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_body` in this scope [INFO] [stdout] --> src/mmatch/match_rule.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | Some(parse_body("Two .times: :d:d").unwrap()), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `v` in this scope [INFO] [stdout] --> src/main.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | rules.insert("", v: V) [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | expecting a type here because of type ascription [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `V` in this scope [INFO] [stdout] --> src/main.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 79 | fn init_rules() -> &mut Rules { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 80 | let mut rules = HashMap::new(); [INFO] [stdout] 81 | rules.insert("", v: V) [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | expecting a type here because of type ascription [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/main.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | fn init_rules() -> &mut Rules { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 79 | fn init_rules() -> &'static mut Rules { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `v` in this scope [INFO] [stdout] --> src/main.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | rules.insert("", v: V) [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | expecting a type here because of type ascription [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `V` in this scope [INFO] [stdout] --> src/main.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 79 | fn init_rules() -> &mut Rules { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 80 | let mut rules = HashMap::new(); [INFO] [stdout] 81 | rules.insert("", v: V) [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | expecting a type here because of type ascription [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/main.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | fn init_rules() -> &mut Rules { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 79 | fn init_rules() -> &'static mut Rules { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | rules.insert("", v: V) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected mutable reference, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&'static mut std::collections::HashMap` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/mmatch/match_rule_variant.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 151 | / unimplemented!(" [INFO] [stdout] 152 | | this program crashed because the coder was too lazy to implement a specific case. sorry. [INFO] [stdout] 153 | | okay but alright to be fair, recursive rules are unefficient when they have bodies. [INFO] [stdout] 154 | | "); [INFO] [stdout] | |___________________________- any code following this expression is unreachable [INFO] [stdout] 155 | // the following code needs to be fixed by ... [INFO] [stdout] 156 | for (_, mut invoc_str_result) in frame_stack.drain(..).rev() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/invocation_string.rs:142:82 [INFO] [stdout] | [INFO] [stdout] 142 | let header = match_invocation_string_def("{::expr {' or '} ::or}", '{', '}', WhiteSpaceHandling::Remove) .unwrap().1.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mmatch::match_invocation_string::WhiteSpaceHandling`, found enum `mmatch::match_invocation_string::WhiteSpaceHandling` [INFO] [stdout] | help: consider borrowing here: `&WhiteSpaceHandling::Remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `swirl`. [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[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | rules.insert("", v: V) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected mutable reference, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&'static mut std::collections::HashMap` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/mmatch/match_rule_variant.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 151 | / unimplemented!(" [INFO] [stdout] 152 | | this program crashed because the coder was too lazy to implement a specific case. sorry. [INFO] [stdout] 153 | | okay but alright to be fair, recursive rules are unefficient when they have bodies. [INFO] [stdout] 154 | | "); [INFO] [stdout] | |___________________________- any code following this expression is unreachable [INFO] [stdout] 155 | // the following code needs to be fixed by ... [INFO] [stdout] 156 | for (_, mut invoc_str_result) in frame_stack.drain(..).rev() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "19f2f33e0df25c6847274f4f00382e259e9885ad895c99d70a8e38a02be3477c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19f2f33e0df25c6847274f4f00382e259e9885ad895c99d70a8e38a02be3477c", kill_on_drop: false }` [INFO] [stdout] 19f2f33e0df25c6847274f4f00382e259e9885ad895c99d70a8e38a02be3477c