[INFO] cloning repository https://github.com/endorsement/poke_calc_tool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/endorsement/poke_calc_tool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendorsement%2Fpoke_calc_tool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendorsement%2Fpoke_calc_tool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a64bccb493ad6c93b43327ca3334f914ab8f7d6c [INFO] building endorsement/poke_calc_tool against try#f41a2ab7b0d9462073425dd6c04abbeb4805cb77 for pr-97334-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fendorsement%2Fpoke_calc_tool" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/endorsement/poke_calc_tool on toolchain f41a2ab7b0d9462073425dd6c04abbeb4805cb77 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/endorsement/poke_calc_tool [INFO] finished tweaking git repo https://github.com/endorsement/poke_calc_tool [INFO] tweaked toml for git repo https://github.com/endorsement/poke_calc_tool written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/endorsement/poke_calc_tool 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" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 183ae0c2bef56abe7bf92726ff30bbd7a1bf3d4e4605893ae0e420981d0b611c [INFO] running `Command { std: "docker" "start" "-a" "183ae0c2bef56abe7bf92726ff30bbd7a1bf3d4e4605893ae0e420981d0b611c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "183ae0c2bef56abe7bf92726ff30bbd7a1bf3d4e4605893ae0e420981d0b611c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "183ae0c2bef56abe7bf92726ff30bbd7a1bf3d4e4605893ae0e420981d0b611c", kill_on_drop: false }` [INFO] [stdout] 183ae0c2bef56abe7bf92726ff30bbd7a1bf3d4e4605893ae0e420981d0b611c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fe9fb87b596871651252e65f856c725c2ab1daa4853c9462802e81112057121 [INFO] running `Command { std: "docker" "start" "-a" "4fe9fb87b596871651252e65f856c725c2ab1daa4853c9462802e81112057121", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling ttf-parser v0.14.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling quick-xml v0.22.0 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.3 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.5 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling xcb v0.10.1 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling owned_ttf_parser v0.14.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ab_glyph v0.2.13 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling atomic_refcell v0.1.8 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling easy-parallel v3.2.0 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling async-task v4.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling dlv-list v0.2.3 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling ordered-multimap v0.3.1 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling async-broadcast v0.3.4 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling raw-window-handle v0.4.2 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling ordered-stream v0.0.1 [INFO] [stderr] Compiling dark-light v0.2.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling rust-ini v0.17.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling detect-desktop-environment v0.2.0 [INFO] [stderr] Compiling dconf_rs v0.3.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling wayland-commons v0.29.4 [INFO] [stderr] Compiling calloop v0.9.3 [INFO] [stderr] Compiling webbrowser v0.6.0 [INFO] [stderr] Compiling x11-clipboard v0.5.3 [INFO] [stderr] Compiling wayland-cursor v0.29.4 [INFO] [stderr] Compiling wayland-egl v0.29.4 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Compiling enumflags2_derive v0.7.3 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Compiling async-recursion v0.3.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling serde_repr v0.1.7 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling emath v0.17.0 [INFO] [stderr] Compiling epaint v0.17.0 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.2 [INFO] [stderr] Compiling egui v0.17.0 [INFO] [stderr] Compiling zvariant_derive v3.1.2 [INFO] [stderr] Compiling zbus_macros v2.1.1 [INFO] [stderr] Compiling epi v0.17.0 [INFO] [stderr] Compiling smithay-clipboard v0.6.5 [INFO] [stderr] Compiling copypasta v0.7.1 [INFO] [stderr] Compiling enumflags2 v0.7.3 [INFO] [stderr] Compiling zvariant v3.1.2 [INFO] [stderr] Compiling glutin v0.28.0 [INFO] [stderr] Compiling zbus_names v2.1.0 [INFO] [stderr] Compiling zbus v2.1.1 [INFO] [stderr] Compiling egui-winit v0.17.0 [INFO] [stderr] Compiling egui_glow v0.17.0 [INFO] [stderr] Compiling eframe v0.17.0 [INFO] [stderr] Compiling poke_calc_tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/poke_calc.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | 186 => if (def_ability_id == 188) {3072} else {5448}, // Dark-Aura [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 382 - 186 => if (def_ability_id == 188) {3072} else {5448}, // Dark-Aura [INFO] [stdout] 382 + 186 => if def_ability_id == 188 {3072} else {5448}, // Dark-Aura [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/poke_calc.rs:383:23 [INFO] [stdout] | [INFO] [stdout] 383 | 187 => if (def_ability_id == 188) {3072} else {5448}, // Fairy-Aura [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 383 - 187 => if (def_ability_id == 188) {3072} else {5448}, // Fairy-Aura [INFO] [stdout] 383 + 187 => if def_ability_id == 188 {3072} else {5448}, // Fairy-Aura [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/app.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | let Self { label, value, me, opponent } = self; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/app.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let Self { label, value, me, opponent } = self; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/app.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn update(&mut self, ctx: &egui::Context, frame: &epi::Frame) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/app.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poke_data` [INFO] [stdout] --> src/app.rs:250:44 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_poke_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dmg_` is never read [INFO] [stdout] --> src/poke_calc.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut dmg_ = 0_f64; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_move` [INFO] [stdout] --> src/poke_calc.rs:392:13 [INFO] [stdout] | [INFO] [stdout] 392 | let mut k_move = 0_f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ability_magnification` [INFO] [stdout] --> src/poke_calc.rs:391:16 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ability_magnification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `move_dmg` [INFO] [stdout] --> src/poke_calc.rs:391:44 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_move_dmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/poke_calc.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 392 | let mut k_move = 0_f64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `field_drawer` is never used [INFO] [stdout] --> src/app.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/poke_calc.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Ability { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pokemon_dt_test` is never used [INFO] [stdout] --> src/poke_calc.rs:307:4 [INFO] [stdout] | [INFO] [stdout] 307 | fn pokemon_dt_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_test` is never used [INFO] [stdout] --> src/poke_calc.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn calc_test() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dmg_calc` is never used [INFO] [stdout] --> src/poke_calc.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn dmg_calc(lvat:i32, k_move:i64, k_at:i64, k_df:i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_move_ability` is never used [INFO] [stdout] --> src/poke_calc.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn k_move_ability(atk_ability_id: i32, def_ability_id: i32, ability_enable: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_move_calc` is never used [INFO] [stdout] --> src/poke_calc.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.70s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "4fe9fb87b596871651252e65f856c725c2ab1daa4853c9462802e81112057121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fe9fb87b596871651252e65f856c725c2ab1daa4853c9462802e81112057121", kill_on_drop: false }` [INFO] [stdout] 4fe9fb87b596871651252e65f856c725c2ab1daa4853c9462802e81112057121 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a43445613de905a745286f10b5442578d0385fc27bee48df56a26fa30a94561 [INFO] running `Command { std: "docker" "start" "-a" "0a43445613de905a745286f10b5442578d0385fc27bee48df56a26fa30a94561", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/poke_calc.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | 186 => if (def_ability_id == 188) {3072} else {5448}, // Dark-Aura [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 382 - 186 => if (def_ability_id == 188) {3072} else {5448}, // Dark-Aura [INFO] [stdout] 382 + 186 => if def_ability_id == 188 {3072} else {5448}, // Dark-Aura [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/poke_calc.rs:383:23 [INFO] [stdout] | [INFO] [stdout] 383 | 187 => if (def_ability_id == 188) {3072} else {5448}, // Fairy-Aura [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 383 - 187 => if (def_ability_id == 188) {3072} else {5448}, // Fairy-Aura [INFO] [stdout] 383 + 187 => if def_ability_id == 188 {3072} else {5448}, // Fairy-Aura [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/app.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | let Self { label, value, me, opponent } = self; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/app.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let Self { label, value, me, opponent } = self; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/app.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn update(&mut self, ctx: &egui::Context, frame: &epi::Frame) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/app.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poke_data` [INFO] [stdout] --> src/app.rs:250:44 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_poke_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dmg_` is never read [INFO] [stdout] --> src/poke_calc.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut dmg_ = 0_f64; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_move` [INFO] [stdout] --> src/poke_calc.rs:392:13 [INFO] [stdout] | [INFO] [stdout] 392 | let mut k_move = 0_f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ability_magnification` [INFO] [stdout] --> src/poke_calc.rs:391:16 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ability_magnification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `move_dmg` [INFO] [stdout] --> src/poke_calc.rs:391:44 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_move_dmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/poke_calc.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 392 | let mut k_move = 0_f64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `field_drawer` is never used [INFO] [stdout] --> src/app.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/poke_calc.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Ability { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pokemon_dt_test` is never used [INFO] [stdout] --> src/poke_calc.rs:307:4 [INFO] [stdout] | [INFO] [stdout] 307 | fn pokemon_dt_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_test` is never used [INFO] [stdout] --> src/poke_calc.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn calc_test() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dmg_calc` is never used [INFO] [stdout] --> src/poke_calc.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn dmg_calc(lvat:i32, k_move:i64, k_at:i64, k_df:i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_move_ability` is never used [INFO] [stdout] --> src/poke_calc.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn k_move_ability(atk_ability_id: i32, def_ability_id: i32, ability_enable: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_move_calc` is never used [INFO] [stdout] --> src/poke_calc.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling poke_calc_tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/poke_calc.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | 186 => if (def_ability_id == 188) {3072} else {5448}, // Dark-Aura [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 382 - 186 => if (def_ability_id == 188) {3072} else {5448}, // Dark-Aura [INFO] [stdout] 382 + 186 => if def_ability_id == 188 {3072} else {5448}, // Dark-Aura [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/poke_calc.rs:383:23 [INFO] [stdout] | [INFO] [stdout] 383 | 187 => if (def_ability_id == 188) {3072} else {5448}, // Fairy-Aura [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 383 - 187 => if (def_ability_id == 188) {3072} else {5448}, // Fairy-Aura [INFO] [stdout] 383 + 187 => if def_ability_id == 188 {3072} else {5448}, // Fairy-Aura [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/app.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | let Self { label, value, me, opponent } = self; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/app.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let Self { label, value, me, opponent } = self; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/app.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn update(&mut self, ctx: &egui::Context, frame: &epi::Frame) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/app.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poke_data` [INFO] [stdout] --> src/app.rs:250:44 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_poke_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dmg_` is never read [INFO] [stdout] --> src/poke_calc.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut dmg_ = 0_f64; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_move` [INFO] [stdout] --> src/poke_calc.rs:392:13 [INFO] [stdout] | [INFO] [stdout] 392 | let mut k_move = 0_f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ability_magnification` [INFO] [stdout] --> src/poke_calc.rs:391:16 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ability_magnification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `move_dmg` [INFO] [stdout] --> src/poke_calc.rs:391:44 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_move_dmg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/poke_calc.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 392 | let mut k_move = 0_f64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `field_drawer` is never used [INFO] [stdout] --> src/app.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn field_drawer(ui: &mut eframe::egui::Ui, poke_data: &mut poke_calc::FieldCondition) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/poke_calc.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Ability { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pokemon_dt_test` is never used [INFO] [stdout] --> src/poke_calc.rs:307:4 [INFO] [stdout] | [INFO] [stdout] 307 | fn pokemon_dt_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_test` is never used [INFO] [stdout] --> src/poke_calc.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn calc_test() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dmg_calc` is never used [INFO] [stdout] --> src/poke_calc.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn dmg_calc(lvat:i32, k_move:i64, k_at:i64, k_df:i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_move_ability` is never used [INFO] [stdout] --> src/poke_calc.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn k_move_ability(atk_ability_id: i32, def_ability_id: i32, ability_enable: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_move_calc` is never used [INFO] [stdout] --> src/poke_calc.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn k_move_calc(ability_magnification: i32, move_dmg: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.65s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "0a43445613de905a745286f10b5442578d0385fc27bee48df56a26fa30a94561", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a43445613de905a745286f10b5442578d0385fc27bee48df56a26fa30a94561", kill_on_drop: false }` [INFO] [stdout] 0a43445613de905a745286f10b5442578d0385fc27bee48df56a26fa30a94561