[INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/applypatch-msg.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust/hooks/applypatch-msg.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust/info/: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/post-update.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust/hooks/post-update.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust/branches/: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 7) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 8) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 9) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 10) [INFO] cloning repository https://github.com/catnipan/learn-compilers-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/catnipan/learn-compilers-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d55f3963aefd3fa5a55fa90494fcdf8dfb746fe6 [INFO] testing catnipan/learn-compilers-with-rust against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust" "/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/catnipan/learn-compilers-with-rust on toolchain beta-2025-04-13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/catnipan/learn-compilers-with-rust [INFO] finished tweaking git repo https://github.com/catnipan/learn-compilers-with-rust [INFO] tweaked toml for git repo https://github.com/catnipan/learn-compilers-with-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/catnipan/learn-compilers-with-rust 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" "+beta-2025-04-13" "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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87c0f6e6b10bd068b6772d94cf0b42c1afcaf21896b5d43b30e787d76a7b9133 [INFO] running `Command { std: "docker" "start" "-a" "87c0f6e6b10bd068b6772d94cf0b42c1afcaf21896b5d43b30e787d76a7b9133", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87c0f6e6b10bd068b6772d94cf0b42c1afcaf21896b5d43b30e787d76a7b9133", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87c0f6e6b10bd068b6772d94cf0b42c1afcaf21896b5d43b30e787d76a7b9133", kill_on_drop: false }` [INFO] [stdout] 87c0f6e6b10bd068b6772d94cf0b42c1afcaf21896b5d43b30e787d76a7b9133 [INFO] testing catnipan/learn-compilers-with-rust against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust" "/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/catnipan/learn-compilers-with-rust on toolchain beta-2025-04-13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/catnipan/learn-compilers-with-rust [INFO] finished tweaking git repo https://github.com/catnipan/learn-compilers-with-rust [INFO] tweaked toml for git repo https://github.com/catnipan/learn-compilers-with-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/catnipan/learn-compilers-with-rust 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" "+beta-2025-04-13" "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-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/85ce5f597a366c952097ddf92620ab228b514f218f558d8f0be1d06af4bdf9e6/work: no space left on device [INFO] testing catnipan/learn-compilers-with-rust against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcatnipan%2Flearn-compilers-with-rust" "/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/catnipan/learn-compilers-with-rust on toolchain beta-2025-04-13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/catnipan/learn-compilers-with-rust [INFO] finished tweaking git repo https://github.com/catnipan/learn-compilers-with-rust [INFO] tweaked toml for git repo https://github.com/catnipan/learn-compilers-with-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/catnipan/learn-compilers-with-rust 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" "+beta-2025-04-13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33b3659ca13a4299e711a3a9b824f7248ded62a40c0202310778f8b7ced04b51 [INFO] running `Command { std: "docker" "start" "-a" "33b3659ca13a4299e711a3a9b824f7248ded62a40c0202310778f8b7ced04b51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33b3659ca13a4299e711a3a9b824f7248ded62a40c0202310778f8b7ced04b51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33b3659ca13a4299e711a3a9b824f7248ded62a40c0202310778f8b7ced04b51", kill_on_drop: false }` [INFO] [stdout] 33b3659ca13a4299e711a3a9b824f7248ded62a40c0202310778f8b7ced04b51 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a16ddc1ce09dccc156630e0ce795d78aff2c5a888d2c1625a78816f443be9e2a [INFO] running `Command { std: "docker" "start" "-a" "a16ddc1ce09dccc156630e0ce795d78aff2c5a888d2c1625a78816f443be9e2a", kill_on_drop: false }` [INFO] [stderr] Compiling learn-compilers-with-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::automaton::Automaton` [INFO] [stdout] --> src/nfa_regexp.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::automaton::Automaton; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/dfa.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | for (group, old_ids) in parti.group_ids_map.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `init_state`, `is_dead`, `is_accept`, `transition`, and `test` are never used [INFO] [stdout] --> src/automaton.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Automaton { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn init_state(&self) -> Self::State; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | fn is_dead(&self, s: &Self::State) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | fn is_accept(&self, s: &Self::State) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | fn transition(&self, s: &Self::State, chr: char) -> Self::State; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | [INFO] [stdout] 9 | fn test(&self, s: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AutomatonRunner` is never constructed [INFO] [stdout] --> src/automaton.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct AutomatonRunner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_dead`, `is_accept`, and `next` are never used [INFO] [stdout] --> src/automaton.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 29 | impl AutomatonRunner { [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] 30 | fn new(automaton: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn next(&mut self, chr: char) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `states_size` is never read [INFO] [stdout] --> src/dfa.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DFAOne { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | pub states_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Partition` is never constructed [INFO] [stdout] --> src/dfa.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Partition { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `split`, and `which_group` are never used [INFO] [stdout] --> src/dfa.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 16 | impl Partition { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 17 | fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn split(&mut self, group: usize, new_color: &[usize]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn which_group(&self, id: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_at_least_two_elements` is never used [INFO] [stdout] --> src/dfa.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn has_at_least_two_elements(color: &[usize]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state_minimization` is never used [INFO] [stdout] --> src/dfa.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 57 | impl DFAOne { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 58 | fn state_minimization(&self, input: &str) -> DFAOne { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_nfa_to_dfa` is never used [INFO] [stdout] --> src/convert_nfa_to_dfa.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn convert_nfa_to_dfa(nfa: NFAOne, input_set: &str) -> DFAOne { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NFABasic` is never constructed [INFO] [stdout] --> src/nfa_regexp.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct NFABasic { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TransitionMapType` is never used [INFO] [stdout] --> src/nfa_regexp.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type TransitionMapType = HashMap<(usize, Option), Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NFAConstructor` is never constructed [INFO] [stdout] --> src/nfa_regexp.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct NFAConstructor { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/nfa_regexp.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 19 | impl NFAConstructor { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 20 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn gen_new_state_idx(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn add_new_transition(&mut self, from: usize, by: Option, to: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn construct_singleton(&mut self, input: Option) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn construct_e(&mut self) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn construct_single_char(&mut self, chr: char) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn union(&mut self, nfa_a: NFABasic, nfa_b: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn concat(&mut self, nfa_a: NFABasic, nfa_b: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn closure_basic( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn closure(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn closure_plus(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn question_mark(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StackFrame` is never constructed [INFO] [stdout] --> src/nfa_regexp.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | struct StackFrame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_regexp` is never used [INFO] [stdout] --> src/nfa_regexp.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 117 | impl NFAOne { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 118 | pub fn from_regexp(reg_exp: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NodeType` is never used [INFO] [stdout] --> src/dfa_regexp.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum NodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegASTNode` is never used [INFO] [stdout] --> src/dfa_regexp.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum RegASTNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegASTNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StackFrame` is never constructed [INFO] [stdout] --> src/dfa_regexp.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct StackFrame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_ast_regexp` is never used [INFO] [stdout] --> src/dfa_regexp.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn parse_ast_regexp(reg_exp: &str) -> RegASTNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DFABuilder` is never constructed [INFO] [stdout] --> src/dfa_regexp.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | struct DFABuilder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `gen_new_idx`, `acquire_new_pos_idx`, `acquire_end_pos_idx`, and `register_new_follow_pos` are never used [INFO] [stdout] --> src/dfa_regexp.rs:158:6 [INFO] [stdout] | [INFO] [stdout] 157 | impl DFABuilder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 158 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn gen_new_idx(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn acquire_new_pos_idx(&mut self, chr: char) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn acquire_end_pos_idx(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn register_new_follow_pos(&mut self, ns: &[usize], fs: &[usize]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TraverseInfo` is never constructed [INFO] [stdout] --> src/dfa_regexp.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | struct TraverseInfo { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_empty` and `new_singleton` are never used [INFO] [stdout] --> src/dfa_regexp.rs:205:6 [INFO] [stdout] | [INFO] [stdout] 204 | impl TraverseInfo { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 205 | fn new_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn new_singleton(idx: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_union` is never used [INFO] [stdout] --> src/dfa_regexp.rs:223:4 [INFO] [stdout] | [INFO] [stdout] 223 | fn set_union(set_a: Vec, set_b: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_regexp` is never used [INFO] [stdout] --> src/dfa_regexp.rs:228:10 [INFO] [stdout] | [INFO] [stdout] 227 | impl DFAOne { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 228 | pub fn from_regexp(reg_exp: &str, input: &str) -> DFAOne { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegOp` is never used [INFO] [stdout] --> src/regop.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum RegOp { Eof, Paren, Union, Concat, Closure, Plus, Question } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegOp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_priority` is never used [INFO] [stdout] --> src/regop.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl RegOp { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 5 | pub fn get_priority(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/escape_chars.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> EscapeChars<'a> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 6 | pub fn new(char_iterator: Chars<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_chr` is never used [INFO] [stdout] --> src/escape_chars.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 17 | impl MaybeEsc { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 18 | pub fn get_chr(&self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "a16ddc1ce09dccc156630e0ce795d78aff2c5a888d2c1625a78816f443be9e2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a16ddc1ce09dccc156630e0ce795d78aff2c5a888d2c1625a78816f443be9e2a", kill_on_drop: false }` [INFO] [stdout] a16ddc1ce09dccc156630e0ce795d78aff2c5a888d2c1625a78816f443be9e2a [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cb2e418dac090853920bce83617cf5830ca29b62b44099f46fab75ee7c5768d [INFO] running `Command { std: "docker" "start" "-a" "5cb2e418dac090853920bce83617cf5830ca29b62b44099f46fab75ee7c5768d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `super::automaton::Automaton` [INFO] [stdout] --> src/nfa_regexp.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::automaton::Automaton; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/dfa.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | for (group, old_ids) in parti.group_ids_map.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `init_state`, `is_dead`, `is_accept`, `transition`, and `test` are never used [INFO] [stdout] --> src/automaton.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Automaton { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn init_state(&self) -> Self::State; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | fn is_dead(&self, s: &Self::State) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | fn is_accept(&self, s: &Self::State) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | fn transition(&self, s: &Self::State, chr: char) -> Self::State; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | [INFO] [stdout] 9 | fn test(&self, s: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AutomatonRunner` is never constructed [INFO] [stdout] --> src/automaton.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct AutomatonRunner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_dead`, `is_accept`, and `next` are never used [INFO] [stdout] --> src/automaton.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 29 | impl AutomatonRunner { [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] 30 | fn new(automaton: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn next(&mut self, chr: char) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `states_size` is never read [INFO] [stdout] --> src/dfa.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DFAOne { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | pub states_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Partition` is never constructed [INFO] [stdout] --> src/dfa.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Partition { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `split`, and `which_group` are never used [INFO] [stdout] --> src/dfa.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 16 | impl Partition { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 17 | fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn split(&mut self, group: usize, new_color: &[usize]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn which_group(&self, id: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_at_least_two_elements` is never used [INFO] [stdout] --> src/dfa.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn has_at_least_two_elements(color: &[usize]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state_minimization` is never used [INFO] [stdout] --> src/dfa.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 57 | impl DFAOne { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 58 | fn state_minimization(&self, input: &str) -> DFAOne { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_nfa_to_dfa` is never used [INFO] [stdout] --> src/convert_nfa_to_dfa.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn convert_nfa_to_dfa(nfa: NFAOne, input_set: &str) -> DFAOne { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NFABasic` is never constructed [INFO] [stdout] --> src/nfa_regexp.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct NFABasic { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TransitionMapType` is never used [INFO] [stdout] --> src/nfa_regexp.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type TransitionMapType = HashMap<(usize, Option), Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NFAConstructor` is never constructed [INFO] [stdout] --> src/nfa_regexp.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct NFAConstructor { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/nfa_regexp.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 19 | impl NFAConstructor { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 20 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn gen_new_state_idx(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn add_new_transition(&mut self, from: usize, by: Option, to: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn construct_singleton(&mut self, input: Option) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn construct_e(&mut self) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn construct_single_char(&mut self, chr: char) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn union(&mut self, nfa_a: NFABasic, nfa_b: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn concat(&mut self, nfa_a: NFABasic, nfa_b: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn closure_basic( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn closure(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn closure_plus(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn question_mark(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StackFrame` is never constructed [INFO] [stdout] --> src/nfa_regexp.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | struct StackFrame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_regexp` is never used [INFO] [stdout] --> src/nfa_regexp.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 117 | impl NFAOne { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 118 | pub fn from_regexp(reg_exp: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NodeType` is never used [INFO] [stdout] --> src/dfa_regexp.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum NodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegASTNode` is never used [INFO] [stdout] --> src/dfa_regexp.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum RegASTNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegASTNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StackFrame` is never constructed [INFO] [stdout] --> src/dfa_regexp.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct StackFrame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_ast_regexp` is never used [INFO] [stdout] --> src/dfa_regexp.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn parse_ast_regexp(reg_exp: &str) -> RegASTNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DFABuilder` is never constructed [INFO] [stdout] --> src/dfa_regexp.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | struct DFABuilder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `gen_new_idx`, `acquire_new_pos_idx`, `acquire_end_pos_idx`, and `register_new_follow_pos` are never used [INFO] [stdout] --> src/dfa_regexp.rs:158:6 [INFO] [stdout] | [INFO] [stdout] 157 | impl DFABuilder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 158 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn gen_new_idx(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn acquire_new_pos_idx(&mut self, chr: char) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn acquire_end_pos_idx(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn register_new_follow_pos(&mut self, ns: &[usize], fs: &[usize]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TraverseInfo` is never constructed [INFO] [stdout] --> src/dfa_regexp.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | struct TraverseInfo { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_empty` and `new_singleton` are never used [INFO] [stdout] --> src/dfa_regexp.rs:205:6 [INFO] [stdout] | [INFO] [stdout] 204 | impl TraverseInfo { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 205 | fn new_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn new_singleton(idx: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_union` is never used [INFO] [stdout] --> src/dfa_regexp.rs:223:4 [INFO] [stdout] | [INFO] [stdout] 223 | fn set_union(set_a: Vec, set_b: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_regexp` is never used [INFO] [stdout] --> src/dfa_regexp.rs:228:10 [INFO] [stdout] | [INFO] [stdout] 227 | impl DFAOne { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 228 | pub fn from_regexp(reg_exp: &str, input: &str) -> DFAOne { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegOp` is never used [INFO] [stdout] --> src/regop.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum RegOp { Eof, Paren, Union, Concat, Closure, Plus, Question } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegOp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_priority` is never used [INFO] [stdout] --> src/regop.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl RegOp { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 5 | pub fn get_priority(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/escape_chars.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> EscapeChars<'a> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 6 | pub fn new(char_iterator: Chars<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_chr` is never used [INFO] [stdout] --> src/escape_chars.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 17 | impl MaybeEsc { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 18 | pub fn get_chr(&self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling learn-compilers-with-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/dfa.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | for (group, old_ids) in parti.group_ids_map.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AutomatonRunner` is never constructed [INFO] [stdout] --> src/automaton.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct AutomatonRunner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_dead`, `is_accept`, and `next` are never used [INFO] [stdout] --> src/automaton.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 29 | impl AutomatonRunner { [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] 30 | fn new(automaton: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn next(&mut self, chr: char) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "5cb2e418dac090853920bce83617cf5830ca29b62b44099f46fab75ee7c5768d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cb2e418dac090853920bce83617cf5830ca29b62b44099f46fab75ee7c5768d", kill_on_drop: false }` [INFO] [stdout] 5cb2e418dac090853920bce83617cf5830ca29b62b44099f46fab75ee7c5768d [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2a81631d003b3cbb8eb32f65909c7f04a1c18380fc0eab2e1f9e74202c6a6c9e [INFO] running `Command { std: "docker" "start" "-a" "2a81631d003b3cbb8eb32f65909c7f04a1c18380fc0eab2e1f9e74202c6a6c9e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `super::automaton::Automaton` [INFO] [stderr] --> src/nfa_regexp.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use super::automaton::Automaton; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `group` [INFO] [stderr] --> src/dfa.rs:103:10 [INFO] [stderr] | [INFO] [stderr] 103 | for (group, old_ids) in parti.group_ids_map.iter().enumerate() { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `init_state`, `is_dead`, `is_accept`, `transition`, and `test` are never used [INFO] [stderr] --> src/automaton.rs:4:6 [INFO] [stderr] | [INFO] [stderr] 1 | pub trait Automaton { [INFO] [stderr] | --------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 4 | fn init_state(&self) -> Self::State; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 5 | fn is_dead(&self, s: &Self::State) -> bool; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 6 | fn is_accept(&self, s: &Self::State) -> bool; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 7 | fn transition(&self, s: &Self::State, chr: char) -> Self::State; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 8 | [INFO] [stderr] 9 | fn test(&self, s: &str) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `AutomatonRunner` is never constructed [INFO] [stderr] --> src/automaton.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | struct AutomatonRunner { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `is_dead`, `is_accept`, and `next` are never used [INFO] [stderr] --> src/automaton.rs:30:6 [INFO] [stderr] | [INFO] [stderr] 29 | impl AutomatonRunner { [INFO] [stderr] | -------------------------------------- associated items in this implementation [INFO] [stderr] 30 | fn new(automaton: T) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | fn is_dead(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | fn is_accept(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | fn next(&mut self, chr: char) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `states_size` is never read [INFO] [stderr] --> src/dfa.rs:5:7 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct DFAOne { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 5 | pub states_size: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Partition` is never constructed [INFO] [stderr] --> src/dfa.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | struct Partition { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `split`, and `which_group` are never used [INFO] [stderr] --> src/dfa.rs:17:6 [INFO] [stderr] | [INFO] [stderr] 16 | impl Partition { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 17 | fn new(size: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | fn split(&mut self, group: usize, new_color: &[usize]) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | fn which_group(&self, id: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `has_at_least_two_elements` is never used [INFO] [stderr] --> src/dfa.rs:48:4 [INFO] [stderr] | [INFO] [stderr] 48 | fn has_at_least_two_elements(color: &[usize]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `state_minimization` is never used [INFO] [stderr] --> src/dfa.rs:58:6 [INFO] [stderr] | [INFO] [stderr] 57 | impl DFAOne { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] 58 | fn state_minimization(&self, input: &str) -> DFAOne { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `convert_nfa_to_dfa` is never used [INFO] [stderr] --> src/convert_nfa_to_dfa.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn convert_nfa_to_dfa(nfa: NFAOne, input_set: &str) -> DFAOne { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `NFABasic` is never constructed [INFO] [stderr] --> src/nfa_regexp.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | struct NFABasic { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `TransitionMapType` is never used [INFO] [stderr] --> src/nfa_regexp.rs:12:6 [INFO] [stderr] | [INFO] [stderr] 12 | type TransitionMapType = HashMap<(usize, Option), Vec>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `NFAConstructor` is never constructed [INFO] [stderr] --> src/nfa_regexp.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | struct NFAConstructor { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/nfa_regexp.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 19 | impl NFAConstructor { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 20 | fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | fn gen_new_state_idx(&mut self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | fn add_new_transition(&mut self, from: usize, by: Option, to: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | fn construct_singleton(&mut self, input: Option) -> NFABasic { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | fn construct_e(&mut self) -> NFABasic { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | fn construct_single_char(&mut self, chr: char) -> NFABasic { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | fn union(&mut self, nfa_a: NFABasic, nfa_b: NFABasic) -> NFABasic { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | fn concat(&mut self, nfa_a: NFABasic, nfa_b: NFABasic) -> NFABasic { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 76 | fn closure_basic( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | fn closure(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | fn closure_plus(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | fn question_mark(&mut self, nfa: NFABasic) -> NFABasic { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `StackFrame` is never constructed [INFO] [stderr] --> src/nfa_regexp.rs:112:8 [INFO] [stderr] | [INFO] [stderr] 112 | struct StackFrame { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_regexp` is never used [INFO] [stderr] --> src/nfa_regexp.rs:118:10 [INFO] [stderr] | [INFO] [stderr] 117 | impl NFAOne { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 118 | pub fn from_regexp(reg_exp: &str) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `NodeType` is never used [INFO] [stderr] --> src/dfa_regexp.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum NodeType { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NodeType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `RegASTNode` is never used [INFO] [stderr] --> src/dfa_regexp.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub enum RegASTNode { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RegASTNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `StackFrame` is never constructed [INFO] [stderr] --> src/dfa_regexp.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | struct StackFrame { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_ast_regexp` is never used [INFO] [stderr] --> src/dfa_regexp.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn parse_ast_regexp(reg_exp: &str) -> RegASTNode { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DFABuilder` is never constructed [INFO] [stderr] --> src/dfa_regexp.rs:150:8 [INFO] [stderr] | [INFO] [stderr] 150 | struct DFABuilder { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `gen_new_idx`, `acquire_new_pos_idx`, `acquire_end_pos_idx`, and `register_new_follow_pos` are never used [INFO] [stderr] --> src/dfa_regexp.rs:158:6 [INFO] [stderr] | [INFO] [stderr] 157 | impl DFABuilder { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] 158 | fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 167 | fn gen_new_idx(&mut self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 174 | fn acquire_new_pos_idx(&mut self, chr: char) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 180 | fn acquire_end_pos_idx(&mut self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 188 | fn register_new_follow_pos(&mut self, ns: &[usize], fs: &[usize]) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TraverseInfo` is never constructed [INFO] [stderr] --> src/dfa_regexp.rs:198:8 [INFO] [stderr] | [INFO] [stderr] 198 | struct TraverseInfo { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new_empty` and `new_singleton` are never used [INFO] [stderr] --> src/dfa_regexp.rs:205:6 [INFO] [stderr] | [INFO] [stderr] 204 | impl TraverseInfo { [INFO] [stderr] | ----------------- associated functions in this implementation [INFO] [stderr] 205 | fn new_empty() -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | fn new_singleton(idx: usize) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `set_union` is never used [INFO] [stderr] --> src/dfa_regexp.rs:223:4 [INFO] [stderr] | [INFO] [stderr] 223 | fn set_union(set_a: Vec, set_b: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_regexp` is never used [INFO] [stderr] --> src/dfa_regexp.rs:228:10 [INFO] [stderr] | [INFO] [stderr] 227 | impl DFAOne { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 228 | pub fn from_regexp(reg_exp: &str, input: &str) -> DFAOne { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RegOp` is never used [INFO] [stderr] --> src/regop.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | pub enum RegOp { Eof, Paren, Union, Concat, Closure, Plus, Question } [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RegOp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `get_priority` is never used [INFO] [stderr] --> src/regop.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 4 | impl RegOp { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 5 | pub fn get_priority(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/escape_chars.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 5 | impl<'a> EscapeChars<'a> { [INFO] [stderr] | ------------------------ associated function in this implementation [INFO] [stderr] 6 | pub fn new(char_iterator: Chars<'a>) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_chr` is never used [INFO] [stderr] --> src/escape_chars.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 17 | impl MaybeEsc { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] 18 | pub fn get_chr(&self) -> char { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `learn-compilers-with-rust` (lib) generated 31 warnings (run `cargo fix --lib -p learn-compilers-with-rust` to apply 1 suggestion) [INFO] [stderr] warning: struct `AutomatonRunner` is never constructed [INFO] [stderr] --> src/automaton.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | struct AutomatonRunner { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `learn-compilers-with-rust` (lib test) generated 3 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/learn_compilers_with_rust-c47c525127600428) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test dfa_regexp::tests::regexp_instance_1 ... ok [INFO] [stdout] test convert_nfa_to_dfa::tests::test_instance_1 ... ok [INFO] [stdout] test dfa_regexp::tests::regexp_instance_2 ... ok [INFO] [stdout] test escape_chars::tests::maybeesc_works ... ok [INFO] [stdout] test nfa::tests::test_instance_1 ... ok [INFO] [stdout] test dfa::tests::partition_works ... ok [INFO] [stdout] test dfa::tests::state_minimization_works ... ok [INFO] [stdout] test nfa_regexp::tests::regexp_instance_2 ... ok [INFO] [stdout] test nfa_regexp::tests::regexp_instance_1 ... ok [INFO] [stdout] test dfa_regexp::tests::regexp_number ... ok [INFO] [stdout] test dfa::tests::test_instance_1 ... ok [INFO] [stdout] test nfa_regexp::tests::regexp_number ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests learn_compilers_with_rust [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2a81631d003b3cbb8eb32f65909c7f04a1c18380fc0eab2e1f9e74202c6a6c9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a81631d003b3cbb8eb32f65909c7f04a1c18380fc0eab2e1f9e74202c6a6c9e", kill_on_drop: false }` [INFO] [stdout] 2a81631d003b3cbb8eb32f65909c7f04a1c18380fc0eab2e1f9e74202c6a6c9e