[INFO] cloning repository https://github.com/rustspeak/code_3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rustspeak/code_3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcode_3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcode_3'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 27d0e3b370cee343c795c25f7a98b93815527cf3 [INFO] testing rustspeak/code_3 against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcode_3" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rustspeak/code_3 on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rustspeak/code_3 [INFO] finished tweaking git repo https://github.com/rustspeak/code_3 [INFO] tweaked toml for git repo https://github.com/rustspeak/code_3 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/rustspeak/code_3 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" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fb7386ff7d43c9dd5b7a0e538e50357ea5b41e8800dc7540dde883bd8919fc8 [INFO] running `Command { std: "docker" "start" "-a" "2fb7386ff7d43c9dd5b7a0e538e50357ea5b41e8800dc7540dde883bd8919fc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fb7386ff7d43c9dd5b7a0e538e50357ea5b41e8800dc7540dde883bd8919fc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fb7386ff7d43c9dd5b7a0e538e50357ea5b41e8800dc7540dde883bd8919fc8", kill_on_drop: false }` [INFO] [stdout] 2fb7386ff7d43c9dd5b7a0e538e50357ea5b41e8800dc7540dde883bd8919fc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02c9260434288a6cd86e279333e072a685990d9b49f7b9ef345df84166cb20d8 [INFO] running `Command { std: "docker" "start" "-a" "02c9260434288a6cd86e279333e072a685990d9b49f7b9ef345df84166cb20d8", kill_on_drop: false }` [INFO] [stderr] Compiling code_3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the type `[{integer}]` cannot be indexed by `f64` [INFO] [stdout] --> src/main.rs:46:34 [INFO] [stdout] | [INFO] [stdout] 46 | table[i][self.capacite_max - objet.valeur ] + objet.poids, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[{integer}]>` is not implemented for `f64` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `f64` [INFO] [stdout] = note: required for `Vec<{integer}>` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `sac_a_dos` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | sac_a_dos.ajouter_objet(&objet); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 77 | let mut sac_a_dos = SacADos::nouveau_sac_a_dos(5.0); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `code_3` (bin "code_3") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "02c9260434288a6cd86e279333e072a685990d9b49f7b9ef345df84166cb20d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02c9260434288a6cd86e279333e072a685990d9b49f7b9ef345df84166cb20d8", kill_on_drop: false }` [INFO] [stdout] 02c9260434288a6cd86e279333e072a685990d9b49f7b9ef345df84166cb20d8