[INFO] cloning repository https://github.com/matindi/check_generic_types [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/matindi/check_generic_types" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatindi%2Fcheck_generic_types", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatindi%2Fcheck_generic_types'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66c40f9db01c966984ca66e12ba607a016f7ac9b [INFO] checking matindi/check_generic_types against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatindi%2Fcheck_generic_types" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/matindi/check_generic_types on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/matindi/check_generic_types [INFO] finished tweaking git repo https://github.com/matindi/check_generic_types [INFO] tweaked toml for git repo https://github.com/matindi/check_generic_types written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/matindi/check_generic_types 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal_macros v1.25.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35a37bad07e8ca3cf2fef78c2d3647020112957aa24d46cb6896ee887bffa604 [INFO] running `Command { std: "docker" "start" "-a" "35a37bad07e8ca3cf2fef78c2d3647020112957aa24d46cb6896ee887bffa604", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35a37bad07e8ca3cf2fef78c2d3647020112957aa24d46cb6896ee887bffa604", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35a37bad07e8ca3cf2fef78c2d3647020112957aa24d46cb6896ee887bffa604", kill_on_drop: false }` [INFO] [stdout] 35a37bad07e8ca3cf2fef78c2d3647020112957aa24d46cb6896ee887bffa604 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a804861d62aa03dd1361945eb890e9322d2741123a487a17c890311c48592e11 [INFO] running `Command { std: "docker" "start" "-a" "a804861d62aa03dd1361945eb890e9322d2741123a487a17c890311c48592e11", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling rust_decimal v1.25.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling rust_decimal_macros v1.25.0 [INFO] [stderr] Checking floats v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Loan` is never constructed [INFO] [stdout] --> src/main.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Loan { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoanType` is never used [INFO] [stdout] --> src/main.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum LoanType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoanObjective` is never used [INFO] [stdout] --> src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum LoanObjective { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CalculateLoan` is never used [INFO] [stdout] --> src/main.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | trait CalculateLoan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `loan_type`, `loan_objective`, `loan_amount`, `loan_period`, and `present_value` are never read [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Loan { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | loan_type: LoanType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | loan_objective: LoanObjective, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | interest_rate: T, [INFO] [stdout] 9 | loan_amount: T, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | loan_period: T, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | present_value: T, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Serial` is never constructed [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum LoanType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 15 | Anniuty, [INFO] [stdout] 16 | Serial, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Housing` and `Consumer` are never constructed [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum LoanObjective { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 20 | Car, [INFO] [stdout] 21 | Housing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | Consumer, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.68s [INFO] running `Command { std: "docker" "inspect" "a804861d62aa03dd1361945eb890e9322d2741123a487a17c890311c48592e11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a804861d62aa03dd1361945eb890e9322d2741123a487a17c890311c48592e11", kill_on_drop: false }` [INFO] [stdout] a804861d62aa03dd1361945eb890e9322d2741123a487a17c890311c48592e11 [INFO] checking matindi/check_generic_types against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatindi%2Fcheck_generic_types" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/matindi/check_generic_types on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/matindi/check_generic_types [INFO] finished tweaking git repo https://github.com/matindi/check_generic_types [INFO] tweaked toml for git repo https://github.com/matindi/check_generic_types written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/matindi/check_generic_types 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82fd8fb044f16841910401f454bc743a67827404018f22d93dbcd6a61a672ccf [INFO] running `Command { std: "docker" "start" "-a" "82fd8fb044f16841910401f454bc743a67827404018f22d93dbcd6a61a672ccf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82fd8fb044f16841910401f454bc743a67827404018f22d93dbcd6a61a672ccf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82fd8fb044f16841910401f454bc743a67827404018f22d93dbcd6a61a672ccf", kill_on_drop: false }` [INFO] [stdout] 82fd8fb044f16841910401f454bc743a67827404018f22d93dbcd6a61a672ccf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5058cb4758f74c5b5f4ad7b50042df60f15ee2fa033f983aaa0cacb01673bb9d [INFO] running `Command { std: "docker" "start" "-a" "5058cb4758f74c5b5f4ad7b50042df60f15ee2fa033f983aaa0cacb01673bb9d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling rust_decimal v1.25.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling rust_decimal_macros v1.25.0 [INFO] [stderr] Checking floats v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: struct `Loan` is never constructed [INFO] [stdout] --> src/main.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Loan { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoanType` is never used [INFO] [stdout] --> src/main.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum LoanType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoanObjective` is never used [INFO] [stdout] --> src/main.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum LoanObjective { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CalculateLoan` is never used [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | trait CalculateLoan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `dec` in this scope [INFO] [stdout] --> src/main.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | present_value: dec!(0), [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/macros.rs:42:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `vec` defined here [INFO] [stdout] | [INFO] [stdout] help: a macro with a similar name exists [INFO] [stdout] | [INFO] [stdout] 76 | present_value: vec!(0), [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 54 + use rust_decimal_macros::dec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `dec` in this scope [INFO] [stdout] --> src/main.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | loan_period: dec!(2), [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/macros.rs:42:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `vec` defined here [INFO] [stdout] | [INFO] [stdout] help: a macro with a similar name exists [INFO] [stdout] | [INFO] [stdout] 75 | loan_period: vec!(2), [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 54 + use rust_decimal_macros::dec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `dec` in this scope [INFO] [stdout] --> src/main.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | loan_amount: dec!(5000), [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/macros.rs:42:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `vec` defined here [INFO] [stdout] | [INFO] [stdout] help: a macro with a similar name exists [INFO] [stdout] | [INFO] [stdout] 74 | loan_amount: vec!(5000), [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 54 + use rust_decimal_macros::dec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `dec` in this scope [INFO] [stdout] --> src/main.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | interest_rate: dec!(3.5), [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/macros.rs:42:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `vec` defined here [INFO] [stdout] | [INFO] [stdout] help: a macro with a similar name exists [INFO] [stdout] | [INFO] [stdout] 73 | interest_rate: vec!(3.5), [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 54 + use rust_decimal_macros::dec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `floats` (bin "floats" test) due to 5 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "5058cb4758f74c5b5f4ad7b50042df60f15ee2fa033f983aaa0cacb01673bb9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5058cb4758f74c5b5f4ad7b50042df60f15ee2fa033f983aaa0cacb01673bb9d", kill_on_drop: false }` [INFO] [stdout] 5058cb4758f74c5b5f4ad7b50042df60f15ee2fa033f983aaa0cacb01673bb9d