[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] building one-hundred-proof/fixed-point-plotter against master#eb171a227f9e5de5d376b6edb56b174bc8235fb3 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fone-hundred-proof%2Ffixed-point-plotter" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/one-hundred-proof/fixed-point-plotter on toolchain eb171a227f9e5de5d376b6edb56b174bc8235fb3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded impl-codec v0.7.1 [INFO] [stderr] Downloaded primitive-types v0.13.1 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.7.5 [INFO] [stderr] Downloaded byte-slice-cast v1.2.3 [INFO] [stderr] Downloaded uint v0.10.0 [INFO] [stderr] Downloaded const_format v0.2.34 [INFO] [stderr] Downloaded zbus_macros v5.9.0 [INFO] [stderr] Downloaded zvariant_derive v5.6.0 [INFO] [stderr] Downloaded libredox v0.1.4 [INFO] [stderr] Downloaded zbus-lockstep-macros v0.5.1 [INFO] [stderr] Downloaded emath v0.33.3 [INFO] [stderr] Downloaded ordered-float v5.1.0 [INFO] [stderr] Downloaded accesskit_unix v0.17.2 [INFO] [stderr] Downloaded arboard v3.6.1 [INFO] [stderr] Downloaded egui-wgpu v0.33.3 [INFO] [stderr] Downloaded epaint v0.33.3 [INFO] [stderr] Downloaded zvariant v5.6.0 [INFO] [stderr] Downloaded cc v1.2.29 [INFO] [stderr] Downloaded eframe v0.33.3 [INFO] [stderr] Downloaded egui-winit v0.33.3 [INFO] [stderr] Downloaded egui_glow v0.33.3 [INFO] [stderr] Downloaded zbus v5.9.0 [INFO] [stderr] Downloaded ecolor v0.33.3 [INFO] [stderr] Downloaded egui_plot v0.34.0 [INFO] [stderr] Downloaded parity-scale-codec v3.7.5 [INFO] [stderr] Downloaded accesskit_atspi_common v0.14.2 [INFO] [stderr] Downloaded zbus-lockstep v0.5.1 [INFO] [stderr] Downloaded wgpu-core v27.0.3 [INFO] [stderr] Downloaded wgpu-hal v27.0.4 [INFO] [stderr] Downloaded egui v0.33.3 [INFO] [stderr] Downloaded naga v27.0.3 [INFO] [stderr] Downloaded epaint_default_fonts v0.33.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f76d4f22ee8618a2feb228e2a6dc3df2bf9693f112d54a2f74cf74491d93ac0b [INFO] running `Command { std: "docker" "start" "-a" "f76d4f22ee8618a2feb228e2a6dc3df2bf9693f112d54a2f74cf74491d93ac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f76d4f22ee8618a2feb228e2a6dc3df2bf9693f112d54a2f74cf74491d93ac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f76d4f22ee8618a2feb228e2a6dc3df2bf9693f112d54a2f74cf74491d93ac0b", kill_on_drop: false }` [INFO] [stdout] f76d4f22ee8618a2feb228e2a6dc3df2bf9693f112d54a2f74cf74491d93ac0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e6acd5a0eebc20fc6dda279af77c53efcec6d3deba74f5fe03f6919954a7132 [INFO] running `Command { std: "docker" "start" "-a" "2e6acd5a0eebc20fc6dda279af77c53efcec6d3deba74f5fe03f6919954a7132", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling equivalent v1.0.2 [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 rustix v0.38.44 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling wayland-sys v0.31.6 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling wayland-client v0.31.10 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling ttf-parser v0.25.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.9 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling accesskit v0.21.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling cursor-icon v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling wayland-scanner v0.31.6 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling async-broadcast v0.7.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling async-executor v1.13.2 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Compiling epaint_default_fonts v0.33.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling wayland-backend v0.3.10 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling memmap2 v0.9.7 [INFO] [stderr] Compiling ab_glyph v0.2.32 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling accesskit_consumer v0.31.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling glutin_glx_sys v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.7.1 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling dpi v0.1.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling glutin v0.32.3 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling glutin-winit v0.5.0 [INFO] [stderr] Compiling glow v0.16.0 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling primitive-types v0.13.1 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling synstructure v0.13.2 [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 bytemuck_derive v1.10.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling wayland-protocols v0.32.8 [INFO] [stderr] Compiling wayland-cursor v0.31.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling emath v0.33.3 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling polling v3.8.0 [INFO] [stderr] Compiling async-io v2.4.1 [INFO] [stderr] Compiling calloop v0.13.0 [INFO] [stderr] Compiling ecolor v0.33.3 [INFO] [stderr] Compiling epaint v0.33.3 [INFO] [stderr] Compiling tiny-skia v0.11.4 [INFO] [stderr] Compiling async-signal v0.2.11 [INFO] [stderr] Compiling async-process v2.3.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling calloop-wayland-source v0.3.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling arboard v3.6.1 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling egui v0.33.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling webbrowser v1.0.5 [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 zvariant v5.6.0 [INFO] [stderr] Compiling wayland-protocols-wlr v0.3.8 [INFO] [stderr] Compiling wayland-protocols-plasma v0.3.8 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Compiling egui_glow v0.33.3 [INFO] [stderr] Compiling egui_plot v0.34.0 [INFO] [stderr] Compiling zbus_names v4.2.0 [INFO] [stderr] Compiling sctk-adwaita v0.10.1 [INFO] [stderr] Compiling smithay-clipboard v0.7.2 [INFO] [stderr] Compiling zbus_xml v5.0.2 [INFO] [stderr] Compiling zbus-lockstep v0.5.1 [INFO] [stderr] Compiling zbus_macros v5.9.0 [INFO] [stderr] Compiling zbus-lockstep-macros v0.5.1 [INFO] [stderr] Compiling zbus v5.9.0 [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 2m 16s [INFO] running `Command { std: "docker" "inspect" "2e6acd5a0eebc20fc6dda279af77c53efcec6d3deba74f5fe03f6919954a7132", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e6acd5a0eebc20fc6dda279af77c53efcec6d3deba74f5fe03f6919954a7132", kill_on_drop: false }` [INFO] [stdout] 2e6acd5a0eebc20fc6dda279af77c53efcec6d3deba74f5fe03f6919954a7132 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 210d6873f1d7a15f59c006f165ccf7f486a36c96cb1b9ff3b6a9d62515df5526 [INFO] running `Command { std: "docker" "start" "-a" "210d6873f1d7a15f59c006f165ccf7f486a36c96cb1b9ff3b6a9d62515df5526", 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 2.39s [INFO] running `Command { std: "docker" "inspect" "210d6873f1d7a15f59c006f165ccf7f486a36c96cb1b9ff3b6a9d62515df5526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "210d6873f1d7a15f59c006f165ccf7f486a36c96cb1b9ff3b6a9d62515df5526", kill_on_drop: false }` [INFO] [stdout] 210d6873f1d7a15f59c006f165ccf7f486a36c96cb1b9ff3b6a9d62515df5526