[INFO] cloning repository https://github.com/Karin-Zuniga/veterinaria [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Karin-Zuniga/veterinaria" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarin-Zuniga%2Fveterinaria", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarin-Zuniga%2Fveterinaria'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e3ec28dab3b27bb5501342da261ee4c710d9641a [INFO] building Karin-Zuniga/veterinaria against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarin-Zuniga%2Fveterinaria" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Karin-Zuniga/veterinaria on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Karin-Zuniga/veterinaria [INFO] finished tweaking git repo https://github.com/Karin-Zuniga/veterinaria [INFO] tweaked toml for git repo https://github.com/Karin-Zuniga/veterinaria written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Karin-Zuniga/veterinaria 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 318df14ce6a6664e694718672067ce5d8692ada2a1eae243a575f94d68fea45a [INFO] running `Command { std: "docker" "start" "-a" "318df14ce6a6664e694718672067ce5d8692ada2a1eae243a575f94d68fea45a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "318df14ce6a6664e694718672067ce5d8692ada2a1eae243a575f94d68fea45a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "318df14ce6a6664e694718672067ce5d8692ada2a1eae243a575f94d68fea45a", kill_on_drop: false }` [INFO] [stdout] 318df14ce6a6664e694718672067ce5d8692ada2a1eae243a575f94d68fea45a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9514fae0124f99aacaea71395a402c52adee5b0baef896f48aa0be7324df7a0b [INFO] running `Command { std: "docker" "start" "-a" "9514fae0124f99aacaea71395a402c52adee5b0baef896f48aa0be7324df7a0b", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling veterinaria v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut file = OpenOptions::new() [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/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut treatment = Treatment { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_content` [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let new_content = update(&name_to_find, path); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_content` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_content` [INFO] [stdout] --> src/main.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let new_content = delete(&name_to_find, path); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:155:21 [INFO] [stdout] | [INFO] [stdout] 155 | let mut field_to_edit = loop { [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/main.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 156 | let mut field_to_edit = formulas::ingreso_numeros(); [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/main.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | let mut fields: Vec<&str> = line.split(',').collect(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_entry` [INFO] [stdout] --> src/main.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | let mut new_entry = create(&file_path); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `find_pet` [INFO] [stdout] --> src/main.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | let mut find_pet = read(&file_path); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_pet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_entry` [INFO] [stdout] --> src/main.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let new_entry = add_line(&file_path); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut new_entry = create(&file_path); [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/main.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let mut find_pet = read(&file_path); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `razon` is never used [INFO] [stdout] --> src/formulas.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn razon(total:f32, sintoma: f32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cambio_a_numero` is never used [INFO] [stdout] --> src/formulas.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn cambio_a_numero(texto: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cambio_a_entero` is never used [INFO] [stdout] --> src/formulas.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn cambio_a_entero(texto: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sacar_porcentaje` is never used [INFO] [stdout] --> src/formulas.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn sacar_porcentaje(total: f32, numero: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encontrar_mayor` is never used [INFO] [stdout] --> src/formulas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn encontrar_mayor(arreglo: [f32;8]) -> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pregunta` is never used [INFO] [stdout] --> src/formulas.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn pregunta(palabra: String) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.96s [INFO] running `Command { std: "docker" "inspect" "9514fae0124f99aacaea71395a402c52adee5b0baef896f48aa0be7324df7a0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9514fae0124f99aacaea71395a402c52adee5b0baef896f48aa0be7324df7a0b", kill_on_drop: false }` [INFO] [stdout] 9514fae0124f99aacaea71395a402c52adee5b0baef896f48aa0be7324df7a0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa39205fb6b1a3957af3ff641935456d56bb53b8bc08074c09303617568e4e0e [INFO] running `Command { std: "docker" "start" "-a" "fa39205fb6b1a3957af3ff641935456d56bb53b8bc08074c09303617568e4e0e", kill_on_drop: false }` [INFO] [stderr] Compiling veterinaria v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut file = OpenOptions::new() [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/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut treatment = Treatment { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_content` [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let new_content = update(&name_to_find, path); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_content` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_content` [INFO] [stdout] --> src/main.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let new_content = delete(&name_to_find, path); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:155:21 [INFO] [stdout] | [INFO] [stdout] 155 | let mut field_to_edit = loop { [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/main.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 156 | let mut field_to_edit = formulas::ingreso_numeros(); [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/main.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | let mut fields: Vec<&str> = line.split(',').collect(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_entry` [INFO] [stdout] --> src/main.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | let mut new_entry = create(&file_path); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `find_pet` [INFO] [stdout] --> src/main.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | let mut find_pet = read(&file_path); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_pet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_entry` [INFO] [stdout] --> src/main.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let new_entry = add_line(&file_path); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut new_entry = create(&file_path); [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/main.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let mut find_pet = read(&file_path); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `razon` is never used [INFO] [stdout] --> src/formulas.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn razon(total:f32, sintoma: f32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cambio_a_numero` is never used [INFO] [stdout] --> src/formulas.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn cambio_a_numero(texto: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cambio_a_entero` is never used [INFO] [stdout] --> src/formulas.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn cambio_a_entero(texto: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sacar_porcentaje` is never used [INFO] [stdout] --> src/formulas.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn sacar_porcentaje(total: f32, numero: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encontrar_mayor` is never used [INFO] [stdout] --> src/formulas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn encontrar_mayor(arreglo: [f32;8]) -> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pregunta` is never used [INFO] [stdout] --> src/formulas.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn pregunta(palabra: String) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "fa39205fb6b1a3957af3ff641935456d56bb53b8bc08074c09303617568e4e0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa39205fb6b1a3957af3ff641935456d56bb53b8bc08074c09303617568e4e0e", kill_on_drop: false }` [INFO] [stdout] fa39205fb6b1a3957af3ff641935456d56bb53b8bc08074c09303617568e4e0e