[INFO] cloning repository https://github.com/xavlas/rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xavlas/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxavlas%2Frust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxavlas%2Frust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8c8d0c211209a4a928161a86fdff9ceeed5f6be [INFO] checking xavlas/rust against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxavlas%2Frust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xavlas/rust 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/xavlas/rust [INFO] finished tweaking git repo https://github.com/xavlas/rust [INFO] tweaked toml for git repo https://github.com/xavlas/rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/xavlas/rust 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b7ee6f6e0e790a241f779667d85b132d61e7eb91dacbf97d4b4b64e6e93e40ec [INFO] running `Command { std: "docker" "start" "-a" "b7ee6f6e0e790a241f779667d85b132d61e7eb91dacbf97d4b4b64e6e93e40ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7ee6f6e0e790a241f779667d85b132d61e7eb91dacbf97d4b4b64e6e93e40ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7ee6f6e0e790a241f779667d85b132d61e7eb91dacbf97d4b4b64e6e93e40ec", kill_on_drop: false }` [INFO] [stdout] b7ee6f6e0e790a241f779667d85b132d61e7eb91dacbf97d4b4b64e6e93e40ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 16b7a8506aae2e29928799790bfde9fa9feae3664a37d3b55ebfaf6bc083ad7f [INFO] running `Command { std: "docker" "start" "-a" "16b7a8506aae2e29928799790bfde9fa9feae3664a37d3b55ebfaf6bc083ad7f", kill_on_drop: false }` [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `annuite_remboursement`, `calcul_capital`, `capital_rembourse_annuite`, `capital_rembourse`, `duree`, `interet_simple`, `interet`, `montant_capital`, `placement_mensuel`, `taux_mensuel`, `valeur_acquise`, `valeur_actuelle` [INFO] [stdout] --> src/tests.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | ...::{annuite_remboursement, calcul_capital, capital_rembourse, capital_rembourse_annuite, duree, interet, interet_simple, montant_capital, placement_mensuel, taux_mensuel, valeur_acquise, valeur_actuell... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | if (i == duree) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - if (i == duree) { [INFO] [stdout] 116 + if i == duree { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | if (i == duree) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - if (i == duree) { [INFO] [stdout] 116 + if i == duree { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | / loop { [INFO] [stdout] 97 | | if i >= periode { return total; } [INFO] [stdout] 98 | | total = total - capital_rembourse_annuite(nominal, taux, duree, i); [INFO] [stdout] 99 | | i = i + 1; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 101 | return total; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nominal` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let nominal = 300000; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nominal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result:f32 = emprunt(250000.0, taux, duree, i); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valeur_acquise` is never used [INFO] [stdout] --> src/main.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn valeur_acquise(montant: u16, taux: u16, duree: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valeur_actuelle` is never used [INFO] [stdout] --> src/main.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn valeur_actuelle(montant: u16, taux: f32, duree: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interet_simple` is never used [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn interet_simple(montant: u32, taux: f32, duree_jour: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duree` is never used [INFO] [stdout] --> src/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn duree(montant_origine: i16, montant_voulue: i16, taux: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calcul_capital` is never used [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calcul_capital(rente: f32, taux: f32, duree: i16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placement_mensuel` is never used [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn placement_mensuel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `taux_mensuel` is never used [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn taux_mensuel(taux: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `montant_capital` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn montant_capital(nominal: f32, taux: f32, duree: i16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | / loop { [INFO] [stdout] 97 | | if i >= periode { return total; } [INFO] [stdout] 98 | | total = total - capital_rembourse_annuite(nominal, taux, duree, i); [INFO] [stdout] 99 | | i = i + 1; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 101 | return total; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nominal` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let nominal = 300000; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nominal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result:f32 = emprunt(250000.0, taux, duree, i); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] running `Command { std: "docker" "inspect" "16b7a8506aae2e29928799790bfde9fa9feae3664a37d3b55ebfaf6bc083ad7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16b7a8506aae2e29928799790bfde9fa9feae3664a37d3b55ebfaf6bc083ad7f", kill_on_drop: false }` [INFO] [stdout] 16b7a8506aae2e29928799790bfde9fa9feae3664a37d3b55ebfaf6bc083ad7f [INFO] checking xavlas/rust against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxavlas%2Frust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xavlas/rust 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/xavlas/rust [INFO] finished tweaking git repo https://github.com/xavlas/rust [INFO] tweaked toml for git repo https://github.com/xavlas/rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/xavlas/rust 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 31442bf421841d7c5ec024f7a8ca1e7dfc493e5eba9f3c86620229d7feb01d2c [INFO] running `Command { std: "docker" "start" "-a" "31442bf421841d7c5ec024f7a8ca1e7dfc493e5eba9f3c86620229d7feb01d2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31442bf421841d7c5ec024f7a8ca1e7dfc493e5eba9f3c86620229d7feb01d2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31442bf421841d7c5ec024f7a8ca1e7dfc493e5eba9f3c86620229d7feb01d2c", kill_on_drop: false }` [INFO] [stdout] 31442bf421841d7c5ec024f7a8ca1e7dfc493e5eba9f3c86620229d7feb01d2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 101c8d8d74f84ba4d75c811e9962b3b0fcb6a49413940590b7e7a7ebb529cc64 [INFO] running `Command { std: "docker" "start" "-a" "101c8d8d74f84ba4d75c811e9962b3b0fcb6a49413940590b7e7a7ebb529cc64", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking rust 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: unreachable statement [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | / loop { [INFO] [stdout] 97 | | if i >= periode { return total; } [INFO] [stdout] 98 | | total = total - capital_rembourse_annuite(nominal, taux, duree, i); [INFO] [stdout] 99 | | i = i + 1; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 101 | return total; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nominal` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let nominal = 300000; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nominal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result:f32 = emprunt(250000.0, taux, duree, i); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/tests.rs (1 fix) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | / loop { [INFO] [stdout] 97 | | if i >= periode { return total; } [INFO] [stdout] 98 | | total = total - capital_rembourse_annuite(nominal, taux, duree, i); [INFO] [stdout] 99 | | i = i + 1; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 101 | return total; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nominal` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let nominal = 300000; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nominal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result:f32 = emprunt(250000.0, taux, duree, i); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valeur_acquise` is never used [INFO] [stdout] --> src/main.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn valeur_acquise(montant: u16, taux: u16, duree: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valeur_actuelle` is never used [INFO] [stdout] --> src/main.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn valeur_actuelle(montant: u16, taux: f32, duree: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interet_simple` is never used [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn interet_simple(montant: u32, taux: f32, duree_jour: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duree` is never used [INFO] [stdout] --> src/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn duree(montant_origine: i16, montant_voulue: i16, taux: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calcul_capital` is never used [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calcul_capital(rente: f32, taux: f32, duree: i16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placement_mensuel` is never used [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn placement_mensuel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `taux_mensuel` is never used [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn taux_mensuel(taux: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `montant_capital` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn montant_capital(nominal: f32, taux: f32, duree: i16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rust v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | / loop { [INFO] [stdout] 97 | | if i >= periode { return total; } [INFO] [stdout] 98 | | total = total - capital_rembourse_annuite(nominal, taux, duree, i); [INFO] [stdout] 99 | | i = i + 1; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 101 | return total; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nominal` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let nominal = 300000; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nominal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result:f32 = emprunt(250000.0, taux, duree, i); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valeur_acquise` is never used [INFO] [stdout] --> src/main.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn valeur_acquise(montant: u16, taux: u16, duree: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valeur_actuelle` is never used [INFO] [stdout] --> src/main.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn valeur_actuelle(montant: u16, taux: f32, duree: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interet_simple` is never used [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn interet_simple(montant: u32, taux: f32, duree_jour: u8) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duree` is never used [INFO] [stdout] --> src/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn duree(montant_origine: i16, montant_voulue: i16, taux: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calcul_capital` is never used [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calcul_capital(rente: f32, taux: f32, duree: i16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placement_mensuel` is never used [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn placement_mensuel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `taux_mensuel` is never used [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn taux_mensuel(taux: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `montant_capital` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn montant_capital(nominal: f32, taux: f32, duree: i16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `valeur_acquise` in this scope [INFO] [stdout] --> src/tests.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(valeur_acquise(1000, 6, 1), 1060f32); // Integration tests (and benchmarks) 'depend' to the crate like [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::valeur_acquise; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `valeur_acquise` in this scope [INFO] [stdout] --> src/tests.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(valeur_acquise(11000, 3, 20), 19867f32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::valeur_acquise; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `interet_simple` in this scope [INFO] [stdout] --> src/tests.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(interet_simple(1000000, 2.9, 99), 7975 as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::interet_simple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `valeur_actuelle` in this scope [INFO] [stdout] --> src/tests.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(valeur_actuelle(35000, 3.5, 10), 24812 as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::valeur_actuelle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `duree` in this scope [INFO] [stdout] --> src/tests.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(duree(20000, 25000, 4.0), 6 as f32); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::duree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `duree` in this scope [INFO] [stdout] --> src/tests.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(duree(20000, 25000, 4.0), 6 as f32); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::duree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calcul_capital` in this scope [INFO] [stdout] --> src/tests.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(calcul_capital(460.0, 6.0, 20), 65036.758); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::calcul_capital; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `taux_mensuel` in this scope [INFO] [stdout] --> src/tests.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | assert_eq!(taux_mensuel(6.0), 0.0048675537); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::taux_mensuel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `placement_mensuel` in this scope [INFO] [stdout] --> src/tests.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(placement_mensuel(2000.0, 3.0, 20, 42), 362.755); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::placement_mensuel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `annuite_remboursement` in this scope [INFO] [stdout] --> src/tests.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(annuite_remboursement(80000.0, 7.0, 5), 19511.242); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::annuite_remboursement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `capital_rembourse` in this scope [INFO] [stdout] --> src/tests.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | assert_eq!(capital_rembourse(80000.0, 7.0, 5), 13911.242); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::capital_rembourse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `capital_rembourse_annuite` in this scope [INFO] [stdout] --> src/tests.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(capital_rembourse_annuite(80000.0, 7.0, 5, 3), 15926.982); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::capital_rembourse_annuite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `montant_capital` in this scope [INFO] [stdout] --> src/tests.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(montant_capital(80000.0, 7.0, 5), 61763.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::montant_capital; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `interet` in this scope [INFO] [stdout] --> src/tests.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(interet(80000.0, 7.0, 5,1), 5600.0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::interet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | / loop { [INFO] [stdout] 97 | | if i >= periode { return total; } [INFO] [stdout] 98 | | total = total - capital_rembourse_annuite(nominal, taux, duree, i); [INFO] [stdout] 99 | | i = i + 1; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 101 | return total; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nominal` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let nominal = 300000; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nominal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result:f32 = emprunt(250000.0, taux, duree, i); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust` (bin "rust" test) due to 15 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "101c8d8d74f84ba4d75c811e9962b3b0fcb6a49413940590b7e7a7ebb529cc64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "101c8d8d74f84ba4d75c811e9962b3b0fcb6a49413940590b7e7a7ebb529cc64", kill_on_drop: false }` [INFO] [stdout] 101c8d8d74f84ba4d75c811e9962b3b0fcb6a49413940590b7e7a7ebb529cc64