[INFO] cloning repository https://github.com/lucagior22/1er_sem_2do_anio_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucagior22/1er_sem_2do_anio_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucagior22%2F1er_sem_2do_anio_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucagior22%2F1er_sem_2do_anio_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da69db3ed65b47fe206db94998d0c0b92f9318c5 [INFO] testing lucagior22/1er_sem_2do_anio_rust against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucagior22%2F1er_sem_2do_anio_rust" "/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/lucagior22/1er_sem_2do_anio_rust [INFO] finished tweaking git repo https://github.com/lucagior22/1er_sem_2do_anio_rust [INFO] tweaked toml for git repo https://github.com/lucagior22/1er_sem_2do_anio_rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucagior22/1er_sem_2do_anio_rust on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lucagior22/1er_sem_2do_anio_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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "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-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a05cfddd9cf2d5d70ee301f8cd2a8a81766bc9de2c02c1dbbbdeeb596c2cf450 [INFO] running `Command { std: "docker" "start" "-a" "a05cfddd9cf2d5d70ee301f8cd2a8a81766bc9de2c02c1dbbbdeeb596c2cf450", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a05cfddd9cf2d5d70ee301f8cd2a8a81766bc9de2c02c1dbbbdeeb596c2cf450", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a05cfddd9cf2d5d70ee301f8cd2a8a81766bc9de2c02c1dbbbdeeb596c2cf450", kill_on_drop: false }` [INFO] [stdout] a05cfddd9cf2d5d70ee301f8cd2a8a81766bc9de2c02c1dbbbdeeb596c2cf450 [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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d147f3f05f4f407f0e56c4ce0740521bede03346f618cb2268ec205b97ad5e7 [INFO] running `Command { std: "docker" "start" "-a" "5d147f3f05f4f407f0e56c4ce0740521bede03346f618cb2268ec205b97ad5e7", kill_on_drop: false }` [INFO] [stderr] Compiling main v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/biblioteca.rs:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | for mut i in &mut self.libros_disponibles{ [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: variable does not need to be mutable [INFO] [stdout] --> src/biblioteca.rs:323:20 [INFO] [stdout] | [INFO] [stdout] 323 | let mut p = Prestamo{ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/biblioteca.rs:373:17 [INFO] [stdout] | [INFO] [stdout] 373 | for mut i in &mut self.prestamos{ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/concesionario.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/concesionario.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let mut index: usize = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encontre` [INFO] [stdout] --> src/concesionario.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut encontre = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encontre` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let mut index: usize = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut encontre = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | for mut i in &mut self.autos{ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut a1 : Auto = Auto::new("Bmw".to_string(), "m3".to_string(), 2010, 15000.0, Color::Amarillo); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let mut a2 : Auto = Auto::new("Audi".to_string(), "R8".to_string(), 2017, 40000.0, Color::Negro); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let mut a3 : Auto = Auto::new("Ford".to_string(), "Fiesta".to_string(), 2005, 10000.0, Color::Rojo); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let mut a4 : Auto = Auto::new("Fiat".to_string(), "Uno".to_string(), 1999, 8000.0, Color::Azul); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let mut a5 : Auto = Auto::new("Dodge".to_string(), "Ram".to_string(), 2020, 17000.0, Color::Verde); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concesionario.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let mut a6 : Auto = Auto::new("Bmw".to_string(), "m4".to_string(), 2023, 25000.0, Color::Negro); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.calificaciones` which is behind a shared reference [INFO] [stdout] --> src/estudiante.rs:51:22 [INFO] [stdout] | [INFO] [stdout] 51 | for i in self.calificaciones{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `self.calificaciones` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because `self.calificaciones` has type `VecDeque`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `self.calificaciones` [INFO] [stdout] --> /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] help: consider iterating over a slice of the `VecDeque`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 51 | for i in &self.calificaciones{ [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.calificaciones` which is behind a shared reference [INFO] [stdout] --> src/estudiante.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | for i in self.calificaciones{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `self.calificaciones` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because `self.calificaciones` has type `VecDeque`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `self.calificaciones` [INFO] [stdout] --> /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] help: consider iterating over a slice of the `VecDeque`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 63 | for i in &self.calificaciones{ [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `main` (bin "main") due to 2 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5d147f3f05f4f407f0e56c4ce0740521bede03346f618cb2268ec205b97ad5e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d147f3f05f4f407f0e56c4ce0740521bede03346f618cb2268ec205b97ad5e7", kill_on_drop: false }` [INFO] [stdout] 5d147f3f05f4f407f0e56c4ce0740521bede03346f618cb2268ec205b97ad5e7