[INFO] updating cached repository https://github.com/1000VICKY/ishell_in_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] [stderr] From https://github.com/1000VICKY/ishell_in_Rust [INFO] [stderr] a30e75c..27628bf master -> master [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 27628bfd723060b29a8397dc7b47ead1da882ec1 [INFO] checking 1000VICKY/ishell_in_Rust against try#85cc1486e1f000dce4bb8e1b3cfab2b654b102a8 for pr-73323 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1000VICKY%2Fishell_in_Rust" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/1000VICKY/ishell_in_Rust on toolchain 85cc1486e1f000dce4bb8e1b3cfab2b654b102a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/1000VICKY/ishell_in_Rust [INFO] finished tweaking git repo https://github.com/1000VICKY/ishell_in_Rust [INFO] tweaked toml for git repo https://github.com/1000VICKY/ishell_in_Rust written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/1000VICKY/ishell_in_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e21439edfe76c9609e8390e6ddb002556b7f1c22ab12d9ca6ff66f7f7c965df [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4e21439edfe76c9609e8390e6ddb002556b7f1c22ab12d9ca6ff66f7f7c965df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e21439edfe76c9609e8390e6ddb002556b7f1c22ab12d9ca6ff66f7f7c965df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e21439edfe76c9609e8390e6ddb002556b7f1c22ab12d9ca6ff66f7f7c965df", kill_on_drop: false }` [INFO] [stdout] 4e21439edfe76c9609e8390e6ddb002556b7f1c22ab12d9ca6ff66f7f7c965df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8e838d748c4a53c8732cbdbc3d7d5e61701b121f336c94d52bab30d1e74a6cd5 [INFO] running `Command { std: "docker" "start" "-a" "8e838d748c4a53c8732cbdbc3d7d5e61701b121f336c94d52bab30d1e74a6cd5", kill_on_drop: false }` [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking cty v0.2.1 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking printf-rs v0.1.1 [INFO] [stderr] Checking nix v0.17.0 [INFO] [stderr] Checking cstr_core v0.2.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling printf v0.1.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking ctrlc v3.1.4 [INFO] [stderr] Checking rust_ishell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Output` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Output, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | CString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | CStr [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_int`, `c_void` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | c_void [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `printf::printf` [INFO] [stdout] --> src/echo.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use printf::printf; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/echo.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if (to_print.is_ok() == true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/echo.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | if (temporary_u == 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | while true [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (EXIT_STRING.to_string() == input) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | } else if (CLEAR_STRING.to_string() == input ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | if (response.is_ok() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | } else if (DEL_STRING.to_string() == input) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:202:16 [INFO] [stdout] | [INFO] [stdout] 202 | if (remove_target_file(&validate_file_path) != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | if (remove_target_file(&validate_file_path) != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | if (input.len() == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 287 | if (written_bytes.is_ok() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:302:16 [INFO] [stdout] | [INFO] [stdout] 302 | if (inner_value == 0 ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:306:16 [INFO] [stdout] | [INFO] [stdout] 306 | if (previous_newline_count <= current_newline_count) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:314:16 [INFO] [stdout] | [INFO] [stdout] 314 | if (inner_value == 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:353:8 [INFO] [stdout] | [INFO] [stdout] 353 | if (new_file.is_ok() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 370 | if (target_path.exists() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 383 | if (needle == *value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:384:20 [INFO] [stdout] | [INFO] [stdout] 384 | return (index as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:394:8 [INFO] [stdout] | [INFO] [stdout] 394 | if (newline_string.len() == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:402:16 [INFO] [stdout] | [INFO] [stdout] 402 | if (_bytes[_bytes.len() -1] == 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:405:16 [INFO] [stdout] | [INFO] [stdout] 405 | if (_bytes[_bytes.len() - 1] == 13) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 414 | if (response.is_ok() == true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Output` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Output, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | CString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | CStr [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_int`, `c_void` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | c_void [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `printf::printf` [INFO] [stdout] --> src/echo.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use printf::printf; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/echo.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if (to_print.is_ok() == true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/echo.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | if (temporary_u == 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | while true [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (EXIT_STRING.to_string() == input) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | } else if (CLEAR_STRING.to_string() == input ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | if (response.is_ok() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | } else if (DEL_STRING.to_string() == input) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:202:16 [INFO] [stdout] | [INFO] [stdout] 202 | if (remove_target_file(&validate_file_path) != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | if (remove_target_file(&validate_file_path) != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | if (input.len() == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 287 | if (written_bytes.is_ok() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:302:16 [INFO] [stdout] | [INFO] [stdout] 302 | if (inner_value == 0 ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:306:16 [INFO] [stdout] | [INFO] [stdout] 306 | if (previous_newline_count <= current_newline_count) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:314:16 [INFO] [stdout] | [INFO] [stdout] 314 | if (inner_value == 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:353:8 [INFO] [stdout] | [INFO] [stdout] 353 | if (new_file.is_ok() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 370 | if (target_path.exists() != true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 383 | if (needle == *value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:384:20 [INFO] [stdout] | [INFO] [stdout] 384 | return (index as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:394:8 [INFO] [stdout] | [INFO] [stdout] 394 | if (newline_string.len() == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:402:16 [INFO] [stdout] | [INFO] [stdout] 402 | if (_bytes[_bytes.len() -1] == 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:405:16 [INFO] [stdout] | [INFO] [stdout] 405 | if (_bytes[_bytes.len() - 1] == 13) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 414 | if (response.is_ok() == true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `execute_file` is never read [INFO] [stdout] --> src/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut execute_file : std::fs::File = create_new_file( &execute_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `written_bytes` is never read [INFO] [stdout] --> src/main.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | written_bytes = validate_file.write_all(temp_file.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_length` [INFO] [stdout] --> src/echo.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let target_length : usize = target.len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/echo.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let input : String; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `execute_file` is never read [INFO] [stdout] --> src/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut execute_file : std::fs::File = create_new_file( &execute_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `written_bytes` is never read [INFO] [stdout] --> src/main.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | written_bytes = validate_file.write_all(temp_file.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_length` [INFO] [stdout] --> src/echo.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let target_length : usize = target.len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/echo.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let input : String; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `echo` [INFO] [stdout] --> src/echo.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn echo (target : &String ) -> () [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print` [INFO] [stdout] --> src/echo.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn print(target: &str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump` [INFO] [stdout] --> src/echo.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn dump(target: T) -> () where T : std::fmt::Debug { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_c_string` [INFO] [stdout] --> src/echo.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn print_c_string(output :Vec) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printf_c_string` [INFO] [stdout] --> src/echo.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn printf_c_string(output: Vec) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_file_resource` [INFO] [stdout] --> src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_file_resource (path: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `putchar` [INFO] [stdout] --> src/main.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | fn putchar(s: c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 95 | fn printf(format: *const c_char, args: c_char) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] = note: expected `unsafe extern "C" fn(*const i8, *mut i8) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(*const i8, i8) -> i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 130 | fn printf(format: *const c_char, args: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(*const i8, *mut i8) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(*const i8, *mut std::ffi::c_void) -> i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | validate_file.write_all(initialize_input.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `echo` [INFO] [stdout] --> src/echo.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn echo (target : &String ) -> () [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print` [INFO] [stdout] --> src/echo.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn print(target: &str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump` [INFO] [stdout] --> src/echo.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn dump(target: T) -> () where T : std::fmt::Debug { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_c_string` [INFO] [stdout] --> src/echo.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn print_c_string(output :Vec) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printf_c_string` [INFO] [stdout] --> src/echo.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn printf_c_string(output: Vec) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_file_resource` [INFO] [stdout] --> src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_file_resource (path: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `putchar` [INFO] [stdout] --> src/main.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | fn putchar(s: c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 95 | fn printf(format: *const c_char, args: c_char) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] = note: expected `unsafe extern "C" fn(*const i8, *mut i8) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(*const i8, i8) -> i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 130 | fn printf(format: *const c_char, args: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(*const i8, *mut i8) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(*const i8, *mut std::ffi::c_void) -> i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | validate_file.write_all(initialize_input.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.75s [INFO] running `Command { std: "docker" "inspect" "8e838d748c4a53c8732cbdbc3d7d5e61701b121f336c94d52bab30d1e74a6cd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e838d748c4a53c8732cbdbc3d7d5e61701b121f336c94d52bab30d1e74a6cd5", kill_on_drop: false }` [INFO] [stdout] 8e838d748c4a53c8732cbdbc3d7d5e61701b121f336c94d52bab30d1e74a6cd5