[INFO] fetching crate math-commons 0.1.0... [INFO] checking math-commons-0.1.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate math-commons 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate math-commons 0.1.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate math-commons 0.1.0 [INFO] finished tweaking crates.io crate math-commons 0.1.0 [INFO] tweaked toml for crates.io crate math-commons 0.1.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef7cb11ed468e288f0ea41b42439d1ae27a57649273d75367df4700908d2b141 [INFO] running `Command { std: "docker" "start" "-a" "ef7cb11ed468e288f0ea41b42439d1ae27a57649273d75367df4700908d2b141", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef7cb11ed468e288f0ea41b42439d1ae27a57649273d75367df4700908d2b141", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef7cb11ed468e288f0ea41b42439d1ae27a57649273d75367df4700908d2b141", kill_on_drop: false }` [INFO] [stdout] ef7cb11ed468e288f0ea41b42439d1ae27a57649273d75367df4700908d2b141 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26313e45c052939722c309907188fbf4214de98aba7bde572d6f5f0b44dbc9e7 [INFO] running `Command { std: "docker" "start" "-a" "26313e45c052939722c309907188fbf4214de98aba7bde572d6f5f0b44dbc9e7", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking math-commons v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/percentajes/tests.rs (2 fixes) [INFO] [stderr] Fixed src/fractions/mod.rs (1 fix) [INFO] [stdout] warning: function `is_proportion` is never used [INFO] [stdout] --> src/percentajes/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn is_proportion(f1: Fraction, f2: Fraction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_proportion_value` is never used [INFO] [stdout] --> src/percentajes/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn calc_proportion_value(f1: Fraction, f2: Fraction) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_directly_proportional` is never used [INFO] [stdout] --> src/percentajes/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn is_directly_proportional(fractions: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percentage_in_decimal` is never used [INFO] [stdout] --> src/percentajes/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn percentage_in_decimal(percentage: u16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percentage_of` is never used [INFO] [stdout] --> src/percentajes/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn percentage_of(percentage: u16, num: u16) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_part` is never used [INFO] [stdout] --> src/percentajes/mod.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn calc_part(percentage: u16, total: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_percentage` is never used [INFO] [stdout] --> src/percentajes/mod.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn calc_percentage(total: u16, part: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_total` is never used [INFO] [stdout] --> src/percentajes/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn calc_total(part: u16, percentage: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/fractions/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `calculate`, `get_a`, `get_b`, and `has_x` are never used [INFO] [stdout] --> src/fractions/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Fraction { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(a: Option, b: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn calculate(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_a(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get_b(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn has_x(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_proportion` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | assert!(is_proportion(Fraction::new(Some(1.0), Some(1.2)), Fraction::new(Some(2.5), Some(3.0)))) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | fn calc_proportion() { [INFO] [stdout] | -------------------- similarly named function `calc_proportion` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 4 | assert!(calc_proportion(Fraction::new(Some(1.0), Some(1.2)), Fraction::new(Some(2.5), Some(3.0)))) [INFO] [stdout] | ~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::is_proportion; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | assert!(is_proportion(Fraction::new(Some(1.0), Some(1.2)), Fraction::new(Some(2.5), Some(3.0)))) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 4 | assert!(is_proportion(Fraction::new(Some(1.0), Some(1.2)), Fraction::new(Some(2.5), Some(3.0)))) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calc_proportion_value` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let x = calc_proportion_value(Fraction::new(Some(2.1), Some(18.0)), Fraction::new(Some(3.5), None)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::calc_proportion_value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | let x = calc_proportion_value(Fraction::new(Some(2.1), Some(18.0)), Fraction::new(Some(3.5), None)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:8:73 [INFO] [stdout] | [INFO] [stdout] 8 | let x = calc_proportion_value(Fraction::new(Some(2.1), Some(18.0)), Fraction::new(Some(3.5), None)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_directly_proportional` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | assert!(is_directly_proportional(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::is_directly_proportional; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | Fraction::new(Some(1.0), Some(1.0)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | Fraction::new(Some(2.0), Some(2.0)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Fraction::new(Some(3.0), Some(3.0)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_directly_proportional` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 12 | fn is_directly_proportional_test() { [INFO] [stdout] | ---------------------------------- similarly named function `is_directly_proportional_test` defined here [INFO] [stdout] ... [INFO] [stdout] 21 | assert!(!is_directly_proportional(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 | assert!(!is_directly_proportional_test(vec![ [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::is_directly_proportional; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | Fraction::new(Some(2.0), Some(2.3)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | Fraction::new(Some(5.0), Some(435.0)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Fraction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::fractions::Fraction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `percentage_in_decimal` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let x = percentage_in_decimal(100); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::percentage_in_decimal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `percentage_of` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let x = percentage_of(30, 10); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::percentage_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calc_part` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let x = calc_part(10, 30); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::calc_part; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calc_percentage` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let x = calc_percentage(20, 10); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::calc_percentage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calc_total` in this scope [INFO] [stdout] --> src/percentajes/tests.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let x = calc_total(10, 2); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::percentajes::calc_total; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `math-commons` (lib test) due to 19 previous errors [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [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" "26313e45c052939722c309907188fbf4214de98aba7bde572d6f5f0b44dbc9e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26313e45c052939722c309907188fbf4214de98aba7bde572d6f5f0b44dbc9e7", kill_on_drop: false }` [INFO] [stdout] 26313e45c052939722c309907188fbf4214de98aba7bde572d6f5f0b44dbc9e7