[INFO] cloning repository https://github.com/AsureNetwork/asure-pension-core [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AsureNetwork/asure-pension-core" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAsureNetwork%2Fasure-pension-core", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAsureNetwork%2Fasure-pension-core'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 289ae087508993e359b7c5b908ac80e65278977c [INFO] testing AsureNetwork/asure-pension-core against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAsureNetwork%2Fasure-pension-core" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AsureNetwork/asure-pension-core on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AsureNetwork/asure-pension-core [INFO] finished tweaking git repo https://github.com/AsureNetwork/asure-pension-core [INFO] tweaked toml for git repo https://github.com/AsureNetwork/asure-pension-core written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/AsureNetwork/asure-pension-core already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.84 [INFO] [stderr] Downloaded csv v1.0.5 [INFO] [stderr] Downloaded rand_jitter v0.1.0 [INFO] [stderr] Downloaded proc-macro2 v0.4.25 [INFO] [stderr] Downloaded serde v1.0.84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6595f50cbeade7d2645f36882ecd137fa5c2c1654c61d7324f2bada4231da94c [INFO] running `Command { std: "docker" "start" "-a" "6595f50cbeade7d2645f36882ecd137fa5c2c1654c61d7324f2bada4231da94c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6595f50cbeade7d2645f36882ecd137fa5c2c1654c61d7324f2bada4231da94c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6595f50cbeade7d2645f36882ecd137fa5c2c1654c61d7324f2bada4231da94c", kill_on_drop: false }` [INFO] [stdout] 6595f50cbeade7d2645f36882ecd137fa5c2c1654c61d7324f2bada4231da94c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3238a05407ec30ea1f825b0382887f1c2efce8284bcf336123db5b90e0bb95b9 [INFO] running `Command { std: "docker" "start" "-a" "3238a05407ec30ea1f825b0382887f1c2efce8284bcf336123db5b90e0bb95b9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling proc-macro2 v0.4.25 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling serde v1.0.84 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling time v0.1.41 [INFO] [stderr] Compiling rand_os v0.1.1 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Compiling csv-core v0.1.5 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.84 [INFO] [stderr] Compiling csv v1.0.5 [INFO] [stderr] Compiling asure-pension-core v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/contributor.rs:8:44 [INFO] [stdout] | [INFO] [stdout] 8 | static USER_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pension.rs:349:28 [INFO] [stdout] | [INFO] [stdout] 349 | None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [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] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 349 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] 349 + None => panic!("No state for period {} found", self.period) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pension.rs:356:28 [INFO] [stdout] | [INFO] [stdout] 356 | None => panic!(format!("No state for period {} found", self.period)) [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] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 356 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] 356 + None => panic!("No state for period {} found", self.period) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:167:40 [INFO] [stdout] | [INFO] [stdout] 167 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 167 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:182:36 [INFO] [stdout] | [INFO] [stdout] 182 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 182 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:196:36 [INFO] [stdout] | [INFO] [stdout] 196 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 196 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.13s [INFO] running `Command { std: "docker" "inspect" "3238a05407ec30ea1f825b0382887f1c2efce8284bcf336123db5b90e0bb95b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3238a05407ec30ea1f825b0382887f1c2efce8284bcf336123db5b90e0bb95b9", kill_on_drop: false }` [INFO] [stdout] 3238a05407ec30ea1f825b0382887f1c2efce8284bcf336123db5b90e0bb95b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7e759a32b7edfd1b0057ed33962bdc0a60b916d9cbd6cbc262ad6da0eadb01c [INFO] running `Command { std: "docker" "start" "-a" "a7e759a32b7edfd1b0057ed33962bdc0a60b916d9cbd6cbc262ad6da0eadb01c", kill_on_drop: false }` [INFO] [stderr] Compiling asure-pension-core v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/contributor.rs:8:44 [INFO] [stdout] | [INFO] [stdout] 8 | static USER_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pension.rs:349:28 [INFO] [stdout] | [INFO] [stdout] 349 | None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [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] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 349 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] 349 + None => panic!("No state for period {} found", self.period) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pension.rs:356:28 [INFO] [stdout] | [INFO] [stdout] 356 | None => panic!(format!("No state for period {} found", self.period)) [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] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 356 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] 356 + None => panic!("No state for period {} found", self.period) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:167:40 [INFO] [stdout] | [INFO] [stdout] 167 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 167 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:182:36 [INFO] [stdout] | [INFO] [stdout] 182 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 182 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:196:36 [INFO] [stdout] | [INFO] [stdout] 196 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 196 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/contributor.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/pension.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/contributor.rs:8:44 [INFO] [stdout] | [INFO] [stdout] 8 | static USER_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> examples/sim12.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | 0...9 => Some(1.0), [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 2018) 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] --> examples/sim12.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | 10...20 => Some(0.5), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | 0...59 => Some(1.0), [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 2018) 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] --> examples/sim04.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | 60...239 => Some(0.5), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | 240...359 => Some(0.25), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | 360...479 => Some(0.1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim17.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | 0...5 => period > 480, [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 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pension.rs:349:28 [INFO] [stdout] | [INFO] [stdout] 349 | None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [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] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 349 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] 349 + None => panic!("No state for period {} found", self.period) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pension.rs:356:28 [INFO] [stdout] | [INFO] [stdout] 356 | None => panic!(format!("No state for period {} found", self.period)) [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] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 356 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stdout] 356 + None => panic!("No state for period {} found", self.period) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:167:40 [INFO] [stdout] | [INFO] [stdout] 167 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 167 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:182:36 [INFO] [stdout] | [INFO] [stdout] 182 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 182 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:196:36 [INFO] [stdout] | [INFO] [stdout] 196 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 196 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "a7e759a32b7edfd1b0057ed33962bdc0a60b916d9cbd6cbc262ad6da0eadb01c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7e759a32b7edfd1b0057ed33962bdc0a60b916d9cbd6cbc262ad6da0eadb01c", kill_on_drop: false }` [INFO] [stdout] a7e759a32b7edfd1b0057ed33962bdc0a60b916d9cbd6cbc262ad6da0eadb01c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e36f08245ebeb33038cff5f583e40d681f3f3d0600e655554914d193cdd9eb55 [INFO] running `Command { std: "docker" "start" "-a" "e36f08245ebeb33038cff5f583e40d681f3f3d0600e655554914d193cdd9eb55", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] running 29 tests [INFO] [stderr] --> src/contributor.rs:8:44 [INFO] [stderr] | [INFO] [stderr] 8 | static USER_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/pension.rs:349:28 [INFO] [stderr] | [INFO] [stderr] 349 | None => panic!(format!("No state for period {} found", self.period)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [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] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 349 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stderr] 349 + None => panic!("No state for period {} found", self.period) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/pension.rs:356:28 [INFO] [stderr] | [INFO] [stderr] 356 | None => panic!(format!("No state for period {} found", self.period)) [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] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 356 - None => panic!(format!("No state for period {} found", self.period)) [INFO] [stderr] 356 + None => panic!("No state for period {} found", self.period) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/lib.rs:167:40 [INFO] [stderr] | [INFO] [stderr] 167 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 167 | Err(err) => panic!("{}", err), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/lib.rs:182:36 [INFO] [stderr] | [INFO] [stderr] 182 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 182 | Err(err) => panic!("{}", err), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/lib.rs:196:36 [INFO] [stderr] | [INFO] [stderr] 196 | Err(err) => panic!(err), [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] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 196 | Err(err) => panic!("{}", err), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::*` [INFO] [stderr] --> src/contributor.rs:94:9 [INFO] [stderr] | [INFO] [stderr] 94 | use crate::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/pension.rs:380:9 [INFO] [stderr] | [INFO] [stderr] 380 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `asure-pension-core` (lib) generated 6 warnings [INFO] [stderr] warning: `asure-pension-core` (lib test) generated 8 warnings (6 duplicates) [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> examples/sim17.rs:26:14 [INFO] [stderr] | [INFO] [stderr] 26 | 0...5 => period > 480, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim12.rs:32:14 [INFO] [stderr] | [INFO] [stderr] 32 | 0...9 => Some(1.0), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim12.rs:33:15 [INFO] [stderr] | [INFO] [stderr] 33 | 10...20 => Some(0.5), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:23:14 [INFO] [stderr] | [INFO] [stderr] 23 | 0...59 => Some(1.0), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:24:15 [INFO] [stderr] | [INFO] [stderr] 24 | 60...239 => Some(0.5), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:25:16 [INFO] [stderr] | [INFO] [stderr] 25 | 240...359 => Some(0.25), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) 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] --> examples/sim04.rs:26:16 [INFO] [stderr] | [INFO] [stderr] 26 | 360...479 => Some(0.1), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `asure-pension-core` (example "sim17") generated 1 warning [INFO] [stderr] warning: `asure-pension-core` (example "sim12") generated 2 warnings [INFO] [stderr] warning: `asure-pension-core` (example "sim04") generated 4 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/asure_pension_core-66a2e37a19f5e39b) [INFO] [stdout] test calculations::tests::avg ... ok [INFO] [stdout] test calculations::tests::calculate_dpt_1 ... ok [INFO] [stdout] test calculations::tests::calculate_dpt_2 ... ok [INFO] [stdout] test calculations::tests::calculate_dpt_3 ... ok [INFO] [stdout] test calculations::tests::calculate_dpt_in_loop ... ok [INFO] [stdout] test calculations::tests::calculate_entitlement_months ... ok [INFO] [stdout] test calculations::tests::diff ... ok [INFO] [stdout] test calculations::tests::test_bla ... ok [INFO] [stdout] test calculations::tests::test_calculate_dpt_bonus ... ok [INFO] [stdout] test calculations::tests::test_calculate_monthly_dpt_unit_rate ... ok [INFO] [stdout] test calculations::tests::test_calculate_monthly_dpt_unit_rate_by_twenty ... ok [INFO] [stdout] test calculations::tests::test_calculate_savings_dpt_unit_rate ... ok [INFO] [stdout] test contributor::tests::claim_dpt_done ... ok [INFO] [stdout] test calculations::tests::test_deflation ... ok [INFO] [stdout] test contributor::tests::claim_dpt_dpt_already_claimed_for_period ... ok [INFO] [stdout] test calculations::tests::test_calculate_dpt_factor10 ... ok [INFO] [stdout] test calculations::tests::test_calculate_monthly_dpt_unit_rate_by_five ... ok [INFO] [stdout] test calculations::tests::test_calculate_dpt ... ok [INFO] [stdout] test contributor::tests::contribute_contribution_must_be_bigger_than_0 ... ok [INFO] [stdout] test calculations::tests::test_calculate_dpt_bonus_by_period ... ok [INFO] [stdout] test calculations::tests::test_inflation ... ok [INFO] [stdout] test contributor::tests::contribute_contribution_bigger_than_wallet ... ok [INFO] [stdout] test pension::tests::join ... ok [INFO] [stdout] test contributor::tests::dpt_total ... ok [INFO] [stdout] test pension::tests::start_new_period ... ok [INFO] [stdout] test contributor::tests::contribute_contribution_done ... ok [INFO] [stdout] test pension::tests::retire ... ok [INFO] [stdout] test contributor::tests::contribute_max_period ... ok [INFO] [stderr] Doc-tests asure-pension-core [INFO] [stdout] test calculations::tests::test_calculate_monthly_dpt_unit_rate_by_zero - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e36f08245ebeb33038cff5f583e40d681f3f3d0600e655554914d193cdd9eb55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e36f08245ebeb33038cff5f583e40d681f3f3d0600e655554914d193cdd9eb55", kill_on_drop: false }` [INFO] [stdout] e36f08245ebeb33038cff5f583e40d681f3f3d0600e655554914d193cdd9eb55