[INFO] cloning repository https://github.com/stevenlandis/rust-state-machine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stevenlandis/rust-state-machine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstevenlandis%2Frust-state-machine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstevenlandis%2Frust-state-machine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0567dd0ebbd777e1b9e20b79a1626320c2c12989 [INFO] building stevenlandis/rust-state-machine against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstevenlandis%2Frust-state-machine" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stevenlandis/rust-state-machine on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stevenlandis/rust-state-machine [INFO] finished tweaking git repo https://github.com/stevenlandis/rust-state-machine [INFO] tweaked toml for git repo https://github.com/stevenlandis/rust-state-machine written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/stevenlandis/rust-state-machine 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1a1aed7456c7b8bc92012b28d9b742a4728739493753806ff771b4c5275ab0d [INFO] running `Command { std: "docker" "start" "-a" "b1a1aed7456c7b8bc92012b28d9b742a4728739493753806ff771b4c5275ab0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1a1aed7456c7b8bc92012b28d9b742a4728739493753806ff771b4c5275ab0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1a1aed7456c7b8bc92012b28d9b742a4728739493753806ff771b4c5275ab0d", kill_on_drop: false }` [INFO] [stdout] b1a1aed7456c7b8bc92012b28d9b742a4728739493753806ff771b4c5275ab0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1aec2db47246d09566eb4a094ec16c0d6eac759b607fa7239cfb1c5bf5c84d37 [INFO] running `Command { std: "docker" "start" "-a" "1aec2db47246d09566eb4a094ec16c0d6eac759b607fa7239cfb1c5bf5c84d37", kill_on_drop: false }` [INFO] [stderr] Compiling rust-state-machine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/fa.rs:355:21 [INFO] [stdout] | [INFO] [stdout] 355 | match nfa.step(&nfa_states[state_idx], symbol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#4` [INFO] [stdout] | up until Edition 2021 `#4` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 356 | None => return None, [INFO] [stdout] 357 | Some(next_state) => { [INFO] [stdout] | ---------- [INFO] [stdout] | | [INFO] [stdout] | `next_state` calls a custom destructor [INFO] [stdout] | `next_state` will be dropped later as of Edition 2024 [INFO] [stdout] 358 | let (common_actions, next_state) = nfa::get_common_actions(&next_state); [INFO] [stdout] | -------------- ---------- ------------------------------------ [INFO] [stdout] | | | | [INFO] [stdout] | | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | | `#2` will be dropped later as of Edition 2024 [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] | `common_actions` calls a custom destructor [INFO] [stdout] | `common_actions` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 375 | / dfa_states[state_idx].edges.insert( [INFO] [stdout] 376 | | symbol, [INFO] [stdout] 377 | | Edge { [INFO] [stdout] 378 | | to, [INFO] [stdout] 379 | | actions: common_actions, [INFO] [stdout] 380 | | }, [INFO] [stdout] 381 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |___________________this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | `#3` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 384 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NfaNode` is never constructed [INFO] [stdout] --> src/binary_fa.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct NfaNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NfaEdgeSymbol` is never used [INFO] [stdout] --> src/binary_fa.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum NfaEdgeSymbol { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NfaEdge` is never constructed [INFO] [stdout] --> src/binary_fa.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct NfaEdge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nfa` is never constructed [INFO] [stdout] --> src/binary_fa.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Nfa { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NfaState` is never constructed [INFO] [stdout] --> src/binary_fa.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct NfaState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DfaNode` is never constructed [INFO] [stdout] --> src/binary_fa.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct DfaNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DfaEdge` is never constructed [INFO] [stdout] --> src/binary_fa.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct DfaEdge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dfa` is never constructed [INFO] [stdout] --> src/binary_fa.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Dfa { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DfaState` is never constructed [INFO] [stdout] --> src/binary_fa.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | struct DfaState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/binary_fa.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 133 | impl Nfa { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 134 | fn new() -> Nfa { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn add_node(&mut self, start: bool, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn add_node_with_flags(&mut self, start: bool, end: bool, flags: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn add_edge(&mut self, from: usize, to: usize, symbol: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn add_empty_edge(&mut self, from: usize, to: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn take_empty_edges(&self, state: &NfaState) -> NfaState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn get_initial_state(&self) -> NfaState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | fn step(&self, state: &NfaState, symbol: bool) -> NfaState { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn is_end(&self, state: &NfaState) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn get_flags(&self, state: &NfaState) -> HashSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn add_nfa_as_edge(&mut self, from: usize, to: usize, nfa: &Nfa) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | fn repeat(&self) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn reverse(&self) -> Nfa { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | fn union(nfas: &Vec<&Nfa>) -> Nfa { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn concat(nfas: &Vec<&Nfa>) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | fn from_dfa(dfa: &Dfa) -> Nfa { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | fn to_dfa(&self) -> Dfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | fn invert(&self) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/binary_fa.rs:343:6 [INFO] [stdout] | [INFO] [stdout] 342 | impl Dfa { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 343 | fn from_nfa(nfa: &Nfa) -> Dfa { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 428 | fn to_nfa(&self) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 431 | fn to_block_dfa(&self, size: usize) -> BlockDfa { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | fn get_initial_state(&self) -> DfaState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | fn step(&self, state: &DfaState, symbol: bool) -> DfaState { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | fn is_end(&self, state: &DfaState) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | fn get_flags(&self, state: &DfaState) -> HashSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 453 | fn has_flag(&self, state: &DfaState, flag: &u32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 456 | fn invert(&self) -> Dfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | fn reverse(&self) -> Dfa { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | fn simplify(&self) -> Dfa { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 474 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockDfa` is never constructed [INFO] [stdout] --> src/binary_fa.rs:492:8 [INFO] [stdout] | [INFO] [stdout] 492 | struct BlockDfa { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockDfaNode` is never constructed [INFO] [stdout] --> src/binary_fa.rs:498:8 [INFO] [stdout] | [INFO] [stdout] 498 | struct BlockDfaNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_dfa` and `print` are never used [INFO] [stdout] --> src/binary_fa.rs:502:6 [INFO] [stdout] | [INFO] [stdout] 501 | impl BlockDfa { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 502 | fn from_dfa(dfa: &Dfa, size: usize) -> BlockDfa { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 581 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Component` is never used [INFO] [stdout] --> src/binary_fa.rs:620:6 [INFO] [stdout] | [INFO] [stdout] 620 | enum Component { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pattern` is never constructed [INFO] [stdout] --> src/binary_fa.rs:631:12 [INFO] [stdout] | [INFO] [stdout] 631 | pub struct Pattern { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pattern` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/binary_fa.rs:635:6 [INFO] [stdout] | [INFO] [stdout] 634 | impl Pattern { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 635 | fn new() -> Pattern { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 640 | fn then_bit(mut self, bit: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | fn then_u8(mut self, val: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 648 | fn then_str(mut self, string: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 654 | fn then(mut self, pattern: &Pattern) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | fn maybe(mut self, pattern: &Pattern) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 662 | fn repeat(mut self, pattern: &Pattern) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 666 | fn or(mut self, patterns: &Vec) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 672 | fn flag(mut self, flag: u32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 676 | fn to_nfa(&self) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 722 | fn to_dfa(&self) -> Dfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `feed_dfa` is never used [INFO] [stdout] --> src/binary_fa.rs:727:4 [INFO] [stdout] | [INFO] [stdout] 727 | fn feed_dfa(dfa: &Dfa, symbols: Vec) -> DfaState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accepts_bits` is never used [INFO] [stdout] --> src/binary_fa.rs:734:4 [INFO] [stdout] | [INFO] [stdout] 734 | fn accepts_bits(dfa: &Dfa, symbols: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accepts_str` is never used [INFO] [stdout] --> src/binary_fa.rs:737:4 [INFO] [stdout] | [INFO] [stdout] 737 | fn accepts_str(dfa: &Dfa, string: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/fa.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/fa.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nfa` is never constructed [INFO] [stdout] --> src/fa.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Nfa { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Nfa` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ParseState` is never used [INFO] [stdout] --> src/fa.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub type ParseState = HashMap>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_parse_set` is never used [INFO] [stdout] --> src/fa.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_parse_set(state: &ParseState) -> BTreeSet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_symbols` is never used [INFO] [stdout] --> src/fa.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_symbols( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_common_actions` is never used [INFO] [stdout] --> src/fa.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_common_actions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/fa.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Nfa { [INFO] [stdout] | ---------------------------------------------------------- associated items in this implementation [INFO] [stdout] 86 | pub fn new() -> Nfa { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn add_state(&mut self, initial: bool, terminal: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn add_edge(&mut self, from: usize, to: usize, symbol: S, actions: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn add_empty_edge(&mut self, from: usize, to: usize, actions: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn get_initial_parse_state(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn take_empty_edges(&self, state: &ParseState) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn step(&self, state: &ParseState, symbol: S) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn is_terminal(&self, state: &ParseState) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn has_pending_actions(&self, state: &ParseState) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn from_dfa(dfa: &dfa::Dfa) -> Nfa { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn repeat(&self) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn import_edges(&mut self, nfa: &Nfa, offset: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn union(nfas: &Vec<&Nfa>) -> Nfa { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn concat(nfas: &Vec<&Nfa>) -> Nfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Edge` is never constructed [INFO] [stdout] --> src/fa.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | pub struct Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/fa.rs:295:14 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dfa` is never constructed [INFO] [stdout] --> src/fa.rs:298:14 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct Dfa { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseState` is never constructed [INFO] [stdout] --> src/fa.rs:303:14 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct ParseState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_nfa`, `get_initial_parse_state`, `step`, and `is_terminal` are never used [INFO] [stdout] --> src/fa.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 307 | impl Dfa { [INFO] [stdout] | -------------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 308 | pub fn from_nfa(nfa: &nfa::Nfa) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn get_initial_parse_state(&self) -> ParseState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | pub fn step(&self, state: &ParseState, symbol: S) -> Option<(ParseState, &Vec)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | pub fn is_terminal(&self, state: &ParseState) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Component` is never used [INFO] [stdout] --> src/pattern.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Component { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pattern` is never constructed [INFO] [stdout] --> src/pattern.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pattern { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pattern` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PatternNfa` is never used [INFO] [stdout] --> src/pattern.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type PatternNfa = fa::nfa::Nfa; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PatternDfa` is never used [INFO] [stdout] --> src/pattern.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type PatternDfa = fa::dfa::Dfa; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/pattern.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl Pattern { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 22 | fn new() -> Pattern { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn then_str(mut self, string: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn then(mut self, pattern: Pattern) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn maybe(mut self, pattern: Pattern) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn repeat(mut self, pattern: Pattern) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn or(mut self, patterns: &Vec) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn action(mut self, action: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn to_nfa(&self) -> PatternNfa { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/pattern.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_pattern`, `feed_str`, `drain_actions`, and `is_done` are never used [INFO] [stdout] --> src/pattern.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 101 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 102 | pub fn from_pattern(pattern: &Pattern) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn feed_str(&mut self, string: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn drain_actions(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_done(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-state-machine` (bin "rust-state-machine") due to 1 previous error; 40 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1aec2db47246d09566eb4a094ec16c0d6eac759b607fa7239cfb1c5bf5c84d37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1aec2db47246d09566eb4a094ec16c0d6eac759b607fa7239cfb1c5bf5c84d37", kill_on_drop: false }` [INFO] [stdout] 1aec2db47246d09566eb4a094ec16c0d6eac759b607fa7239cfb1c5bf5c84d37