[INFO] cloning repository https://github.com/john-wennstrom/nlp-tokenize [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/john-wennstrom/nlp-tokenize" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohn-wennstrom%2Fnlp-tokenize", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohn-wennstrom%2Fnlp-tokenize'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fa68c7ce430a43fd9b9f7983f97a58ec4c195caf [INFO] testing john-wennstrom/nlp-tokenize against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohn-wennstrom%2Fnlp-tokenize" "/workspace/builds/worker-72/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-72/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/john-wennstrom/nlp-tokenize on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/john-wennstrom/nlp-tokenize [INFO] finished tweaking git repo https://github.com/john-wennstrom/nlp-tokenize [INFO] tweaked toml for git repo https://github.com/john-wennstrom/nlp-tokenize written to /workspace/builds/worker-72/source/Cargo.toml [INFO] crate git repo https://github.com/john-wennstrom/nlp-tokenize already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd055336721bac37f035e4a9d8bfd6770ec031332d35dfa74e8f57aebfcda80c [INFO] running `Command { std: "docker" "start" "-a" "fd055336721bac37f035e4a9d8bfd6770ec031332d35dfa74e8f57aebfcda80c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd055336721bac37f035e4a9d8bfd6770ec031332d35dfa74e8f57aebfcda80c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd055336721bac37f035e4a9d8bfd6770ec031332d35dfa74e8f57aebfcda80c", kill_on_drop: false }` [INFO] [stdout] fd055336721bac37f035e4a9d8bfd6770ec031332d35dfa74e8f57aebfcda80c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8ac1a8207cf623f5da64c8816261d140d1c1a42471914ca6b1e06bceea36bf2 [INFO] running `Command { std: "docker" "start" "-a" "d8ac1a8207cf623f5da64c8816261d140d1c1a42471914ca6b1e06bceea36bf2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.22 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling vec_map v0.7.0 [INFO] [stderr] Compiling bitflags v0.8.2 [INFO] [stderr] Compiling unicode-segmentation v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling ansi_term v0.9.0 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling serde v1.0.8 [INFO] [stderr] Compiling bitflags v0.9.0 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling atty v0.2.2 [INFO] [stderr] Compiling term_size v0.3.0 [INFO] [stderr] Compiling time v0.1.37 [INFO] [stderr] Compiling clap v2.24.1 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling fs2 v0.2.5 [INFO] [stderr] Compiling filebuffer v0.1.1 [INFO] [stderr] Compiling memmap v0.4.0 [INFO] [stderr] Compiling fst v0.1.38 [INFO] [stderr] Compiling nlp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/tokenizer_loop.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecoderTrap`, `Encoding` [INFO] [stdout] --> src/tokenizer_loop.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use encoding::{Encoding, DecoderTrap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoding::all::UTF_8` [INFO] [stdout] --> src/tokenizer_loop.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use encoding::all::UTF_8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tokenizer_loop.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / bitflags! { [INFO] [stdout] 15 | | #[derive(Default)] [INFO] [stdout] 16 | | pub struct Flags: u64 { [INFO] [stdout] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tokenizer_loop.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / bitflags! { [INFO] [stdout] 15 | | #[derive(Default)] [INFO] [stdout] 16 | | pub struct Flags: u64 { [INFO] [stdout] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tokenizer_loop.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / bitflags! { [INFO] [stdout] 15 | | #[derive(Default)] [INFO] [stdout] 16 | | pub struct Flags: u64 { [INFO] [stdout] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | 65 ... 90 | 97 ... 122 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | 65 ... 90 | 97 ... 122 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:59 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:73 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | 48 ... 57 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | 127 ... 159 | 1 ... 31 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:81:35 [INFO] [stdout] | [INFO] [stdout] 81 | 127 ... 159 | 1 ... 31 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | 192 ... 255 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitflags::*` [INFO] [stdout] --> src/numbers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bitflags::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecoderTrap`, `Encoding` [INFO] [stdout] --> src/numbers.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use encoding::{Encoding, DecoderTrap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoding::all::UTF_8` [INFO] [stdout] --> src/numbers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use encoding::all::UTF_8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use time::{PreciseTime, Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokenizer_peek::*` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tokenizer_peek::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn words(bytes: Vec, f: &Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 - pub fn words(bytes: Vec, f: &Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stdout] 36 + pub fn words(bytes: Vec, f: &dyn Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/tokenizer_loop.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let token = Token { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/tokenizer_peek.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | let length = c.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tokenizer_peek.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | for (i, byte) in c.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pos` is never read [INFO] [stdout] --> src/numbers.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | let mut pos: usize = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alpha` [INFO] [stdout] --> src/tokenizer_peek.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | Alpha, // Pure alpha string [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Other` [INFO] [stdout] --> src/tokenizer_peek.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | Other, // Unidentified elements [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Numeric` [INFO] [stdout] --> src/tokenizer_peek.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | Numeric, // Pure numeric strings 123 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonAlphaNum` [INFO] [stdout] --> src/tokenizer_peek.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | NonAlphaNum // Strings with only | ¦ § _ ~ ^ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `U80_FF` should have a snake case name [INFO] [stdout] --> src/tokenizer_loop.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn U80_FF(byte: u8) -> [u8; 2] { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `u80_ff` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.79s [INFO] running `Command { std: "docker" "inspect" "d8ac1a8207cf623f5da64c8816261d140d1c1a42471914ca6b1e06bceea36bf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8ac1a8207cf623f5da64c8816261d140d1c1a42471914ca6b1e06bceea36bf2", kill_on_drop: false }` [INFO] [stdout] d8ac1a8207cf623f5da64c8816261d140d1c1a42471914ca6b1e06bceea36bf2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42a2d5054187f43a2555d52f8546d48035fba22a29e34f11f3ddaa2cb41bc585 [INFO] running `Command { std: "docker" "start" "-a" "42a2d5054187f43a2555d52f8546d48035fba22a29e34f11f3ddaa2cb41bc585", kill_on_drop: false }` [INFO] [stderr] Compiling nlp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/tokenizer_loop.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecoderTrap`, `Encoding` [INFO] [stdout] --> src/tokenizer_loop.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use encoding::{Encoding, DecoderTrap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoding::all::UTF_8` [INFO] [stdout] --> src/tokenizer_loop.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use encoding::all::UTF_8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tokenizer_loop.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / bitflags! { [INFO] [stdout] 15 | | #[derive(Default)] [INFO] [stdout] 16 | | pub struct Flags: u64 { [INFO] [stdout] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tokenizer_loop.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / bitflags! { [INFO] [stdout] 15 | | #[derive(Default)] [INFO] [stdout] 16 | | pub struct Flags: u64 { [INFO] [stdout] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tokenizer_loop.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / bitflags! { [INFO] [stdout] 15 | | #[derive(Default)] [INFO] [stdout] 16 | | pub struct Flags: u64 { [INFO] [stdout] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | 65 ... 90 | 97 ... 122 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | 65 ... 90 | 97 ... 122 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:59 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:73:73 [INFO] [stdout] | [INFO] [stdout] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | 48 ... 57 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | 127 ... 159 | 1 ... 31 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:81:35 [INFO] [stdout] | [INFO] [stdout] 81 | 127 ... 159 | 1 ... 31 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | 192 ... 255 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitflags::*` [INFO] [stdout] --> src/numbers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bitflags::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecoderTrap`, `Encoding` [INFO] [stdout] --> src/numbers.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use encoding::{Encoding, DecoderTrap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoding::all::UTF_8` [INFO] [stdout] --> src/numbers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use encoding::all::UTF_8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use time::{PreciseTime, Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokenizer_peek::*` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tokenizer_peek::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tokenizer_loop.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn words(bytes: Vec, f: &Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 - pub fn words(bytes: Vec, f: &Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stdout] 36 + pub fn words(bytes: Vec, f: &dyn Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/tokenizer_loop.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let token = Token { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/tokenizer_peek.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | let length = c.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tokenizer_peek.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | for (i, byte) in c.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pos` is never read [INFO] [stdout] --> src/numbers.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | let mut pos: usize = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alpha` [INFO] [stdout] --> src/tokenizer_peek.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | Alpha, // Pure alpha string [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Other` [INFO] [stdout] --> src/tokenizer_peek.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | Other, // Unidentified elements [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Numeric` [INFO] [stdout] --> src/tokenizer_peek.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | Numeric, // Pure numeric strings 123 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonAlphaNum` [INFO] [stdout] --> src/tokenizer_peek.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | NonAlphaNum // Strings with only | ¦ § _ ~ ^ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tokenizer_peek.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `U80_FF` should have a snake case name [INFO] [stdout] --> src/tokenizer_loop.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn U80_FF(byte: u8) -> [u8; 2] { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `u80_ff` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.57s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/nlp-bff00874b670e44d) [INFO] running `Command { std: "docker" "inspect" "42a2d5054187f43a2555d52f8546d48035fba22a29e34f11f3ddaa2cb41bc585", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42a2d5054187f43a2555d52f8546d48035fba22a29e34f11f3ddaa2cb41bc585", kill_on_drop: false }` [INFO] [stdout] 42a2d5054187f43a2555d52f8546d48035fba22a29e34f11f3ddaa2cb41bc585 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a80107eca20c8d8a9ec42f272c947e592a18d4caab1f887d930dcafce26a1b0d [INFO] running `Command { std: "docker" "start" "-a" "a80107eca20c8d8a9ec42f272c947e592a18d4caab1f887d930dcafce26a1b0d", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::borrow::Cow` [INFO] [stderr] --> src/tokenizer_loop.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::borrow::Cow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DecoderTrap`, `Encoding` [INFO] [stderr] --> src/tokenizer_loop.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use encoding::{Encoding, DecoderTrap}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `encoding::all::UTF_8` [INFO] [stderr] --> src/tokenizer_loop.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use encoding::all::UTF_8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/tokenizer_loop.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | / bitflags! { [INFO] [stderr] 15 | | #[derive(Default)] [INFO] [stderr] 16 | | pub struct Flags: u64 { [INFO] [stderr] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stderr] ... | [INFO] [stderr] 27 | | } [INFO] [stderr] 28 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/tokenizer_loop.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | / bitflags! { [INFO] [stderr] 15 | | #[derive(Default)] [INFO] [stderr] 16 | | pub struct Flags: u64 { [INFO] [stderr] 17 | | const CONTROL = 0b0000000000000001; [INFO] [stderr] ... | [INFO] [stderr] 27 | | } [INFO] [stderr] 28 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:69:22 [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 69 | 65 ... 90 | 97 ... 122 => { [INFO] [stdout] running 0 tests [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:69:34 [INFO] [stderr] | [INFO] [stderr] 69 | 65 ... 90 | 97 ... 122 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:73:22 [INFO] [stderr] | [INFO] [stderr] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:73:34 [INFO] [stderr] | [INFO] [stderr] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:73:46 [INFO] [stderr] | [INFO] [stderr] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:73:59 [INFO] [stderr] | [INFO] [stderr] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:73:73 [INFO] [stderr] | [INFO] [stderr] 73 | 33 ... 47 | 58 ... 64 | 91 ... 96 | 123 ... 126 | 160 ... 191 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:77:22 [INFO] [stderr] | [INFO] [stderr] 77 | 48 ... 57 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:81:23 [INFO] [stderr] | [INFO] [stderr] 81 | 127 ... 159 | 1 ... 31 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:81:35 [INFO] [stderr] | [INFO] [stderr] 81 | 127 ... 159 | 1 ... 31 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:85:23 [INFO] [stderr] | [INFO] [stderr] 85 | 192 ... 255 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unused import: `bitflags::*` [INFO] [stderr] --> src/numbers.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use bitflags::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::borrow::Cow` [INFO] [stderr] --> src/numbers.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::borrow::Cow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DecoderTrap`, `Encoding` [INFO] [stderr] --> src/numbers.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use encoding::{Encoding, DecoderTrap}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `encoding::all::UTF_8` [INFO] [stderr] --> src/numbers.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use encoding::all::UTF_8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/main.rs:14:25 [INFO] [stderr] | [INFO] [stderr] 14 | use time::{PreciseTime, Duration}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokenizer_peek::*` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use tokenizer_peek::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/tokenizer_loop.rs:36:34 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn words(bytes: Vec, f: &Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 36 - pub fn words(bytes: Vec, f: &Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stderr] 36 + pub fn words(bytes: Vec, f: &dyn Fn(&Token) -> i32) -> Result, &'static Vec> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `token` [INFO] [stderr] --> src/tokenizer_loop.rs:97:17 [INFO] [stderr] | [INFO] [stderr] 97 | let token = Token { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `length` [INFO] [stderr] --> src/tokenizer_peek.rs:75:11 [INFO] [stderr] | [INFO] [stderr] 75 | let length = c.len(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/tokenizer_peek.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 77 | for (i, byte) in c.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `pos` is never read [INFO] [stderr] --> src/numbers.rs:11:15 [INFO] [stderr] | [INFO] [stderr] 11 | let mut pos: usize = 0; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Alpha` [INFO] [stderr] --> src/tokenizer_peek.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | Alpha, // Pure alpha string [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tokenizer_peek.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Other` [INFO] [stderr] --> src/tokenizer_peek.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | Other, // Unidentified elements [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tokenizer_peek.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Numeric` [INFO] [stderr] --> src/tokenizer_peek.rs:21:7 [INFO] [stderr] | [INFO] [stderr] 21 | Numeric, // Pure numeric strings 123 [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tokenizer_peek.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `NonAlphaNum` [INFO] [stderr] --> src/tokenizer_peek.rs:22:7 [INFO] [stderr] | [INFO] [stderr] 22 | NonAlphaNum // Strings with only | ¦ § _ ~ ^ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Kind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tokenizer_peek.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function `U80_FF` should have a snake case name [INFO] [stderr] --> src/tokenizer_loop.rs:141:8 [INFO] [stderr] | [INFO] [stderr] 141 | pub fn U80_FF(byte: u8) -> [u8; 2] { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `u80_ff` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `nlp` (bin "nlp" test) generated 33 warnings (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/nlp-bff00874b670e44d) [INFO] running `Command { std: "docker" "inspect" "a80107eca20c8d8a9ec42f272c947e592a18d4caab1f887d930dcafce26a1b0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a80107eca20c8d8a9ec42f272c947e592a18d4caab1f887d930dcafce26a1b0d", kill_on_drop: false }` [INFO] [stdout] a80107eca20c8d8a9ec42f272c947e592a18d4caab1f887d930dcafce26a1b0d