[INFO] cloning repository https://github.com/one-hundred-proof/fixed-point-plotter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/one-hundred-proof/fixed-point-plotter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fone-hundred-proof%2Ffixed-point-plotter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fone-hundred-proof%2Ffixed-point-plotter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4836e00b3ec7255693083484f0697092e000cf5c [INFO] testing one-hundred-proof/fixed-point-plotter against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fone-hundred-proof%2Ffixed-point-plotter" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/one-hundred-proof/fixed-point-plotter [INFO] finished tweaking git repo https://github.com/one-hundred-proof/fixed-point-plotter [INFO] tweaked toml for git repo https://github.com/one-hundred-proof/fixed-point-plotter written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/one-hundred-proof/fixed-point-plotter on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/one-hundred-proof/fixed-point-plotter 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0d810514df2a3aaef985dd5d858ce3db985cc96158a36d02cc7943edecc7ab2 [INFO] running `Command { std: "docker" "start" "-a" "c0d810514df2a3aaef985dd5d858ce3db985cc96158a36d02cc7943edecc7ab2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0d810514df2a3aaef985dd5d858ce3db985cc96158a36d02cc7943edecc7ab2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0d810514df2a3aaef985dd5d858ce3db985cc96158a36d02cc7943edecc7ab2", kill_on_drop: false }` [INFO] [stdout] c0d810514df2a3aaef985dd5d858ce3db985cc96158a36d02cc7943edecc7ab2 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb6b44ad45a5b6a606c50c02a6ca91bb583f43cb84ca2aef522d4f2a0e83b39c [INFO] running `Command { std: "docker" "start" "-a" "bb6b44ad45a5b6a606c50c02a6ca91bb583f43cb84ca2aef522d4f2a0e83b39c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling endi v1.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling wayland-sys v0.31.6 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling wayland-backend v0.3.10 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling wayland-client v0.31.10 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling wayland-scanner v0.31.6 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling ttf-parser v0.25.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.9 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling async-executor v1.13.2 [INFO] [stderr] Compiling async-broadcast v0.7.2 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling xml-rs v0.8.27 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling polling v3.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling async-io v2.4.1 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling ab_glyph v0.2.32 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-signal v0.2.11 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling wayland-protocols v0.32.8 [INFO] [stderr] Compiling async-process v2.3.1 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling calloop v0.13.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Compiling xcursor v0.3.10 [INFO] [stderr] Compiling cursor-icon v1.2.0 [INFO] [stderr] Compiling xkeysym v0.2.1 [INFO] [stderr] Compiling accesskit v0.21.1 [INFO] [stderr] Compiling wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling wayland-cursor v0.31.10 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling calloop-wayland-source v0.3.0 [INFO] [stderr] Compiling memmap2 v0.9.7 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling emath v0.33.3 [INFO] [stderr] Compiling as-raw-xcb-connection v1.0.1 [INFO] [stderr] Compiling x11rb-protocol v0.13.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling tiny-skia v0.11.4 [INFO] [stderr] Compiling ecolor v0.33.3 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Compiling epaint_default_fonts v0.33.3 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling raw-window-handle v0.6.2 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling epaint v0.33.3 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling zvariant_utils v3.2.0 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Compiling quick-xml v0.36.2 [INFO] [stderr] Compiling zvariant_derive v5.6.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling accesskit_consumer v0.31.0 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling zvariant v5.6.0 [INFO] [stderr] Compiling glutin_egl_sys v0.7.1 [INFO] [stderr] Compiling glutin_glx_sys v0.6.1 [INFO] [stderr] Compiling wayland-protocols-wlr v0.3.8 [INFO] [stderr] Compiling wayland-protocols-plasma v0.3.8 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling smol_str v0.2.2 [INFO] [stderr] Compiling dpi v0.1.2 [INFO] [stderr] Compiling egui v0.33.3 [INFO] [stderr] Compiling zbus_names v4.2.0 [INFO] [stderr] Compiling zbus_xml v5.0.2 [INFO] [stderr] Compiling zbus_macros v5.9.0 [INFO] [stderr] Compiling sctk-adwaita v0.10.1 [INFO] [stderr] Compiling zbus-lockstep v0.5.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zbus-lockstep-macros v0.5.1 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling glutin v0.32.3 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling glutin-winit v0.5.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling zbus v5.9.0 [INFO] [stderr] Compiling webbrowser v1.0.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling smithay-clipboard v0.7.2 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Compiling glow v0.16.0 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling egui_plot v0.34.0 [INFO] [stderr] Compiling primitive-types v0.13.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling egui_glow v0.33.3 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling arboard v3.6.1 [INFO] [stderr] Compiling atspi-common v0.9.0 [INFO] [stderr] Compiling atspi-proxies v0.9.0 [INFO] [stderr] Compiling accesskit_atspi_common v0.14.2 [INFO] [stderr] Compiling atspi-connection v0.9.0 [INFO] [stderr] Compiling atspi v0.25.0 [INFO] [stderr] Compiling accesskit_unix v0.17.2 [INFO] [stderr] Compiling accesskit_winit v0.29.2 [INFO] [stderr] Compiling egui-winit v0.33.3 [INFO] [stderr] Compiling eframe v0.33.3 [INFO] [stderr] Compiling fixed-point-plotter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `U256` and `U512` [INFO] [stdout] --> src/functions.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use primitive_types::{U256, U512}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/functions/curve.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | D = ( [INFO] [stdout] | _____________^ [INFO] [stdout] 49 | | (unsafe_div(Ann * S, A_PRECISION) + D_P * N_COINS) * D [INFO] [stdout] | |____________^ [INFO] [stdout] ... [INFO] [stdout] 54 | ) [INFO] [stdout] | ______________^ [INFO] [stdout] 55 | | ); [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] 48 ~ D = (unsafe_div(Ann * S, A_PRECISION) + D_P * N_COINS) * D [INFO] [stdout] 49 | / [INFO] [stdout] ... [INFO] [stdout] 52 | unsafe_add(N_COINS, u256d("1")) * D_P [INFO] [stdout] 53 ~ ) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/yearn.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut d = u256d("449000000000000000000"); [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/functions/yearn.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut l = AMP * vb_sum; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/yearn.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut sp = unsafe_div(unsafe_sub(l, unsafe_mul(s,r)), d); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/yearn.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut delta = if sp >= s { unsafe_sub(sp, s) } else { unsafe_sub(s, sp)}; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/functions/yearn.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | for i in 0..8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/functions/curve.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for i in 0..256 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/curve.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut xp = [ u256d("1000000000000000000"), u256d("10000"), u256d("100000000000000000000") ].to_vec(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y_prev` is never read [INFO] [stdout] --> src/functions/curve.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 82 | let mut y_prev = u256d("0"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_mul_div` is never used [INFO] [stdout] --> src/functions/mul_by_inverse.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn full_mul_div(x: U256, y: U256, z: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `yearn_calc_supply` is never used [INFO] [stdout] --> src/functions/yearn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const yearn_calc_supply: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `yearn_calc_supply_fun` is never used [INFO] [stdout] --> src/functions/yearn.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn yearn_calc_supply_fun(vb_prod: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `curve_get_D` is never used [INFO] [stdout] --> src/functions/curve.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const curve_get_D: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_D_fun` is never used [INFO] [stdout] --> src/functions/curve.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn curve_get_D_fun(x_n: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_y_D` is never used [INFO] [stdout] --> src/functions/curve.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsafe_div` is never used [INFO] [stdout] --> src/vyper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn unsafe_div(a: U256, b: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsafe_sub` is never used [INFO] [stdout] --> src/vyper.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn unsafe_sub(a: U256, b: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsafe_add` is never used [INFO] [stdout] --> src/vyper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn unsafe_add(a: U256, b: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsafe_mul` is never used [INFO] [stdout] --> src/vyper.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn unsafe_mul(a: U256, b: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `errorPoints` should have a snake case name [INFO] [stdout] --> src/main.rs:261:26 [INFO] [stdout] | [INFO] [stdout] 261 | let (points, errorPoints) = sample_curve_u256_safe(self.num_points, sample_x_min, sample_x_max); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `error_points` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `x_mul_inverse` should have an upper case name [INFO] [stdout] --> src/functions/mul_by_inverse.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const x_mul_inverse: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 34 - pub const x_mul_inverse: FixedPointFunction = FixedPointFunction { [INFO] [stdout] 34 + pub const X_MUL_INVERSE: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `yearn_calc_supply` should have an upper case name [INFO] [stdout] --> src/functions/yearn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const yearn_calc_supply: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `YEARN_CALC_SUPPLY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_POW_REL_ERR` should have a snake case name [INFO] [stdout] --> src/functions/yearn.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let MAX_POW_REL_ERR: U256 = u256d("100"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_pow_rel_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PRECISION` should have a snake case name [INFO] [stdout] --> src/functions/yearn.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let PRECISION = u256d("1000000000000000000"); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `precision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AMP` should have a snake case name [INFO] [stdout] --> src/functions/yearn.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let AMP = u256d("450000000000000000000"); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `amp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `curve_get_D` should have an upper case name [INFO] [stdout] --> src/functions/curve.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const curve_get_D: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `CURVE_GET_D` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_D_fun` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn curve_get_D_fun(x_n: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `curve_get_d_fun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A_PRECISION` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let A_PRECISION = u256d("100"); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `a_precision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N_COINS` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let N_COINS = U256::from(_xp.len()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_coins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut S = u256d("0"); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut D = S; [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ann` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let Ann = _amp * N_COINS; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ann` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D_P` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut D_P = D; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Dprev` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let Dprev = D; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dprev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_y_D` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `curve_get_y_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AMP` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let AMP = u256d("30000"); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `amp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A_PRECISION` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let A_PRECISION = u256d("100"); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `a_precision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S_` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut S_ = u256d("0"); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N_COINS` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let N_COINS = u256f(xp.len()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_coins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ann` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let Ann = AMP * N_COINS; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ann` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 43s [INFO] running `Command { std: "docker" "inspect" "bb6b44ad45a5b6a606c50c02a6ca91bb583f43cb84ca2aef522d4f2a0e83b39c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb6b44ad45a5b6a606c50c02a6ca91bb583f43cb84ca2aef522d4f2a0e83b39c", kill_on_drop: false }` [INFO] [stdout] bb6b44ad45a5b6a606c50c02a6ca91bb583f43cb84ca2aef522d4f2a0e83b39c [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5de4931701db6b4abb294a7f67865647e03484dba4df149c69e901ea0d50eff8 [INFO] running `Command { std: "docker" "start" "-a" "5de4931701db6b4abb294a7f67865647e03484dba4df149c69e901ea0d50eff8", kill_on_drop: false }` [INFO] [stderr] Compiling fixed-point-plotter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `U256` and `U512` [INFO] [stdout] --> src/functions.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use primitive_types::{U256, U512}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/functions/curve.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | D = ( [INFO] [stdout] | _____________^ [INFO] [stdout] 49 | | (unsafe_div(Ann * S, A_PRECISION) + D_P * N_COINS) * D [INFO] [stdout] | |____________^ [INFO] [stdout] ... [INFO] [stdout] 54 | ) [INFO] [stdout] | ______________^ [INFO] [stdout] 55 | | ); [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] 48 ~ D = (unsafe_div(Ann * S, A_PRECISION) + D_P * N_COINS) * D [INFO] [stdout] 49 | / [INFO] [stdout] ... [INFO] [stdout] 52 | unsafe_add(N_COINS, u256d("1")) * D_P [INFO] [stdout] 53 ~ ) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/yearn.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut d = u256d("449000000000000000000"); [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/functions/yearn.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut l = AMP * vb_sum; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/yearn.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut sp = unsafe_div(unsafe_sub(l, unsafe_mul(s,r)), d); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/yearn.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut delta = if sp >= s { unsafe_sub(sp, s) } else { unsafe_sub(s, sp)}; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/functions/yearn.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | for i in 0..8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/functions/curve.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for i in 0..256 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/functions/curve.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut xp = [ u256d("1000000000000000000"), u256d("10000"), u256d("100000000000000000000") ].to_vec(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y_prev` is never read [INFO] [stdout] --> src/functions/curve.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 82 | let mut y_prev = u256d("0"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `yearn_calc_supply` is never used [INFO] [stdout] --> src/functions/yearn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const yearn_calc_supply: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `curve_get_D` is never used [INFO] [stdout] --> src/functions/curve.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const curve_get_D: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_D_fun` is never used [INFO] [stdout] --> src/functions/curve.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn curve_get_D_fun(x_n: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_y_D` is never used [INFO] [stdout] --> src/functions/curve.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsafe_add` is never used [INFO] [stdout] --> src/vyper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn unsafe_add(a: U256, b: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `errorPoints` should have a snake case name [INFO] [stdout] --> src/main.rs:261:26 [INFO] [stdout] | [INFO] [stdout] 261 | let (points, errorPoints) = sample_curve_u256_safe(self.num_points, sample_x_min, sample_x_max); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `error_points` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `x_mul_inverse` should have an upper case name [INFO] [stdout] --> src/functions/mul_by_inverse.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const x_mul_inverse: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 34 - pub const x_mul_inverse: FixedPointFunction = FixedPointFunction { [INFO] [stdout] 34 + pub const X_MUL_INVERSE: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `yearn_calc_supply` should have an upper case name [INFO] [stdout] --> src/functions/yearn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const yearn_calc_supply: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `YEARN_CALC_SUPPLY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_POW_REL_ERR` should have a snake case name [INFO] [stdout] --> src/functions/yearn.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let MAX_POW_REL_ERR: U256 = u256d("100"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_pow_rel_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PRECISION` should have a snake case name [INFO] [stdout] --> src/functions/yearn.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let PRECISION = u256d("1000000000000000000"); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `precision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AMP` should have a snake case name [INFO] [stdout] --> src/functions/yearn.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let AMP = u256d("450000000000000000000"); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `amp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `curve_get_D` should have an upper case name [INFO] [stdout] --> src/functions/curve.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const curve_get_D: FixedPointFunction = FixedPointFunction { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `CURVE_GET_D` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_D_fun` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn curve_get_D_fun(x_n: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `curve_get_d_fun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A_PRECISION` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let A_PRECISION = u256d("100"); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `a_precision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N_COINS` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let N_COINS = U256::from(_xp.len()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_coins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut S = u256d("0"); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut D = S; [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ann` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let Ann = _amp * N_COINS; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ann` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D_P` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut D_P = D; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Dprev` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let Dprev = D; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dprev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curve_get_y_D` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `curve_get_y_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AMP` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let AMP = u256d("30000"); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `amp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A_PRECISION` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let A_PRECISION = u256d("100"); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `a_precision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S_` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut S_ = u256d("0"); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N_COINS` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let N_COINS = u256f(xp.len()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_coins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ann` should have a snake case name [INFO] [stdout] --> src/functions/curve.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let Ann = AMP * N_COINS; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ann` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.05s [INFO] running `Command { std: "docker" "inspect" "5de4931701db6b4abb294a7f67865647e03484dba4df149c69e901ea0d50eff8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5de4931701db6b4abb294a7f67865647e03484dba4df149c69e901ea0d50eff8", kill_on_drop: false }` [INFO] [stdout] 5de4931701db6b4abb294a7f67865647e03484dba4df149c69e901ea0d50eff8 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8d92bba7ec91ce8a2f3e9e7a632f0390c298a1cfaaa4a025a267224a2f5889ee [INFO] running `Command { std: "docker" "start" "-a" "8d92bba7ec91ce8a2f3e9e7a632f0390c298a1cfaaa4a025a267224a2f5889ee", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `U256` and `U512` [INFO] [stderr] --> src/functions.rs:1:23 [INFO] [stderr] | [INFO] [stderr] 1 | use primitive_types::{U256, U512}; [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/functions/curve.rs:48:13 [INFO] [stderr] | [INFO] [stderr] 48 | D = ( [INFO] [stderr] | _____________^ [INFO] [stderr] 49 | | (unsafe_div(Ann * S, A_PRECISION) + D_P * N_COINS) * D [INFO] [stderr] | |____________^ [INFO] [stderr] ... [INFO] [stderr] 54 | ) [INFO] [stderr] | ______________^ [INFO] [stderr] 55 | | ); [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] 48 ~ D = (unsafe_div(Ann * S, A_PRECISION) + D_P * N_COINS) * D [INFO] [stderr] 49 | / [INFO] [stderr] ... [INFO] [stderr] 52 | unsafe_add(N_COINS, u256d("1")) * D_P [INFO] [stderr] 53 ~ ) ; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/functions/yearn.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let mut d = u256d("449000000000000000000"); [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/functions/yearn.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | let mut l = AMP * vb_sum; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/functions/yearn.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 47 | let mut sp = unsafe_div(unsafe_sub(l, unsafe_mul(s,r)), d); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/functions/yearn.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | let mut delta = if sp >= s { unsafe_sub(sp, s) } else { unsafe_sub(s, sp)}; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/functions/yearn.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | for i in 0..8 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/functions/curve.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | for i in 0..256 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/functions/curve.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | let mut xp = [ u256d("1000000000000000000"), u256d("10000"), u256d("100000000000000000000") ].to_vec(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `y_prev` is never read [INFO] [stderr] --> src/functions/curve.rs:82:22 [INFO] [stderr] | [INFO] [stderr] 82 | let mut y_prev = u256d("0"); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `yearn_calc_supply` is never used [INFO] [stderr] --> src/functions/yearn.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | pub const yearn_calc_supply: FixedPointFunction = FixedPointFunction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `curve_get_D` is never used [INFO] [stderr] --> src/functions/curve.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | pub const curve_get_D: FixedPointFunction = FixedPointFunction { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `curve_get_D_fun` is never used [INFO] [stderr] --> src/functions/curve.rs:13:4 [INFO] [stderr] | [INFO] [stderr] 13 | fn curve_get_D_fun(x_n: U256) -> U256 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `curve_get_y_D` is never used [INFO] [stderr] --> src/functions/curve.rs:73:4 [INFO] [stderr] | [INFO] [stderr] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `unsafe_add` is never used [INFO] [stderr] --> src/vyper.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn unsafe_add(a: U256, b: U256) -> U256 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `errorPoints` should have a snake case name [INFO] [stderr] --> src/main.rs:261:26 [INFO] [stderr] | [INFO] [stderr] 261 | let (points, errorPoints) = sample_curve_u256_safe(self.num_points, sample_x_min, sample_x_max); [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `error_points` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `x_mul_inverse` should have an upper case name [INFO] [stderr] --> src/functions/mul_by_inverse.rs:34:11 [INFO] [stderr] | [INFO] [stderr] 34 | pub const x_mul_inverse: FixedPointFunction = FixedPointFunction { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 34 - pub const x_mul_inverse: FixedPointFunction = FixedPointFunction { [INFO] [stderr] 34 + pub const X_MUL_INVERSE: FixedPointFunction = FixedPointFunction { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: constant `yearn_calc_supply` should have an upper case name [INFO] [stderr] --> src/functions/yearn.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | pub const yearn_calc_supply: FixedPointFunction = FixedPointFunction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `YEARN_CALC_SUPPLY` [INFO] [stderr] [INFO] [stderr] warning: variable `MAX_POW_REL_ERR` should have a snake case name [INFO] [stderr] --> src/functions/yearn.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let MAX_POW_REL_ERR: U256 = u256d("100"); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_pow_rel_err` [INFO] [stderr] [INFO] [stderr] warning: variable `PRECISION` should have a snake case name [INFO] [stderr] --> src/functions/yearn.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | let PRECISION = u256d("1000000000000000000"); [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `precision` [INFO] [stderr] [INFO] [stderr] warning: variable `AMP` should have a snake case name [INFO] [stderr] --> src/functions/yearn.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | let AMP = u256d("450000000000000000000"); [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `amp` [INFO] [stderr] [INFO] [stderr] warning: constant `curve_get_D` should have an upper case name [INFO] [stderr] --> src/functions/curve.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | pub const curve_get_D: FixedPointFunction = FixedPointFunction { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper case: `CURVE_GET_D` [INFO] [stderr] [INFO] [stderr] warning: function `curve_get_D_fun` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:13:4 [INFO] [stderr] | [INFO] [stderr] 13 | fn curve_get_D_fun(x_n: U256) -> U256 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `curve_get_d_fun` [INFO] [stderr] [INFO] [stderr] warning: variable `A_PRECISION` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | let A_PRECISION = u256d("100"); [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `a_precision` [INFO] [stderr] [INFO] [stderr] warning: variable `N_COINS` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | let N_COINS = U256::from(_xp.len()); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `n_coins` [INFO] [stderr] [INFO] [stderr] warning: variable `S` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | let mut S = u256d("0"); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stderr] [INFO] [stderr] warning: variable `D` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | let mut D = S; [INFO] [stderr] | ^ help: convert the identifier to snake case: `d` [INFO] [stderr] [INFO] [stderr] warning: variable `Ann` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | let Ann = _amp * N_COINS; [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `ann` [INFO] [stderr] [INFO] [stderr] warning: variable `D_P` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:34:17 [INFO] [stderr] | [INFO] [stderr] 34 | let mut D_P = D; [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `d_p` [INFO] [stderr] [INFO] [stderr] warning: variable `Dprev` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | let Dprev = D; [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `dprev` [INFO] [stderr] [INFO] [stderr] warning: function `curve_get_y_D` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:73:4 [INFO] [stderr] | [INFO] [stderr] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `curve_get_y_d` [INFO] [stderr] [INFO] [stderr] warning: variable `D` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:73:18 [INFO] [stderr] | [INFO] [stderr] 73 | fn curve_get_y_D(D: U256) -> U256 { [INFO] [stderr] | ^ help: convert the identifier to snake case: `d` [INFO] [stderr] [INFO] [stderr] warning: variable `AMP` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:74:9 [INFO] [stderr] | [INFO] [stderr] 74 | let AMP = u256d("30000"); [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `amp` [INFO] [stderr] [INFO] [stderr] warning: variable `A_PRECISION` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | let A_PRECISION = u256d("100"); [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `a_precision` [INFO] [stderr] [INFO] [stderr] warning: variable `S_` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | let mut S_ = u256d("0"); [INFO] [stderr] | ^^ help: convert the identifier to snake case: `s` [INFO] [stderr] [INFO] [stderr] warning: variable `N_COINS` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:84:9 [INFO] [stderr] | [INFO] [stderr] 84 | let N_COINS = u256f(xp.len()); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `n_coins` [INFO] [stderr] [INFO] [stderr] warning: variable `Ann` should have a snake case name [INFO] [stderr] --> src/functions/curve.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | let Ann = AMP * N_COINS; [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `ann` [INFO] [stderr] [INFO] [stderr] warning: `fixed-point-plotter` (bin "fixed-point-plotter" test) generated 37 warnings (run `cargo fix --bin "fixed-point-plotter" -p fixed-point-plotter --tests` to apply 12 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/fixed_point_plotter-1b18a5095225317e) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test functions::mul_by_inverse::tests::test_full_math_div ... ok [INFO] [stdout] test functions::yearn::tests::test_yearn_calc_supply ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- functions::yearn::tests::test_yearn_calc_supply stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'functions::yearn::tests::test_yearn_calc_supply' (17) panicked at src/functions/yearn.rs:71:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 1409901629864257556 [INFO] [stdout] right: 0 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5fc2d9daf002 - std[3f03f8b59f91bef1]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5fc2d9daf002 - std[3f03f8b59f91bef1]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5fc2d9daf002 - std[3f03f8b59f91bef1]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5fc2d9daf002 - <::print::DisplayBacktrace as core[585f66e14d78f9ba]::fmt::Display>::fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5fc2d9dc383a - ::fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5fc2d9dc383a - core[585f66e14d78f9ba]::fmt::write [INFO] [stdout] 6: 0x5fc2d9db3e06 - std[3f03f8b59f91bef1]::io::default_write_fmt::> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5fc2d9db3e06 - as std[3f03f8b59f91bef1]::io::Write>::write_fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x5fc2d9d8d6bf - ::print [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5fc2d9d8d6bf - std[3f03f8b59f91bef1]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5fc2d9da7259 - std[3f03f8b59f91bef1]::panicking::default_hook [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x5fc2d9d2bc9e - core[585f66e14d78f9ba]::ops::function::Fn<(&'a std[3f03f8b59f91bef1]::panic::PanicHookInfo<'b>,), Output = ()> + core[585f66e14d78f9ba]::marker::Sync + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::Fn<(&std[3f03f8b59f91bef1]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x5fc2d9d2bc9e - test[30224e0cb089acd2]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5fc2d9da7412 - core[585f66e14d78f9ba]::ops::function::Fn<(&'a std[3f03f8b59f91bef1]::panic::PanicHookInfo<'b>,), Output = ()> + core[585f66e14d78f9ba]::marker::Sync + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::Fn<(&std[3f03f8b59f91bef1]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x5fc2d9da7412 - std[3f03f8b59f91bef1]::panicking::panic_with_hook [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x5fc2d9d8d778 - std[3f03f8b59f91bef1]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x5fc2d9d82969 - std[3f03f8b59f91bef1]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x5fc2d9d8e5cd - __rustc[caa99d26c7bae192]::rust_begin_unwind [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x5fc2d9dc3eac - core[585f66e14d78f9ba]::panicking::panic_fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5fc2d9dc3dc3 - core[585f66e14d78f9ba]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5fc2d9d1ba1d - core[585f66e14d78f9ba]::panicking::assert_failed:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5fc2d9d1f3dd - fixed_point_plotter[8ae668ce1667b7d9]::functions::yearn::tests::test_yearn_calc_supply [INFO] [stdout] at /opt/rustwide/workdir/src/functions/yearn.rs:71:9 [INFO] [stdout] 22: 0x5fc2d9d1bab7 - fixed_point_plotter[8ae668ce1667b7d9]::functions::yearn::tests::test_yearn_calc_supply::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/functions/yearn.rs:70:36 [INFO] [stdout] 23: 0x5fc2d9d1ffa6 - >::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5fc2d9d2004b - core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5fc2d9d2004b - test[30224e0cb089acd2]::__rust_begin_short_backtrace::, fn() -> core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x5fc2d9d2c8aa - test[30224e0cb089acd2]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x5fc2d9d2c8aa - as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x5fc2d9d2c8aa - std[3f03f8b59f91bef1]::panicking::catch_unwind::do_call::, core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x5fc2d9d2c8aa - std[3f03f8b59f91bef1]::panicking::catch_unwind::, core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x5fc2d9d2c8aa - std[3f03f8b59f91bef1]::panic::catch_unwind::, core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5fc2d9d2c8aa - test[30224e0cb089acd2]::run_test_in_process [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x5fc2d9d2c8aa - test[30224e0cb089acd2]::run_test::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x5fc2d9d26d74 - test[30224e0cb089acd2]::run_test::{closure#1} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x5fc2d9d26d74 - std[3f03f8b59f91bef1]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x5fc2d9d2f3a2 - std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x5fc2d9d2f3a2 - ::{closure#1}::{closure#0}> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x5fc2d9d2f3a2 - std[3f03f8b59f91bef1]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x5fc2d9d2f3a2 - std[3f03f8b59f91bef1]::panicking::catch_unwind::<(), core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x5fc2d9d2f3a2 - std[3f03f8b59f91bef1]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5fc2d9d2f3a2 - std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x5fc2d9d2f3a2 - ::{closure#1} as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5fc2d9dae8af - + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x5fc2d9dae8af - ::new::thread_start [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 44: 0x703e2dc5baa4 - [INFO] [stdout] 45: 0x703e2dce8a64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] functions::yearn::tests::test_yearn_calc_supply [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin fixed-point-plotter` [INFO] running `Command { std: "docker" "inspect" "8d92bba7ec91ce8a2f3e9e7a632f0390c298a1cfaaa4a025a267224a2f5889ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d92bba7ec91ce8a2f3e9e7a632f0390c298a1cfaaa4a025a267224a2f5889ee", kill_on_drop: false }` [INFO] [stdout] 8d92bba7ec91ce8a2f3e9e7a632f0390c298a1cfaaa4a025a267224a2f5889ee