[INFO] cloning repository https://github.com/buzzy-coder/time-decay-consensus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/buzzy-coder/time-decay-consensus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuzzy-coder%2Ftime-decay-consensus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuzzy-coder%2Ftime-decay-consensus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af48086a16e2debda097ea1ce20ec038c34074a0 [INFO] checking buzzy-coder/time-decay-consensus against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuzzy-coder%2Ftime-decay-consensus" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/buzzy-coder/time-decay-consensus [INFO] finished tweaking git repo https://github.com/buzzy-coder/time-decay-consensus [INFO] tweaked toml for git repo https://github.com/buzzy-coder/time-decay-consensus written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/buzzy-coder/time-decay-consensus on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/buzzy-coder/time-decay-consensus 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded der v0.7.10 [INFO] [stderr] Downloaded curve25519-dalek-derive v0.1.1 [INFO] [stderr] Downloaded ed25519 v2.2.3 [INFO] [stderr] Downloaded ed25519-dalek v2.1.1 [INFO] [stderr] Downloaded cc v1.2.29 [INFO] [stderr] Downloaded curve25519-dalek v4.1.3 [INFO] [stderr] Downloaded fiat-crypto v0.2.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cdfd0f4784bf2ae42b1d9daf5e390f82d0b9ba19c1b93cc8fc288f38e592492 [INFO] running `Command { std: "docker" "start" "-a" "5cdfd0f4784bf2ae42b1d9daf5e390f82d0b9ba19c1b93cc8fc288f38e592492", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cdfd0f4784bf2ae42b1d9daf5e390f82d0b9ba19c1b93cc8fc288f38e592492", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cdfd0f4784bf2ae42b1d9daf5e390f82d0b9ba19c1b93cc8fc288f38e592492", kill_on_drop: false }` [INFO] [stdout] 5cdfd0f4784bf2ae42b1d9daf5e390f82d0b9ba19c1b93cc8fc288f38e592492 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cae527806aef5ddf4f5c368514c0b24f2e7e5a6cf7fa33a95b1e6fd2726b4b20 [INFO] running `Command { std: "docker" "start" "-a" "cae527806aef5ddf4f5c368514c0b24f2e7e5a6cf7fa33a95b1e6fd2726b4b20", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking time-decay-consensus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VerificationError` [INFO] [stdout] --> src/simulation.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::verify::{VerificationError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EscalationPattern` and `ProgressionProfile` [INFO] [stdout] --> src/simulation.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::threshold::{ThresholdEscalator, EscalationPattern, ProgressionProfile}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationError` [INFO] [stdout] --> src/simulation.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::verify::{VerificationError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EscalationPattern` and `ProgressionProfile` [INFO] [stdout] --> src/simulation.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::threshold::{ThresholdEscalator, EscalationPattern, ProgressionProfile}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ed25519_dalek::SigningKey` [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | use ed25519_dalek::SigningKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProgressionProfile` [INFO] [stdout] --> src/main.rs:136:48 [INFO] [stdout] | [INFO] [stdout] 136 | use crate::threshold::{ThresholdEscalator, ProgressionProfile}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Exponential` and `Sigmoid` are never constructed [INFO] [stdout] --> src/threshold.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum EscalationPattern { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 7 | Linear(f64), // rate: e.g., 0.01 means +1% per second [INFO] [stdout] 8 | Exponential(f64), // factor: e.g., 0.001 for gradual curve [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | Sigmoid(f64, f64), // (k, midpoint): smooth S-curve [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EscalationPattern` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Adaptive` is never constructed [INFO] [stdout] --> src/threshold.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum ProgressionProfile { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | Adaptive, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProgressionProfile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign_vote` is never used [INFO] [stdout] --> src/vote.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn sign_vote(voter_id: String, signing_key: &SigningKey, timestamp: DateTime) -> Signature { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WindowType` is never used [INFO] [stdout] --> src/window.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum WindowType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VotingWindow` is never constructed [INFO] [stdout] --> src/window.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct VotingWindow { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `time_left`, `should_extend`, and `extend` are never used [INFO] [stdout] --> src/window.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl VotingWindow { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(start_time: DateTime, window_type: WindowType, grace_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_open(&self, now: DateTime) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn time_left(&self, now: DateTime) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn should_extend( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn extend(&mut self, extra_secs: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `average_margin` and `suggested_base_threshold` are never used [INFO] [stdout] --> src/history.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl HistoryAnalyzer { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn average_margin(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn suggested_base_threshold(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/window.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut vw = VotingWindow::new(now, WindowType::Short, 10); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinearDecay` is never constructed [INFO] [stdout] --> src/weight_engine.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct LinearDecay { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExponentialDecay` is never constructed [INFO] [stdout] --> src/weight_engine.rs:110:16 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct ExponentialDecay { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SteppedDecay` is never constructed [INFO] [stdout] --> src/weight_engine.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct SteppedDecay { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_weight` is never used [INFO] [stdout] --> src/weight_engine.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 117 | impl LinearDecay { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 118 | pub fn compute_weight(&self, original: f64, age: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_weight` is never used [INFO] [stdout] --> src/weight_engine.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 122 | impl ExponentialDecay { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 123 | pub fn compute_weight(&self, original: f64, age: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_weight` is never used [INFO] [stdout] --> src/weight_engine.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 127 | impl SteppedDecay { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 128 | pub fn compute_weight(&self, original: f64, age: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.05s [INFO] running `Command { std: "docker" "inspect" "cae527806aef5ddf4f5c368514c0b24f2e7e5a6cf7fa33a95b1e6fd2726b4b20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cae527806aef5ddf4f5c368514c0b24f2e7e5a6cf7fa33a95b1e6fd2726b4b20", kill_on_drop: false }` [INFO] [stdout] cae527806aef5ddf4f5c368514c0b24f2e7e5a6cf7fa33a95b1e6fd2726b4b20