[INFO] cloning repository https://github.com/KyMann/RustTutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KyMann/RustTutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKyMann%2FRustTutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKyMann%2FRustTutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 123d353407874982aea91f372530e5114954b967 [INFO] checking KyMann/RustTutorial/123d353407874982aea91f372530e5114954b967 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKyMann%2FRustTutorial" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KyMann/RustTutorial on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KyMann/RustTutorial [INFO] finished tweaking git repo https://github.com/KyMann/RustTutorial [INFO] tweaked toml for git repo https://github.com/KyMann/RustTutorial written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KyMann/RustTutorial already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] abb438d9e9e6ccaddc533c99a787c970e873202688c1504d0dce0417f26a255d [INFO] running `Command { std: "docker" "start" "-a" "abb438d9e9e6ccaddc533c99a787c970e873202688c1504d0dce0417f26a255d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "abb438d9e9e6ccaddc533c99a787c970e873202688c1504d0dce0417f26a255d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abb438d9e9e6ccaddc533c99a787c970e873202688c1504d0dce0417f26a255d", kill_on_drop: false }` [INFO] [stdout] abb438d9e9e6ccaddc533c99a787c970e873202688c1504d0dce0417f26a255d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a9392bb648f97a118b57c13b3577439c8c3a70cf2a0017cc77e5d78fba0a438 [INFO] running `Command { std: "docker" "start" "-a" "6a9392bb648f97a118b57c13b3577439c8c3a70cf2a0017cc77e5d78fba0a438", kill_on_drop: false }` [INFO] [stderr] Checking hello-world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `,`, found `g` [INFO] [stdout] --> src/main.rs:224:19 [INFO] [stdout] | [INFO] [stdout] 224 | println!(r {} g {}, b {}, my_red, my_green, my_blue); [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,`, found `g` [INFO] [stdout] --> src/main.rs:224:19 [INFO] [stdout] | [INFO] [stdout] 224 | println!(r {} g {}, b {}, my_red, my_green, my_blue); [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let some_data: bool = true; //or false [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `implied_data` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let implied_data = false; //Rust assumes you want a boolean [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_implied_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_data` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut mutable_data = true; //this is the flag for mutable data [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_pos_integer` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let a_pos_integer: u8 = 10; //from 0 to 255 //u stand for unsigned [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_pos_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_data` [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let big_data: i128 = 10; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_isize` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let some_isize: isize = 10; //depends on if the computer is 32 or 64 bit [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_isize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_usize` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let some_usize: usize = 10; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_float` [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let a_float: f32 = 10.; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_float` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let another_float: f64 = 10.; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let some_char: char = 'a'; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut mutable_data = true; //this is the flag for mutable data [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let some_data: bool = true; //or false [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str` [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let string_from_str: String = example_string.to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `implied_data` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let implied_data = false; //Rust assumes you want a boolean [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_implied_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str2` [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let string_from_str2: String = "Some_hardcoded_string".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_data` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut mutable_data = true; //this is the flag for mutable data [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_hardcoded` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let string_from_hardcoded = String::from("Some hardcoded"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_hardcoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_pos_integer` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let a_pos_integer: u8 = 10; //from 0 to 255 //u stand for unsigned [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_pos_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str_var` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let string_from_str_var = String::from(example_slice); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_data` [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let big_data: i128 = 10; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_from_string` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let str_from_string: &str = &example_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_from_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_isize` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let some_isize: isize = 10; //depends on if the computer is 32 or 64 bit [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_isize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_string_literals` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let combine_string_literals = ["first", "second"].concat(); //bumps it to a String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_string_literals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_usize` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let some_usize: usize = 10; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_with_macro` [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let combine_with_macro = format!("{} {}", "first", "second"); //also givesa String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_with_macro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_float` [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let a_float: f32 = 10.; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_plus_str` [INFO] [stdout] --> src/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let string_plus_str = example_string + example_slice; //only works with the string first [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_plus_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_float` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let another_float: f64 = 10.; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bombined` [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let bombined = a + &b + &mut_string; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bombined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_substring` [INFO] [stdout] --> src/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let string_from_substring: &str = &example_string[..2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_substring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let some_char: char = 'a'; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_substring` [INFO] [stdout] --> src/main.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let string_from_substring: &str = &example_string[..=2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_substring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut mutable_data = true; //this is the flag for mutable data [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str` [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let string_from_str: String = example_string.to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str2` [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let string_from_str2: String = "Some_hardcoded_string".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_hardcoded` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let string_from_hardcoded = String::from("Some hardcoded"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_hardcoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str_var` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let string_from_str_var = String::from(example_slice); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_from_string` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let str_from_string: &str = &example_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_from_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_string_literals` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let combine_string_literals = ["first", "second"].concat(); //bumps it to a String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_string_literals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_with_macro` [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let combine_with_macro = format!("{} {}", "first", "second"); //also givesa String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_with_macro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_plus_str` [INFO] [stdout] --> src/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let string_plus_str = example_string + example_slice; //only works with the string first [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_plus_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bombined` [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let bombined = a + &b + &mut_string; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bombined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_substring` [INFO] [stdout] --> src/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let string_from_substring: &str = &example_string[..2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_substring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_substring` [INFO] [stdout] --> src/main.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let string_from_substring: &str = &example_string[..=2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_substring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `example_string` [INFO] [stdout] --> src/main.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 63 | let example_string: String = String::from("Partner"); [INFO] [stdout] | -------------- move occurs because `example_string` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 90 | let string_plus_str = example_string + example_slice; //only works with the string first [INFO] [stdout] | ------------------------------ `example_string` moved due to usage in operator [INFO] [stdout] ... [INFO] [stdout] 94 | mut_string.push_str(&example_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:91:12 [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 90 | let string_plus_str = example_string.clone() + example_slice; //only works with the string first [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `example_string` [INFO] [stdout] --> src/main.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 63 | let example_string: String = String::from("Partner"); [INFO] [stdout] | -------------- move occurs because `example_string` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 90 | let string_plus_str = example_string + example_slice; //only works with the string first [INFO] [stdout] | ------------------------------ `example_string` moved due to usage in operator [INFO] [stdout] ... [INFO] [stdout] 94 | mut_string.push_str(&example_string); [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:91:12 [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 90 | let string_plus_str = example_string.clone() + example_slice; //only works with the string first [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_inline` [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let var_from_inline = if some_int == 9 { 300 } else if some_int == 10 { 100 } else { 400 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_inline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_inline2` [INFO] [stdout] --> src/main.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | let var_from_inline2 = if some_int == 9 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_inline2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_match` [INFO] [stdout] --> src/main.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let var_from_match = match some_bool {true => 10, false => 20}; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_match` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_match2` [INFO] [stdout] --> src/main.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | let var_from_match2 = match some_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_match2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dougs_var_2` [INFO] [stdout] --> src/main.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | let dougs_var_2 = KylesData { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dougs_var_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_inline` [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let var_from_inline = if some_int == 9 { 300 } else if some_int == 10 { 100 } else { 400 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_inline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyles_var` [INFO] [stdout] --> src/main.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let mut kyles_var = KylesData { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyles_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_inline2` [INFO] [stdout] --> src/main.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | let var_from_inline2 = if some_int == 9 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_inline2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_match` [INFO] [stdout] --> src/main.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let var_from_match = match some_bool {true => 10, false => 20}; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_match` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_this_smaller` [INFO] [stdout] --> src/main.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | let is_this_smaller = random_info_var.is_smaller(9); //dot operator if using self, instance method, use . [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_this_smaller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_from_match2` [INFO] [stdout] --> src/main.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | let var_from_match2 = match some_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_from_match2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | let mut kyles_var = KylesData { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dougs_var_2` [INFO] [stdout] --> src/main.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | let dougs_var_2 = KylesData { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dougs_var_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyles_var` [INFO] [stdout] --> src/main.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let mut kyles_var = KylesData { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyles_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_this_smaller` [INFO] [stdout] --> src/main.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | let is_this_smaller = random_info_var.is_smaller(9); //dot operator if using self, instance method, use . [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_this_smaller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | let mut kyles_var = KylesData { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-world` (bin "hello-world") due to 3 previous errors; 30 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hello-world` (bin "hello-world" test) due to 3 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6a9392bb648f97a118b57c13b3577439c8c3a70cf2a0017cc77e5d78fba0a438", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a9392bb648f97a118b57c13b3577439c8c3a70cf2a0017cc77e5d78fba0a438", kill_on_drop: false }` [INFO] [stdout] 6a9392bb648f97a118b57c13b3577439c8c3a70cf2a0017cc77e5d78fba0a438