[INFO] cloning repository https://github.com/barisAtmn/hello-rust-101 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/barisAtmn/hello-rust-101" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbarisAtmn%2Fhello-rust-101", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbarisAtmn%2Fhello-rust-101'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b1155a9cef345489600a055f5abf880b7cdd644d [INFO] checking barisAtmn/hello-rust-101 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbarisAtmn%2Fhello-rust-101" "/workspace/builds/worker-47/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-47/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/barisAtmn/hello-rust-101 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/barisAtmn/hello-rust-101 [INFO] finished tweaking git repo https://github.com/barisAtmn/hello-rust-101 [INFO] tweaked toml for git repo https://github.com/barisAtmn/hello-rust-101 written to /workspace/builds/worker-47/source/Cargo.toml [INFO] crate git repo https://github.com/barisAtmn/hello-rust-101 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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] ae8d54359769753ac3adc2350cd46d5de53d65c4e29cdcd8cf145dbb0377f5f2 [INFO] running `Command { std: "docker" "start" "-a" "ae8d54359769753ac3adc2350cd46d5de53d65c4e29cdcd8cf145dbb0377f5f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae8d54359769753ac3adc2350cd46d5de53d65c4e29cdcd8cf145dbb0377f5f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae8d54359769753ac3adc2350cd46d5de53d65c4e29cdcd8cf145dbb0377f5f2", kill_on_drop: false }` [INFO] [stdout] ae8d54359769753ac3adc2350cd46d5de53d65c4e29cdcd8cf145dbb0377f5f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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] 8bd4d0aa7ac8ad7d5954bfeb856857a7c0192e15d364b1972f80600ea5c437a3 [INFO] running `Command { std: "docker" "start" "-a" "8bd4d0aa7ac8ad7d5954bfeb856857a7c0192e15d364b1972f80600ea5c437a3", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.87 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking hello v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/error_handling.rs (1 fix) [INFO] [stderr] Fixed src/generic_test.rs (1 fix) [INFO] [stderr] Fixed src/threads.rs (1 fix) [INFO] [stderr] Fixed src/lifetime.rs (3 fixes) [INFO] [stderr] Fixed src/enums_test.rs (6 fixes) [INFO] [stderr] Fixed src/closures.rs (2 fixes) [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | println!("Hello!"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 13 | say_hello!() [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `say_hello` [INFO] [stdout] = note: this warning originates in the macro `say_hello` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | println!("Hello!"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 13 | say_hello!() [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `say_hello` [INFO] [stdout] = note: this warning originates in the macro `say_hello` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enemy` [INFO] [stdout] --> src/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | enemy: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `life` [INFO] [stdout] --> src/traits.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | life: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/traits.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/enums_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Red` [INFO] [stdout] --> src/enums_test.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Red(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Make` [INFO] [stdout] --> src/enums_test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Make {x:String, y:String} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spawn_test` [INFO] [stdout] --> src/threads.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn spawn_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/lifetime.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `macro_test` [INFO] [stdout] --> src/macros.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn macro_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callF` should have a snake case name [INFO] [stdout] --> src/traits.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn callF() { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `call_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH5` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn errorH5() -> Result, Error> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH4` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn errorH4() -> Result { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH3` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn errorH3() -> File { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH2` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn errorH2() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / File::open("/Users/baris.ataman/Desktop/Projects/hello-rust/resources/foo").map( [INFO] [stdout] 38 | | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] 39 | | ); [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: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 38 | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH1` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn errorH1() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enemy` [INFO] [stdout] --> src/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | enemy: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn errorH() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `error_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `life` [INFO] [stdout] --> src/traits.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | life: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callErrors` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn callErrors() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `call_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/traits.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | errorH5().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | errorH4(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | errorH3().read_to_string(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/enums_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Red` [INFO] [stdout] --> src/enums_test.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Red(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Make` [INFO] [stdout] --> src/enums_test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Make {x:String, y:String} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spawn_test` [INFO] [stdout] --> src/threads.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn spawn_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/lifetime.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `macro_test` [INFO] [stdout] --> src/macros.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn macro_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callF` should have a snake case name [INFO] [stdout] --> src/traits.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn callF() { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `call_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH5` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn errorH5() -> Result, Error> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH4` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn errorH4() -> Result { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH3` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn errorH3() -> File { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH2` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn errorH2() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / File::open("/Users/baris.ataman/Desktop/Projects/hello-rust/resources/foo").map( [INFO] [stdout] 38 | | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] 39 | | ); [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: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 38 | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH1` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn errorH1() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn errorH() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `error_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callErrors` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn callErrors() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `call_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | errorH5().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | errorH4(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | errorH3().read_to_string(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.68s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking hello v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | println!("Hello!"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 13 | say_hello!() [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `say_hello` [INFO] [stdout] = note: this warning originates in the macro `say_hello` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | println!("Hello!"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 13 | say_hello!() [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `say_hello` [INFO] [stdout] = note: this warning originates in the macro `say_hello` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enemy` [INFO] [stdout] --> src/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | enemy: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `life` [INFO] [stdout] --> src/traits.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | life: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/traits.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/enums_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Red` [INFO] [stdout] --> src/enums_test.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Red(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Make` [INFO] [stdout] --> src/enums_test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Make {x:String, y:String} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spawn_test` [INFO] [stdout] --> src/threads.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn spawn_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/lifetime.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `macro_test` [INFO] [stdout] --> src/macros.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn macro_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callF` should have a snake case name [INFO] [stdout] --> src/traits.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn callF() { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `call_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH5` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn errorH5() -> Result, Error> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH4` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn errorH4() -> Result { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH3` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn errorH3() -> File { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH2` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn errorH2() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enemy` [INFO] [stdout] --> src/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | enemy: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `life` [INFO] [stdout] --> src/traits.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | life: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/traits.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/enums_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Red` [INFO] [stdout] --> src/enums_test.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Red(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Make` [INFO] [stdout] --> src/enums_test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Make {x:String, y:String} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spawn_test` [INFO] [stdout] --> src/threads.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn spawn_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/lifetime.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `macro_test` [INFO] [stdout] --> src/macros.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn macro_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callF` should have a snake case name [INFO] [stdout] --> src/traits.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn callF() { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `call_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH5` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn errorH5() -> Result, Error> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH4` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn errorH4() -> Result { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH3` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn errorH3() -> File { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH2` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn errorH2() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / File::open("/Users/baris.ataman/Desktop/Projects/hello-rust/resources/foo").map( [INFO] [stdout] 38 | | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] 39 | | ); [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: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 38 | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH1` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn errorH1() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn errorH() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `error_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callErrors` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn callErrors() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `call_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | errorH5().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | errorH4(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | errorH3().read_to_string(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / File::open("/Users/baris.ataman/Desktop/Projects/hello-rust/resources/foo").map( [INFO] [stdout] 38 | | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] 39 | | ); [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: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 38 | |mut arg| -> () { let mut buffer = String::new(); arg.read_to_string(&mut buffer); println!("{}", buffer )} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH1` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn errorH1() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `error_h1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errorH` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn errorH() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `error_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callErrors` should have a snake case name [INFO] [stdout] --> src/error_handling.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn callErrors() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `call_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | errorH5().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | errorH4(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/error_handling.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | errorH3().read_to_string(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "8bd4d0aa7ac8ad7d5954bfeb856857a7c0192e15d364b1972f80600ea5c437a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bd4d0aa7ac8ad7d5954bfeb856857a7c0192e15d364b1972f80600ea5c437a3", kill_on_drop: false }` [INFO] [stdout] 8bd4d0aa7ac8ad7d5954bfeb856857a7c0192e15d364b1972f80600ea5c437a3