[INFO] cloning repository https://github.com/disDeal/k-clustering [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/disDeal/k-clustering" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdisDeal%2Fk-clustering", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdisDeal%2Fk-clustering'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5df0d56984b64cc31e2b22c97b8a1292d2e3f11d [INFO] checking disDeal/k-clustering against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdisDeal%2Fk-clustering" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/disDeal/k-clustering on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/disDeal/k-clustering [INFO] finished tweaking git repo https://github.com/disDeal/k-clustering [INFO] tweaked toml for git repo https://github.com/disDeal/k-clustering written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/disDeal/k-clustering already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cgmath v0.17.0 [INFO] [stderr] Downloaded image v0.22.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0be0aa1f5bf042174451bc13524bc12ab2fe66524fc5b81d45cb971ae4349c52 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0be0aa1f5bf042174451bc13524bc12ab2fe66524fc5b81d45cb971ae4349c52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0be0aa1f5bf042174451bc13524bc12ab2fe66524fc5b81d45cb971ae4349c52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0be0aa1f5bf042174451bc13524bc12ab2fe66524fc5b81d45cb971ae4349c52", kill_on_drop: false }` [INFO] [stdout] 0be0aa1f5bf042174451bc13524bc12ab2fe66524fc5b81d45cb971ae4349c52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7836734ce5f07237fcc247d21d799789ae4b2221e0f132481889c93e502d648b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7836734ce5f07237fcc247d21d799789ae4b2221e0f132481889c93e502d648b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling rayon-core v1.5.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking gif v0.10.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking png v0.15.0 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking num-iter v0.1.39 [INFO] [stderr] Checking crossbeam-deque v0.6.3 [INFO] [stderr] Checking rayon v1.1.0 [INFO] [stderr] Checking jpeg-decoder v0.1.16 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.1 [INFO] [stderr] Checking k_clustering v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `k_clustering` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: multiple unused formatting arguments [INFO] [stderr] --> src/lib.rs:177:58 [INFO] [stderr] | [INFO] [stderr] 177 | $result.unwrap_or_else(|| panic!("{}", "{}", "{}", "{}", "{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stderr] | ---- ^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument never used [INFO] [stderr] | | | | | [INFO] [stderr] | | | | argument never used [INFO] [stderr] | | | argument never used [INFO] [stderr] | | argument never used [INFO] [stderr] | multiple missing formatting specifiers [INFO] [stderr] ... [INFO] [stderr] 181 | let val_f: f64 = unwrap_or_panic!(NumCast::from(val), "first"); [INFO] [stderr] | --------------------------------------------- [INFO] [stderr] | | [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: multiple unused formatting arguments [INFO] [stderr] --> src/lib.rs:177:58 [INFO] [stderr] | [INFO] [stderr] 177 | $result.unwrap_or_else(|| panic!("{}", "{}", "{}", "{}", "{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stderr] | ---- ^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument never used [INFO] [stderr] | | | | | [INFO] [stderr] | | | | argument never used [INFO] [stderr] | | | argument never used [INFO] [stderr] | | argument never used [INFO] [stderr] | multiple missing formatting specifiers [INFO] [stderr] ... [INFO] [stderr] 182 | let in_min_f: f64 = unwrap_or_panic!(NumCast::from(in_min), "second"); [INFO] [stderr] | ------------------------------------------------- [INFO] [stderr] | | [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: multiple unused formatting arguments [INFO] [stderr] --> src/lib.rs:177:58 [INFO] [stderr] | [INFO] [stderr] 177 | $result.unwrap_or_else(|| panic!("{}", "{}", "{}", "{}", "{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stderr] | ---- ^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument never used [INFO] [stderr] | | | | | [INFO] [stderr] | | | | argument never used [INFO] [stderr] | | | argument never used [INFO] [stderr] | | argument never used [INFO] [stderr] | multiple missing formatting specifiers [INFO] [stderr] ... [INFO] [stderr] 183 | let in_max_f: f64 = unwrap_or_panic!(NumCast::from(in_max), "third"); [INFO] [stderr] | ------------------------------------------------ [INFO] [stderr] | | [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: multiple unused formatting arguments [INFO] [stderr] --> src/lib.rs:177:58 [INFO] [stderr] | [INFO] [stderr] 177 | $result.unwrap_or_else(|| panic!("{}", "{}", "{}", "{}", "{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stderr] | ---- ^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument never used [INFO] [stderr] | | | | | [INFO] [stderr] | | | | argument never used [INFO] [stderr] | | | argument never used [INFO] [stderr] | | argument never used [INFO] [stderr] | multiple missing formatting specifiers [INFO] [stderr] ... [INFO] [stderr] 184 | let out_min_f: f64 = unwrap_or_panic!(NumCast::from(out_min), "fourth"); [INFO] [stderr] | -------------------------------------------------- [INFO] [stderr] | | [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: multiple unused formatting arguments [INFO] [stderr] --> src/lib.rs:177:58 [INFO] [stderr] | [INFO] [stderr] 177 | $result.unwrap_or_else(|| panic!("{}", "{}", "{}", "{}", "{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stderr] | ---- ^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument never used [INFO] [stderr] | | | | | [INFO] [stderr] | | | | argument never used [INFO] [stderr] | | | argument never used [INFO] [stderr] | | argument never used [INFO] [stderr] | multiple missing formatting specifiers [INFO] [stderr] ... [INFO] [stderr] 185 | let out_max_f: f64 = unwrap_or_panic!(NumCast::from(out_max), "fifth"); [INFO] [stderr] | ------------------------------------------------- [INFO] [stderr] | | [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:181:22 [INFO] [stdout] | [INFO] [stdout] 181 | let val_f: f64 = unwrap_or_panic!(NumCast::from(val), "first"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn non-fmt-panics` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | let in_min_f: f64 = unwrap_or_panic!(NumCast::from(in_min), "second"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | let in_max_f: f64 = unwrap_or_panic!(NumCast::from(in_max), "third"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | let out_min_f: f64 = unwrap_or_panic!(NumCast::from(out_min), "fourth"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:185:26 [INFO] [stdout] | [INFO] [stdout] 185 | let out_max_f: f64 = unwrap_or_panic!(NumCast::from(out_max), "fifth"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:181:22 [INFO] [stdout] | [INFO] [stdout] 181 | let val_f: f64 = unwrap_or_panic!(NumCast::from(val), "first"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn non-fmt-panics` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | let in_min_f: f64 = unwrap_or_panic!(NumCast::from(in_min), "second"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | let in_max_f: f64 = unwrap_or_panic!(NumCast::from(in_max), "third"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | let out_min_f: f64 = unwrap_or_panic!(NumCast::from(out_min), "fourth"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lib.rs:185:26 [INFO] [stdout] | [INFO] [stdout] 185 | let out_max_f: f64 = unwrap_or_panic!(NumCast::from(out_max), "fifth"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`", ...)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("{}", "[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/color.rs from 2018 edition to 2021 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.52s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking k_clustering v0.1.0 (/tmp/fixit) [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 181 | let val_f: f64 = unwrap_or_panic!(NumCast::from(val), "first"); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 182 | let in_min_f: f64 = unwrap_or_panic!(NumCast::from(in_min), "second"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 183 | let in_max_f: f64 = unwrap_or_panic!(NumCast::from(in_max), "third"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 184 | let out_min_f: f64 = unwrap_or_panic!(NumCast::from(out_min), "fourth"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 185 | let out_max_f: f64 = unwrap_or_panic!(NumCast::from(out_max), "fifth"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 181 | let val_f: f64 = unwrap_or_panic!(NumCast::from(val), "first"); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 182 | let in_min_f: f64 = unwrap_or_panic!(NumCast::from(in_min), "second"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 183 | let in_max_f: f64 = unwrap_or_panic!(NumCast::from(in_max), "third"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 184 | let out_min_f: f64 = unwrap_or_panic!(NumCast::from(out_min), "fourth"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 1 positional argument in format string, but no arguments were given [INFO] [stdout] --> src/lib.rs:177:74 [INFO] [stdout] | [INFO] [stdout] 177 | $result.unwrap_or_else(|| panic!("[map_range] failed to cast {} arg to `f64`")) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 185 | let out_max_f: f64 = unwrap_or_panic!(NumCast::from(out_max), "fifth"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `unwrap_or_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `k_clustering` due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "7836734ce5f07237fcc247d21d799789ae4b2221e0f132481889c93e502d648b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7836734ce5f07237fcc247d21d799789ae4b2221e0f132481889c93e502d648b", kill_on_drop: false }` [INFO] [stdout] 7836734ce5f07237fcc247d21d799789ae4b2221e0f132481889c93e502d648b