[INFO] cloning repository https://github.com/qalens/kata-stringcalculator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qalens/kata-stringcalculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqalens%2Fkata-stringcalculator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqalens%2Fkata-stringcalculator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7c8c06e08a003ed4ed6a2c3eda4a44640c5ff206 [INFO] testing qalens/kata-stringcalculator against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqalens%2Fkata-stringcalculator" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/qalens/kata-stringcalculator [INFO] finished tweaking git repo https://github.com/qalens/kata-stringcalculator [INFO] tweaked toml for git repo https://github.com/qalens/kata-stringcalculator written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qalens/kata-stringcalculator 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] crate git repo https://github.com/qalens/kata-stringcalculator already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 910d4b5244abf3be8340639c722edd0562a3bcb79944760dfe545bb101e61d87 [INFO] running `Command { std: "docker" "start" "-a" "910d4b5244abf3be8340639c722edd0562a3bcb79944760dfe545bb101e61d87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "910d4b5244abf3be8340639c722edd0562a3bcb79944760dfe545bb101e61d87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "910d4b5244abf3be8340639c722edd0562a3bcb79944760dfe545bb101e61d87", kill_on_drop: false }` [INFO] [stdout] 910d4b5244abf3be8340639c722edd0562a3bcb79944760dfe545bb101e61d87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] fbcc87cb7ebe0f13bc05a3071b641b377ef3a5624d8799b88eb101c9427aad41 [INFO] running `Command { std: "docker" "start" "-a" "fbcc87cb7ebe0f13bc05a3071b641b377ef3a5624d8799b88eb101c9427aad41", kill_on_drop: false }` [INFO] [stderr] Compiling stringcalculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/stringcalc.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | if(line.starts_with("//") && index == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - if(line.starts_with("//") && index == 0){ [INFO] [stdout] 11 + if line.starts_with("//") && index == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/stringcalc.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | if(val.starts_with('-')){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - if(val.starts_with('-')){ [INFO] [stdout] 26 + if val.starts_with('-') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/stringcalc.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | if(!negatives.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - if(!negatives.is_empty()){ [INFO] [stdout] 36 + if !negatives.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stringcalc.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut x = numbers.clone(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stringcalc.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut split=x.split('\n'); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/stringcalc.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add(numbers: & str) -> usize{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/stringcalc.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | let mut x = numbers.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/stringcalc.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | panic!(format!("negatives not allowed {0}",negatives.join(" "))); [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] 37 - panic!(format!("negatives not allowed {0}",negatives.join(" "))); [INFO] [stdout] 37 + panic!("negatives not allowed {0}",negatives.join(" ")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "fbcc87cb7ebe0f13bc05a3071b641b377ef3a5624d8799b88eb101c9427aad41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbcc87cb7ebe0f13bc05a3071b641b377ef3a5624d8799b88eb101c9427aad41", kill_on_drop: false }` [INFO] [stdout] fbcc87cb7ebe0f13bc05a3071b641b377ef3a5624d8799b88eb101c9427aad41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e40c2c2dcd76b48c3e5d75b48ffe84e06e1862054779588bd5ae964e1b07acea [INFO] running `Command { std: "docker" "start" "-a" "e40c2c2dcd76b48c3e5d75b48ffe84e06e1862054779588bd5ae964e1b07acea", kill_on_drop: false }` [INFO] [stderr] Compiling stringcalculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/stringcalc.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | if(line.starts_with("//") && index == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - if(line.starts_with("//") && index == 0){ [INFO] [stdout] 11 + if line.starts_with("//") && index == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/stringcalc.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | if(val.starts_with('-')){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - if(val.starts_with('-')){ [INFO] [stdout] 26 + if val.starts_with('-') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/stringcalc.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | if(!negatives.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - if(!negatives.is_empty()){ [INFO] [stdout] 36 + if !negatives.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stringcalc.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut x = numbers.clone(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stringcalc.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut split=x.split('\n'); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/stringcalc.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | let mut x = numbers.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/stringcalc.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | panic!(format!("negatives not allowed {0}",negatives.join(" "))); [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] 37 - panic!(format!("negatives not allowed {0}",negatives.join(" "))); [INFO] [stdout] 37 + panic!("negatives not allowed {0}",negatives.join(" ")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "e40c2c2dcd76b48c3e5d75b48ffe84e06e1862054779588bd5ae964e1b07acea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e40c2c2dcd76b48c3e5d75b48ffe84e06e1862054779588bd5ae964e1b07acea", kill_on_drop: false }` [INFO] [stdout] e40c2c2dcd76b48c3e5d75b48ffe84e06e1862054779588bd5ae964e1b07acea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d883d3fc657b1acdadaaf69dccea1d5e4789199d5cfb99a14a7d1f2c6df11d23 [INFO] running `Command { std: "docker" "start" "-a" "d883d3fc657b1acdadaaf69dccea1d5e4789199d5cfb99a14a7d1f2c6df11d23", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/stringcalc.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | if(line.starts_with("//") && index == 0){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 11 - if(line.starts_with("//") && index == 0){ [INFO] [stderr] 11 + if line.starts_with("//") && index == 0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/stringcalc.rs:26:15 [INFO] [stderr] | [INFO] [stderr] 26 | if(val.starts_with('-')){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 26 - if(val.starts_with('-')){ [INFO] [stderr] 26 + if val.starts_with('-') { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/stringcalc.rs:36:7 [INFO] [stderr] | [INFO] [stderr] 36 | if(!negatives.is_empty()){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 36 - if(!negatives.is_empty()){ [INFO] [stderr] 36 + if !negatives.is_empty() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/stringcalc.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | let mut x = numbers.clone(); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/stringcalc.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | let mut split=x.split('\n'); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/stringcalc.rs:3:24 [INFO] [stderr] | [INFO] [stderr] 3 | let mut x = numbers.clone(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/stringcalc.rs:37:16 [INFO] [stderr] | [INFO] [stderr] 37 | panic!(format!("negatives not allowed {0}",negatives.join(" "))); [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] 37 - panic!(format!("negatives not allowed {0}",negatives.join(" "))); [INFO] [stderr] 37 + panic!("negatives not allowed {0}",negatives.join(" ")); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `stringcalculator` (bin "stringcalculator" test) generated 7 warnings (run `cargo fix --bin "stringcalculator" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/stringcalculator-def815e3d51cfc8e) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test stringcalc::tests::should_add_two_numbers ... ok [INFO] [stdout] test stringcalc::tests::should_ignore_number_bigger_than_1000 ... ok [INFO] [stdout] test stringcalc::tests::should_return_0_when_empty ... ok [INFO] [stdout] test stringcalc::tests::should_return_for_4_numbers ... ok [INFO] [stdout] test stringcalc::tests::should_return_same_number_if_single ... ok [INFO] [stdout] test stringcalc::tests::should_return_sum_when_new_line_present ... ok [INFO] [stdout] test stringcalc::tests::should_support_dynamic_delimiter ... ok [INFO] [stdout] test stringcalc::tests::should_support_delimiter_of_any_length ... ok [INFO] [stdout] test stringcalc::tests::should_support_multiple_delimiter ... ok [INFO] [stdout] test stringcalc::tests::should_support_multiple_delimiter_with_length_longer_than_one ... ok [INFO] [stdout] test stringcalc::tests::should_throw_exception_when_negative_numbers_are_present - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d883d3fc657b1acdadaaf69dccea1d5e4789199d5cfb99a14a7d1f2c6df11d23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d883d3fc657b1acdadaaf69dccea1d5e4789199d5cfb99a14a7d1f2c6df11d23", kill_on_drop: false }` [INFO] [stdout] d883d3fc657b1acdadaaf69dccea1d5e4789199d5cfb99a14a7d1f2c6df11d23