[INFO] fetching crate government_id 0.1.0... [INFO] testing government_id-0.1.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate government_id 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate government_id 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate government_id 0.1.0 [INFO] tweaked toml for crates.io crate government_id 0.1.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate government_id 0.1.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 8 packages to latest compatible versions [INFO] [stderr] Adding regex v0.2.11 (available: v1.11.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b77f6b4ebda9765b23f91b8c8d0779c5422fbac781360460de6b25d642d47a0 [INFO] running `Command { std: "docker" "start" "-a" "4b77f6b4ebda9765b23f91b8c8d0779c5422fbac781360460de6b25d642d47a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b77f6b4ebda9765b23f91b8c8d0779c5422fbac781360460de6b25d642d47a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b77f6b4ebda9765b23f91b8c8d0779c5422fbac781360460de6b25d642d47a0", kill_on_drop: false }` [INFO] [stdout] 4b77f6b4ebda9765b23f91b8c8d0779c5422fbac781360460de6b25d642d47a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8f1340cd9fb1a344182d161e60134d2ddee457213ab5c060daa7b691b57beb1 [INFO] running `Command { std: "docker" "start" "-a" "e8f1340cd9fb1a344182d161e60134d2ddee457213ab5c060daa7b691b57beb1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling ucd-util v0.1.10 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling government_id v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tax_id.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | 1...9 => Err(Error::WrongLength { length: 10 }), [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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&error::Error> { [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)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | Error::RegexError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | Error::RegexError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.87s [INFO] running `Command { std: "docker" "inspect" "e8f1340cd9fb1a344182d161e60134d2ddee457213ab5c060daa7b691b57beb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8f1340cd9fb1a344182d161e60134d2ddee457213ab5c060daa7b691b57beb1", kill_on_drop: false }` [INFO] [stdout] e8f1340cd9fb1a344182d161e60134d2ddee457213ab5c060daa7b691b57beb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bff8d298a7604decbc9892f497c2bfcfec1322d168444471e31fa774ef188d1 [INFO] running `Command { std: "docker" "start" "-a" "8bff8d298a7604decbc9892f497c2bfcfec1322d168444471e31fa774ef188d1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling government_id v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tax_id.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | 1...9 => Err(Error::WrongLength { length: 10 }), [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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&error::Error> { [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)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | Error::RegexError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | Error::RegexError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> examples/cli-bic.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 33 - command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stdout] 33 + command @ _ => panic!("Wrong command: {}", command), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> examples/cli-tax-id.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 33 - command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stdout] 33 + command @ _ => panic!("Wrong command: {}", command), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tax_id.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | 1...9 => Err(Error::WrongLength { length: 10 }), [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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&error::Error> { [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)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | Error::RegexError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | Error::RegexError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> examples/cli-rrc.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 32 - command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stdout] 32 + command @ _ => panic!("Wrong command: {}", command), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.77s [INFO] running `Command { std: "docker" "inspect" "8bff8d298a7604decbc9892f497c2bfcfec1322d168444471e31fa774ef188d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bff8d298a7604decbc9892f497c2bfcfec1322d168444471e31fa774ef188d1", kill_on_drop: false }` [INFO] [stdout] 8bff8d298a7604decbc9892f497c2bfcfec1322d168444471e31fa774ef188d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 94c5b96e6ca76d6b493b59ca4827632f823e51586e543b1d12fbd4dcbcf73938 [INFO] running `Command { std: "docker" "start" "-a" "94c5b96e6ca76d6b493b59ca4827632f823e51586e543b1d12fbd4dcbcf73938", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tax_id.rs:82:14 [INFO] [stderr] | [INFO] [stderr] 82 | 1...9 => Err(Error::WrongLength { length: 10 }), [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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/error.rs:54:32 [INFO] [stderr] | [INFO] [stderr] 54 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 54 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:50:43 [INFO] [stderr] | [INFO] [stderr] 50 | Error::RegexError(ref e) => e.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/error.rs:60:43 [INFO] [stderr] | [INFO] [stderr] 60 | Error::RegexError(ref e) => e.cause(), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `government_id` (lib) generated 4 warnings (run `cargo fix --lib -p government_id` to apply 2 suggestions) [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> examples/cli-rrc.rs:32:35 [INFO] [stderr] | [INFO] [stderr] 32 | command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 32 - command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stderr] 32 + command @ _ => panic!("Wrong command: {}", command), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> examples/cli-bic.rs:33:35 [INFO] [stderr] | [INFO] [stderr] 33 | command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 33 - command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stderr] 33 + command @ _ => panic!("Wrong command: {}", command), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> examples/cli-tax-id.rs:33:35 [INFO] [stderr] | [INFO] [stderr] 33 | command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 33 - command @ _ => panic!(format!("Wrong command: {}", command)), [INFO] [stderr] 33 + command @ _ => panic!("Wrong command: {}", command), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `government_id` (example "cli-rrc") generated 1 warning (run `cargo fix --example "cli-rrc"` to apply 1 suggestion) [INFO] [stderr] warning: `government_id` (example "cli-bic") generated 1 warning (run `cargo fix --example "cli-bic"` to apply 1 suggestion) [INFO] [stderr] warning: `government_id` (example "cli-tax-id") generated 1 warning (run `cargo fix --example "cli-tax-id"` to apply 1 suggestion) [INFO] [stderr] warning: `government_id` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/government_id-9deb9dbe8abb7b2f) [INFO] [stdout] [INFO] [stdout] running 25 tests [INFO] [stdout] test bic::tests::test_invalid_bank_identification_code_with_litters ... ok [INFO] [stdout] test bic::tests::test_valid_bank_identification_code_9_zeros ... ok [INFO] [stdout] test bic::tests::test_convert_from_string ... ok [INFO] [stdout] test bic::tests::test_invalid_bank_identification_code_10_numbers ... ok [INFO] [stdout] test bic::tests::test_invalid_bank_identification_code_8_numbers ... ok [INFO] [stdout] test bic::tests::test_empty_bank_identification_code ... ok [INFO] [stdout] test tax_id::tests::test_convert_from_string ... ok [INFO] [stdout] test tax_id::tests::test_empty_taxpayer_identification_number ... ok [INFO] [stdout] test tax_id::tests::test_invalid_check_digit_taxpayer_identification_number_10_numbers ... ok [INFO] [stdout] test tax_id::tests::test_invalid_check_digit_taxpayer_identification_number_12_numbers ... ok [INFO] [stdout] test tax_id::tests::test_invalid_taxpayer_identification_number_11zeros ... ok [INFO] [stdout] test tax_id::tests::test_invalid_taxpayer_identification_number_9_zeros ... ok [INFO] [stdout] test tax_id::tests::test_invalid_taxpayer_identification_number_too_short ... ok [INFO] [stdout] test tax_id::tests::test_invalid_taxpayer_identification_number_with_litters ... ok [INFO] [stdout] test tax_id::tests::test_valid_taxpayer_identification_number_10_numbers ... ok [INFO] [stdout] test tax_id::tests::test_valid_taxpayer_identification_number_10zeros ... ok [INFO] [stdout] test tax_id::tests::test_valid_taxpayer_identification_number_12_numbers ... ok [INFO] [stdout] test tax_id::tests::test_valid_taxpayer_identification_number_12zeros ... ok [INFO] [stdout] test reason_code::tests::test_convert_from_string ... ok [INFO] [stdout] test reason_code::tests::test_invalid_reason_registration_code_with_lower_case_litters ... ok [INFO] [stdout] test reason_code::tests::test_invalid_reason_registration_code_8_numbers ... ok [INFO] [stderr] Doc-tests government_id [INFO] [stdout] test reason_code::tests::test_invalid_reason_registration_code_with_not_alphabet_chars ... ok [INFO] [stdout] test reason_code::tests::test_invalid_reason_registration_code_10_numbers ... ok [INFO] [stdout] test reason_code::tests::test_valid_reason_registration_code_with_upper_case_litters ... ok [INFO] [stdout] test reason_code::tests::test_valid_reason_registration_code_9_zeros ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/tax_id.rs:82:14 [INFO] [stderr] | [INFO] [stderr] 82 | 1...9 => Err(Error::WrongLength { length: 10 }), [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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/bic.rs - bic::BankIdentificationCode (line 10) ... ok [INFO] [stdout] test src/reason_code.rs - reason_code::ReasonRegistrationCode (line 11) ... ok [INFO] [stdout] test src/tax_id.rs - tax_id::TaxpayerIdentificationNumber (line 10) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.48s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "94c5b96e6ca76d6b493b59ca4827632f823e51586e543b1d12fbd4dcbcf73938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c5b96e6ca76d6b493b59ca4827632f823e51586e543b1d12fbd4dcbcf73938", kill_on_drop: false }` [INFO] [stdout] 94c5b96e6ca76d6b493b59ca4827632f823e51586e543b1d12fbd4dcbcf73938