[INFO] cloning repository https://github.com/Northcode/rustTokenizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Northcode/rustTokenizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNorthcode%2FrustTokenizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNorthcode%2FrustTokenizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f9f2754f05acdf9ff495fab0b112dad9f33761b5 [INFO] checking Northcode/rustTokenizer/f9f2754f05acdf9ff495fab0b112dad9f33761b5 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNorthcode%2FrustTokenizer" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Northcode/rustTokenizer on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Northcode/rustTokenizer [INFO] finished tweaking git repo https://github.com/Northcode/rustTokenizer [INFO] tweaked toml for git repo https://github.com/Northcode/rustTokenizer written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Northcode/rustTokenizer 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazy_static v1.1.0 [INFO] [stderr] Downloaded version_check v0.1.4 [INFO] [stderr] Downloaded ucd-util v0.1.1 [INFO] [stderr] Downloaded memchr v2.0.1 [INFO] [stderr] Downloaded regex-syntax v0.6.2 [INFO] [stderr] Downloaded libc v0.2.43 [INFO] [stderr] Downloaded regex v1.0.2 [INFO] [stderr] Downloaded aho-corasick v0.6.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e74ce7ec6cef61d2da6c040dacd18e262a998efa5f1ddd41299bd7ba7194819 [INFO] running `Command { std: "docker" "start" "-a" "4e74ce7ec6cef61d2da6c040dacd18e262a998efa5f1ddd41299bd7ba7194819", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e74ce7ec6cef61d2da6c040dacd18e262a998efa5f1ddd41299bd7ba7194819", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e74ce7ec6cef61d2da6c040dacd18e262a998efa5f1ddd41299bd7ba7194819", kill_on_drop: false }` [INFO] [stdout] 4e74ce7ec6cef61d2da6c040dacd18e262a998efa5f1ddd41299bd7ba7194819 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 736b193b94ebcd2cf0316ed7582843cb9d5793a0c36fe715834b0840460ac393 [INFO] running `Command { std: "docker" "start" "-a" "736b193b94ebcd2cf0316ed7582843cb9d5793a0c36fe715834b0840460ac393", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Checking regex-syntax v0.6.2 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking aho-corasick v0.6.6 [INFO] [stderr] Checking tokenizer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:40:85 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `->` [INFO] [stdout] --> src/lib.rs:249:35 [INFO] [stdout] | [INFO] [stdout] 249 | ... _o -> PT_(T_::Op(_)), [INFO] [stdout] | ^^ no rules expected this token in macro call [INFO] [stdout] | [INFO] [stdout] ::: src/rtok/parser.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | macro_rules! reduction { [INFO] [stdout] | ---------------------- when calling this macro [INFO] [stdout] | [INFO] [stdout] note: while trying to match meta-variable `$pat:pat` [INFO] [stdout] --> src/rtok/parser.rs:170:19 [INFO] [stdout] | [INFO] [stdout] 170 | ($inner:expr; $pat:pat) => { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `->` [INFO] [stdout] --> src/lib.rs:259:35 [INFO] [stdout] | [INFO] [stdout] 259 | ... _o -> PT_(T_::Op(_)), [INFO] [stdout] | ^^ no rules expected this token in macro call [INFO] [stdout] | [INFO] [stdout] ::: src/rtok/parser.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | macro_rules! reduction { [INFO] [stdout] | ---------------------- when calling this macro [INFO] [stdout] | [INFO] [stdout] note: while trying to match meta-variable `$pat:pat` [INFO] [stdout] --> src/rtok/parser.rs:170:19 [INFO] [stdout] | [INFO] [stdout] 170 | ($inner:expr; $pat:pat) => { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rtok::parser::ParseValue::Token as PT_` [INFO] [stdout] --> src/lib.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | use rtok::parser::ParseValue::Token as PT_; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rtok::parser::ParseValue::Reduced as PR_` [INFO] [stdout] --> src/lib.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | use rtok::parser::ParseValue::Reduced as PR_; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:40:85 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rtok/parser.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut new_vec = new_input; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parts` is never read [INFO] [stdout] --> src/rtok/tokenizer.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Token<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 77 | pub typ: TokenTypeId, [INFO] [stdout] 78 | pub parts: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matcher` is never constructed [INFO] [stdout] --> src/rtok/tokenizer.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Matcher { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rtok/tokenizer.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Matcher { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 87 | pub fn new(pattern: Regex, to_type: TokenTypeId) -> Matcher { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `First`, `Longest`, and `Shortest` are never constructed [INFO] [stdout] --> src/rtok/tokenizer.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum MatcherPriority { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 94 | First, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 95 | Longest, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 96 | Shortest, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tokenizer` is never constructed [INFO] [stdout] --> src/rtok/tokenizer.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct Tokenizer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `make`, `add_matcher`, and `tokenize` are never used [INFO] [stdout] --> src/rtok/tokenizer.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl Tokenizer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 105 | pub fn new(priority: MatcherPriority) -> Tokenizer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn make(priority: MatcherPriority, matchers: Vec<(&str, TokenTypeId)>) -> Tokenizer { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn add_matcher(&mut self, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn tokenize<'a>(&self, input: &'a String) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run_on` is never used [INFO] [stdout] --> src/rtok/tokenizer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait PostProcessor { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 32 | fn run_on(&self, t: Token) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_postprocfn_boxed`, and `add_postprocfn` are never used [INFO] [stdout] --> src/rtok/tokenizer.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | impl BasicPostProcessor { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 36 | pub fn new() -> BasicPostProcessor { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn add_postprocfn(&mut self, for_id: TokenTypeId, postprocfn: F) -> () [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Token` and `Reduced` are never constructed [INFO] [stdout] --> src/rtok/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ParseValue { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 4 | Token(T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Reduced(N), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/rtok/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseAction` is never used [INFO] [stdout] --> src/rtok/parser.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum ParseAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/rtok/parser.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, 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/rtok/parser.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Parser { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub fn new(input: Vec) -> Parser { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn push_input(&mut self, new_input: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn shift(&mut self) -> Result<(), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn add_rule(&mut self, checker: C, reduction: R) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn reduce(&mut self, idx: usize) -> Result<(), ParseError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn determine_action(&self) -> ParseAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn step(&mut self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_stack` is never used [INFO] [stdout] --> src/rtok/parser.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl Parser where T: std::fmt::Display, N : std::fmt::Display { [INFO] [stdout] | ------------------------------------------------------------------------ method in this implementation [INFO] [stdout] 104 | pub fn print_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug_print_stack` is never used [INFO] [stdout] --> src/rtok/parser.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Parser where T: std::fmt::Debug, N : std::fmt::Debug { [INFO] [stdout] | -------------------------------------------------------------------- method in this implementation [INFO] [stdout] 113 | pub fn debug_print_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rtok/parser.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut new_vec = new_input; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rtok::parser::ParseValue::Token as PT` [INFO] [stdout] --> src/main.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | use rtok::parser::ParseValue::Token as PT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rtok::parser::ParseValue::Token as PT` [INFO] [stdout] --> src/main.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | use rtok::parser::ParseValue::Token as PT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | postprocfns: HashMap T>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | reductions: Vec<(Box>) -> bool>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/parser.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | Box>) -> Result, ParseError>>)> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tokenizer` (lib test) due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:40:85 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rtok/tokenizer.rs:40:85 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | pub fn add_postprocfn_boxed(&mut self, for_id: TokenTypeId, postprocfn: Box T>) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rtok/parser.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut new_vec = new_input; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rtok/parser.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut new_vec = new_input; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AstVec` is never used [INFO] [stdout] --> src/main.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type AstVec = Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Shortest` is never constructed [INFO] [stdout] --> src/rtok/tokenizer.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum MatcherPriority { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 96 | Shortest, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/rtok/parser.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 26 | EOF, NoActions, InvalidReduction(usize), InvalidToken, NotImpl [INFO] [stdout] | ---------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 26 | EOF, NoActions, InvalidReduction(()), InvalidToken, NotImpl [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoActions` and `NotImpl` are never constructed [INFO] [stdout] --> src/rtok/parser.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 26 | EOF, NoActions, InvalidReduction(usize), InvalidToken, NotImpl [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_input` is never used [INFO] [stdout] --> src/rtok/parser.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Parser { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn push_input(&mut self, new_input: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_stack` is never used [INFO] [stdout] --> src/rtok/parser.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl Parser where T: std::fmt::Display, N : std::fmt::Display { [INFO] [stdout] | ------------------------------------------------------------------------ method in this implementation [INFO] [stdout] 104 | pub fn print_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AstVec` is never used [INFO] [stdout] --> src/main.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type AstVec = Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Shortest` is never constructed [INFO] [stdout] --> src/rtok/tokenizer.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum MatcherPriority { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 96 | Shortest, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/rtok/parser.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 26 | EOF, NoActions, InvalidReduction(usize), InvalidToken, NotImpl [INFO] [stdout] | ---------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 26 | EOF, NoActions, InvalidReduction(()), InvalidToken, NotImpl [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoActions` and `NotImpl` are never constructed [INFO] [stdout] --> src/rtok/parser.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 26 | EOF, NoActions, InvalidReduction(usize), InvalidToken, NotImpl [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_input` is never used [INFO] [stdout] --> src/rtok/parser.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Parser { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn push_input(&mut self, new_input: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_stack` is never used [INFO] [stdout] --> src/rtok/parser.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl Parser where T: std::fmt::Display, N : std::fmt::Display { [INFO] [stdout] | ------------------------------------------------------------------------ method in this implementation [INFO] [stdout] 104 | pub fn print_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "736b193b94ebcd2cf0316ed7582843cb9d5793a0c36fe715834b0840460ac393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "736b193b94ebcd2cf0316ed7582843cb9d5793a0c36fe715834b0840460ac393", kill_on_drop: false }` [INFO] [stdout] 736b193b94ebcd2cf0316ed7582843cb9d5793a0c36fe715834b0840460ac393