[INFO] cloning repository https://github.com/burmudar/rust-grep [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/burmudar/rust-grep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburmudar%2Frust-grep", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburmudar%2Frust-grep'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb43a4990fb3b74cc38e772c3d865fb221559e3a [INFO] checking burmudar/rust-grep against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburmudar%2Frust-grep" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/burmudar/rust-grep on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/burmudar/rust-grep [INFO] finished tweaking git repo https://github.com/burmudar/rust-grep [INFO] tweaked toml for git repo https://github.com/burmudar/rust-grep written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/burmudar/rust-grep 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c59dd15c0443be8203dd052ee628262d4a73f600cfd0cc1cb99c363e3f4478f0 [INFO] running `Command { std: "docker" "start" "-a" "c59dd15c0443be8203dd052ee628262d4a73f600cfd0cc1cb99c363e3f4478f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c59dd15c0443be8203dd052ee628262d4a73f600cfd0cc1cb99c363e3f4478f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c59dd15c0443be8203dd052ee628262d4a73f600cfd0cc1cb99c363e3f4478f0", kill_on_drop: false }` [INFO] [stdout] c59dd15c0443be8203dd052ee628262d4a73f600cfd0cc1cb99c363e3f4478f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 269e9f61e0a06ad29f7cd00dcda51e5801774f22a8624471a409f7d0d6241fbf [INFO] running `Command { std: "docker" "start" "-a" "269e9f61e0a06ad29f7cd00dcda51e5801774f22a8624471a409f7d0d6241fbf", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Checking grep-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/dfa.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::add_transition` [INFO] [stdout] --> src/dfa.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn add_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::add_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::unshift_transition` [INFO] [stdout] --> src/dfa.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unshift_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::unshift_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Character` and `Epsilon` are never constructed [INFO] [stdout] --> src/dfa.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 36 | Character(PredicateFn), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 37 | Epsilon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Matcher` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_char`, `new_epsilon`, `matches`, and `is_epsilon` are never used [INFO] [stdout] --> src/dfa.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl Matcher { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 59 | fn new_char(c: char) -> Matcher { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn new_epsilon() -> Matcher { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn matches(self: Self, c: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn is_epsilon(self: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NFAEngine` is never constructed [INFO] [stdout] --> src/dfa.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct NFAEngine { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dfa.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 121 | impl NFAEngine { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 122 | fn new(initial: State) -> NFAEngine { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn from(name: &str) -> NFAEngine { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn state_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn has_state(&self, state: &State) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn get_state(&self, name: &str) -> Option<&State> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn has_state_name(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn add_state(&mut self, state: &State) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn add_states(&mut self, states: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | fn declare_states_with_names(&mut self, names: &[&str]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn set_initial_state(&mut self, state: State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn set_ending_states(&mut self, states: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn add_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn unshift_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/dfa.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::add_transition` [INFO] [stdout] --> src/dfa.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn add_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::add_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::unshift_transition` [INFO] [stdout] --> src/dfa.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unshift_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::unshift_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Character` and `Epsilon` are never constructed [INFO] [stdout] --> src/dfa.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 36 | Character(PredicateFn), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 37 | Epsilon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Matcher` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_char`, `new_epsilon`, `matches`, and `is_epsilon` are never used [INFO] [stdout] --> src/dfa.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl Matcher { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 59 | fn new_char(c: char) -> Matcher { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn new_epsilon() -> Matcher { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn matches(self: Self, c: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn is_epsilon(self: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_states`, `set_initial_state`, `add_transition`, `unshift_transition`, and `compute` are never used [INFO] [stdout] --> src/dfa.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 121 | impl NFAEngine { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | fn add_states(&mut self, states: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn set_initial_state(&mut self, state: State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn add_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn unshift_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.09s [INFO] running `Command { std: "docker" "inspect" "269e9f61e0a06ad29f7cd00dcda51e5801774f22a8624471a409f7d0d6241fbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "269e9f61e0a06ad29f7cd00dcda51e5801774f22a8624471a409f7d0d6241fbf", kill_on_drop: false }` [INFO] [stdout] 269e9f61e0a06ad29f7cd00dcda51e5801774f22a8624471a409f7d0d6241fbf [INFO] checking burmudar/rust-grep against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fburmudar%2Frust-grep" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/burmudar/rust-grep on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/burmudar/rust-grep [INFO] finished tweaking git repo https://github.com/burmudar/rust-grep [INFO] tweaked toml for git repo https://github.com/burmudar/rust-grep written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/burmudar/rust-grep 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 026ad7987d936dc2e66706c9b24b22a73c847c920784b5d35cb3058ef9bba3c4 [INFO] running `Command { std: "docker" "start" "-a" "026ad7987d936dc2e66706c9b24b22a73c847c920784b5d35cb3058ef9bba3c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "026ad7987d936dc2e66706c9b24b22a73c847c920784b5d35cb3058ef9bba3c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "026ad7987d936dc2e66706c9b24b22a73c847c920784b5d35cb3058ef9bba3c4", kill_on_drop: false }` [INFO] [stdout] 026ad7987d936dc2e66706c9b24b22a73c847c920784b5d35cb3058ef9bba3c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6723f4c01b62f40fc10b7fbcc10236f8f5b5bf88326b9d8381ebb8224d9607a0 [INFO] running `Command { std: "docker" "start" "-a" "6723f4c01b62f40fc10b7fbcc10236f8f5b5bf88326b9d8381ebb8224d9607a0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Checking grep-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/dfa.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::add_transition` [INFO] [stdout] --> src/dfa.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn add_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::add_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::unshift_transition` [INFO] [stdout] --> src/dfa.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unshift_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::unshift_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Character` and `Epsilon` are never constructed [INFO] [stdout] --> src/dfa.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 36 | Character(PredicateFn), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 37 | Epsilon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Matcher` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_char`, `new_epsilon`, `matches`, and `is_epsilon` are never used [INFO] [stdout] --> src/dfa.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl Matcher { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 59 | fn new_char(c: char) -> Matcher { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn new_epsilon() -> Matcher { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn matches(self: Self, c: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn is_epsilon(self: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NFAEngine` is never constructed [INFO] [stdout] --> src/dfa.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct NFAEngine { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dfa.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 121 | impl NFAEngine { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 122 | fn new(initial: State) -> NFAEngine { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn from(name: &str) -> NFAEngine { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn state_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn has_state(&self, state: &State) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn get_state(&self, name: &str) -> Option<&State> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn has_state_name(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn add_state(&mut self, state: &State) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn add_states(&mut self, states: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | fn declare_states_with_names(&mut self, names: &[&str]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn set_initial_state(&mut self, state: State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn set_ending_states(&mut self, states: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn add_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn unshift_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/dfa.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::add_transition` [INFO] [stdout] --> src/dfa.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn add_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::add_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matcher` is more private than the item `State::unshift_transition` [INFO] [stdout] --> src/dfa.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unshift_transition(&mut self, to_state: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `State::unshift_transition` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dfa.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Character` and `Epsilon` are never constructed [INFO] [stdout] --> src/dfa.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | enum Matcher { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 36 | Character(PredicateFn), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 37 | Epsilon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Matcher` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_char`, `new_epsilon`, `matches`, and `is_epsilon` are never used [INFO] [stdout] --> src/dfa.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl Matcher { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 59 | fn new_char(c: char) -> Matcher { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn new_epsilon() -> Matcher { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn matches(self: Self, c: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn is_epsilon(self: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_states`, `set_initial_state`, `add_transition`, `unshift_transition`, and `compute` are never used [INFO] [stdout] --> src/dfa.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 121 | impl NFAEngine { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | fn add_states(&mut self, states: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn set_initial_state(&mut self, state: State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn add_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn unshift_transition(&mut self, from: State, to: State, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn compute(self, value: String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.06s [INFO] running `Command { std: "docker" "inspect" "6723f4c01b62f40fc10b7fbcc10236f8f5b5bf88326b9d8381ebb8224d9607a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6723f4c01b62f40fc10b7fbcc10236f8f5b5bf88326b9d8381ebb8224d9607a0", kill_on_drop: false }` [INFO] [stdout] 6723f4c01b62f40fc10b7fbcc10236f8f5b5bf88326b9d8381ebb8224d9607a0