[INFO] cloning 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" "clone" "--bare" "https://github.com/1000VICKY/ishell_in_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1000VICKY%2Fishell_in_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1000VICKY%2Fishell_in_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 048da41d5e58d955fa14e649fa95f9e9a1d5244c [INFO] checking 1000VICKY/ishell_in_Rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1000VICKY%2Fishell_in_Rust" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/1000VICKY/ishell_in_Rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-7/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded printf-rs v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f384b83cf2592c5db0a985318c264620490c827bb05099b12ee2744f3fe13bba [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" "f384b83cf2592c5db0a985318c264620490c827bb05099b12ee2744f3fe13bba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f384b83cf2592c5db0a985318c264620490c827bb05099b12ee2744f3fe13bba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f384b83cf2592c5db0a985318c264620490c827bb05099b12ee2744f3fe13bba", kill_on_drop: false }` [INFO] [stdout] f384b83cf2592c5db0a985318c264620490c827bb05099b12ee2744f3fe13bba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11fceedee9b56ec3ffdfd19a256394009bab7141e2f297cae4eec76f84063b1d [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" "11fceedee9b56ec3ffdfd19a256394009bab7141e2f297cae4eec76f84063b1d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Checking cty v0.2.1 [INFO] [stderr] Checking cstr_core v0.2.0 [INFO] [stderr] Compiling printf v0.1.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking printf-rs v0.1.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking ctrlc v3.1.4 [INFO] [stderr] Checking rust_ishell v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (25 fixes) [INFO] [stderr] Fixed src/echo.rs (8 fixes) [INFO] [stdout] warning: value assigned to `execute_file` is never read [INFO] [stdout] --> src/main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | 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:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | 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: value assigned to `execute_file` is never read [INFO] [stdout] --> src/main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | 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:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | 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: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [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 ) -> usize [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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn print(target: &str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump` [INFO] [stdout] --> src/echo.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | 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:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | 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 <'a> (path: &'a 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: function is never used: `first_word` [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/echo.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 53 | puts(to_print.unwrap().as_ptr()); [INFO] [stdout] | ----------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 99 | 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:134:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 134 | 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 `Result` that must be used [INFO] [stdout] --> src/main.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | 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: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [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 ) -> usize [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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn print(target: &str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump` [INFO] [stdout] --> src/echo.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | 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:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | 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 <'a> (path: &'a 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: function is never used: `first_word` [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/echo.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 53 | puts(to_print.unwrap().as_ptr()); [INFO] [stdout] | ----------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 99 | 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:134:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 134 | 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 `Result` that must be used [INFO] [stdout] --> src/main.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | 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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.71s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking rust_ishell v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: value assigned to `execute_file` is never read [INFO] [stdout] --> src/main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | 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:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | 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: value assigned to `execute_file` is never read [INFO] [stdout] --> src/main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | 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:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | 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: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [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 ) -> usize [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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn print(target: &str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump` [INFO] [stdout] --> src/echo.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | 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:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn printf_c_string(output: Vec) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [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 <'a> (path: &'a 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: function is never used: `first_word` [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [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 ) -> usize [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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn print(target: &str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump` [INFO] [stdout] --> src/echo.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | 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:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | 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 <'a> (path: &'a 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/echo.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 53 | puts(to_print.unwrap().as_ptr()); [INFO] [stdout] | ----------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word` [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 99 | 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/echo.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 53 | puts(to_print.unwrap().as_ptr()); [INFO] [stdout] | ----------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 99 | 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:134:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 134 | 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 `Result` that must be used [INFO] [stdout] --> src/main.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | 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: `printf` redeclared with a different signature [INFO] [stdout] --> src/echo.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 66 | fn printf(format: *const c_char, args: *mut c_char) -> c_int; [INFO] [stdout] | ------------------------------------------------------------- `printf` previously declared here [INFO] [stdout] ... [INFO] [stdout] 134 | 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 `Result` that must be used [INFO] [stdout] --> src/main.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | 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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "11fceedee9b56ec3ffdfd19a256394009bab7141e2f297cae4eec76f84063b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11fceedee9b56ec3ffdfd19a256394009bab7141e2f297cae4eec76f84063b1d", kill_on_drop: false }` [INFO] [stdout] 11fceedee9b56ec3ffdfd19a256394009bab7141e2f297cae4eec76f84063b1d