[INFO] cloning repository https://github.com/NicoBliss/regex-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NicoBliss/regex-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicoBliss%2Fregex-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicoBliss%2Fregex-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e8d5f299d0e1fde0d715f4b4fac79370e2263a5b [INFO] checking NicoBliss/regex-engine against try#6619027b13a87a3597115f2c8231f107bf3a7a5f for pr-139624 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicoBliss%2Fregex-engine" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NicoBliss/regex-engine on toolchain 6619027b13a87a3597115f2c8231f107bf3a7a5f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NicoBliss/regex-engine [INFO] finished tweaking git repo https://github.com/NicoBliss/regex-engine [INFO] tweaked toml for git repo https://github.com/NicoBliss/regex-engine written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NicoBliss/regex-engine 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" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e6c57129653572abac6f27e8c78e5dbfd3b3591865e4594b84c2d3d5ac04215 [INFO] running `Command { std: "docker" "start" "-a" "3e6c57129653572abac6f27e8c78e5dbfd3b3591865e4594b84c2d3d5ac04215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e6c57129653572abac6f27e8c78e5dbfd3b3591865e4594b84c2d3d5ac04215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e6c57129653572abac6f27e8c78e5dbfd3b3591865e4594b84c2d3d5ac04215", kill_on_drop: false }` [INFO] [stdout] 3e6c57129653572abac6f27e8c78e5dbfd3b3591865e4594b84c2d3d5ac04215 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3450ad9e2c20f35433f3350c9aa9f581a5f32a28d3fbaf9c400b440f07cfaed1 [INFO] running `Command { std: "docker" "start" "-a" "3450ad9e2c20f35433f3350c9aa9f581a5f32a28d3fbaf9c400b440f07cfaed1", kill_on_drop: false }` [INFO] [stderr] Checking regex v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NodeIndex` [INFO] [stdout] --> src/automata.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::graph::graph::{Graph, NodeIndex}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CharClass` [INFO] [stdout] --> src/automata.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::parser::{CharClass, CharCost}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeIndex` [INFO] [stdout] --> src/automata.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::graph::graph::{Graph, NodeIndex}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CharClass` [INFO] [stdout] --> src/automata.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::parser::{CharClass, CharCost}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/parser.rs:205:34 [INFO] [stdout] | [INFO] [stdout] 205 | (Lexeme::Builtin(char), ParserState::QualWithoutClass(_)) | (Lexeme::Builtin(char), ParserState::OutOfClassWithoutQual) => { [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 205 | (Lexeme::Builtin(_char), ParserState::QualWithoutClass(_)) | (Lexeme::Builtin(_char), ParserState::OutOfClassWithoutQual) => { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `automata` [INFO] [stdout] --> src/automata.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | fn run_automata(automata: Graph, code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_automata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/automata.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | fn run_automata(automata: Graph, code: String) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/graph.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 18 | fn new(edges: Vec<(NodeIndex, Option)>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/graph.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Graph { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 27 | // ensures "monotonicity" of node numbers [INFO] [stdout] 28 | fn add_node(&mut self, node: Node) -> NodeIndex { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn set_active(&mut self, new_active: NodeIndex) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn bump_endlinked(&mut self, endlinked: NodeIndex, new: NodeIndex, cost: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn add_cost(&mut self, cost: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn add_junction(&mut self, start: NodeIndex) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn close_junction(&mut self, start: NodeIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn zero_or_one(&mut self, start: NodeIndex) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn one_or_more(&mut self, start: NodeIndex) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn zero_or_more(&mut self, start: NodeIndex) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn compile(self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Singleton`, `Dot`, and `Class` are never constructed [INFO] [stdout] --> src/parser.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum CharCost { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | Singleton(char), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Class(CharClass) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharCost` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Lexeme` is never used [INFO] [stdout] --> src/parser.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | enum Lexeme { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `match_char`, `lexeme_to_char`, and `set` are never used [INFO] [stdout] --> src/parser.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Lexeme { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 29 | fn match_char(character: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn lexeme_to_char(self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn set(&mut self, new_lex: Lexeme) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fromchar` is never used [INFO] [stdout] --> src/parser.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl CharCost { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 67 | fn fromchar(singleton: char) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_in`, `new`, `plus_literal`, and `plus_range` are never used [INFO] [stdout] --> src/parser.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl CharClass { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 73 | fn is_in(&self, letter: char) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn plus_literal(&mut self, new_char: char) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn plus_range(&mut self, start_char: char, end_char: char) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lexer` is never used [INFO] [stdout] --> src/parser.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn lexer(regex: String) -> Result,Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParserState` is never used [INFO] [stdout] --> src/parser.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | enum ParserState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_cost` and `add_cost_range` are never used [INFO] [stdout] --> src/parser.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl ParserState { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 152 | fn add_cost(&mut self, new_char: char) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn add_cost_range(&mut self, start_char: char, end_char: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parser` is never used [INFO] [stdout] --> src/parser.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn parser(regex: String) -> Result, Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatchData` is never constructed [INFO] [stdout] --> src/automata.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | struct MatchData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_automata` is never used [INFO] [stdout] --> src/automata.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn run_automata(automata: Graph, code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/parser.rs:205:34 [INFO] [stdout] | [INFO] [stdout] 205 | (Lexeme::Builtin(char), ParserState::QualWithoutClass(_)) | (Lexeme::Builtin(char), ParserState::OutOfClassWithoutQual) => { [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 205 | (Lexeme::Builtin(_char), ParserState::QualWithoutClass(_)) | (Lexeme::Builtin(_char), ParserState::OutOfClassWithoutQual) => { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `automata` [INFO] [stdout] --> src/automata.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | fn run_automata(automata: Graph, code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_automata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/automata.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | fn run_automata(automata: Graph, code: String) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compile` is never used [INFO] [stdout] --> src/graph.rs:116:16 [INFO] [stdout] | [INFO] [stdout] 26 | impl Graph { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn compile(self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set` is never used [INFO] [stdout] --> src/parser.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Lexeme { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn set(&mut self, new_lex: Lexeme) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | InClass(NodeIndex, CharClass), [INFO] [stdout] | ------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 147 - InClass(NodeIndex, CharClass), [INFO] [stdout] 147 + InClass((), CharClass), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatchData` is never constructed [INFO] [stdout] --> src/automata.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | struct MatchData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_automata` is never used [INFO] [stdout] --> src/automata.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn run_automata(automata: Graph, code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "3450ad9e2c20f35433f3350c9aa9f581a5f32a28d3fbaf9c400b440f07cfaed1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3450ad9e2c20f35433f3350c9aa9f581a5f32a28d3fbaf9c400b440f07cfaed1", kill_on_drop: false }` [INFO] [stdout] 3450ad9e2c20f35433f3350c9aa9f581a5f32a28d3fbaf9c400b440f07cfaed1