[INFO] cloning repository https://github.com/Kumokage/rustlings-for-hse [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kumokage/rustlings-for-hse" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKumokage%2Frustlings-for-hse", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKumokage%2Frustlings-for-hse'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 52a99b06ba231ce3b3623c7aa3758c5633fc461c [INFO] checking Kumokage/rustlings-for-hse against try#54e27f559f23913c1d5afb1a0f0114e9e61b81b8 for pr-147589 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKumokage%2Frustlings-for-hse" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 72% (1033/1418) Updating files: 73% (1036/1418) Updating files: 74% (1050/1418) Updating files: 75% (1064/1418) Updating files: 76% (1078/1418) Updating files: 77% (1092/1418) Updating files: 78% (1107/1418) Updating files: 79% (1121/1418) Updating files: 80% (1135/1418) Updating files: 81% (1149/1418) Updating files: 82% (1163/1418) Updating files: 83% (1177/1418) Updating files: 84% (1192/1418) Updating files: 85% (1206/1418) Updating files: 86% (1220/1418) Updating files: 87% (1234/1418) Updating files: 88% (1248/1418) Updating files: 89% (1263/1418) Updating files: 90% (1277/1418) Updating files: 91% (1291/1418) Updating files: 92% (1305/1418) Updating files: 93% (1319/1418) Updating files: 94% (1333/1418) Updating files: 95% (1348/1418) Updating files: 96% (1362/1418) Updating files: 97% (1376/1418) Updating files: 98% (1390/1418) Updating files: 99% (1404/1418) Updating files: 100% (1418/1418) Updating files: 100% (1418/1418), done. [INFO] started tweaking git repo https://github.com/Kumokage/rustlings-for-hse [INFO] finished tweaking git repo https://github.com/Kumokage/rustlings-for-hse [INFO] tweaked toml for git repo https://github.com/Kumokage/rustlings-for-hse written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kumokage/rustlings-for-hse on toolchain 54e27f559f23913c1d5afb1a0f0114e9e61b81b8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kumokage/rustlings-for-hse 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" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 98244e4bdf9bea7b9c03b9d488390ac2f94e77f8d86a4e0cb062ad154c26c4f2 [INFO] running `Command { std: "docker" "start" "-a" "98244e4bdf9bea7b9c03b9d488390ac2f94e77f8d86a4e0cb062ad154c26c4f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "98244e4bdf9bea7b9c03b9d488390ac2f94e77f8d86a4e0cb062ad154c26c4f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98244e4bdf9bea7b9c03b9d488390ac2f94e77f8d86a4e0cb062ad154c26c4f2", kill_on_drop: false }` [INFO] [stdout] 98244e4bdf9bea7b9c03b9d488390ac2f94e77f8d86a4e0cb062ad154c26c4f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cae0e8ab37544b841ab6700a404af5387225e39d0dc95431eb4bdde5b9493d0 [INFO] running `Command { std: "docker" "start" "-a" "2cae0e8ab37544b841ab6700a404af5387225e39d0dc95431eb4bdde5b9493d0", kill_on_drop: false }` [INFO] [stderr] Checking exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes3.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | author: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ struct Book<'a> { [INFO] [stdout] 5 ~ author: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes3.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | title: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ struct Book<'a> { [INFO] [stdout] 5 | author: &str, [INFO] [stdout] 6 ~ title: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "lifetimes3") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find value `basket` in this scope [INFO] [stdout] --> exercises/11_hashmaps/hashmaps1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | basket.insert(String::from("banana"), 2); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `basket` in this scope [INFO] [stdout] --> exercises/11_hashmaps/hashmaps1.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | basket [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `my_macro` in this scope [INFO] [stdout] --> exercises/21_macros/macros2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | my_macro!(); [INFO] [stdout] | ^^^^^^^^ consider moving the definition of `my_macro` before this call [INFO] [stdout] | [INFO] [stdout] note: a macro with the same name exists, but it appears later [INFO] [stdout] --> exercises/21_macros/macros2.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | macro_rules! my_macro { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `my_macro` [INFO] [stdout] --> exercises/21_macros/macros2.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | macro_rules! my_macro { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "macros2") due to 1 previous error; 1 warning emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | placeholder("blue"); [INFO] [stdout] | ^^^^^^^^^^^ ------ unexpected argument of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 16 - placeholder("blue"); [INFO] [stdout] 16 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string2` does not live long enough [INFO] [stdout] --> exercises/16_lifetimes/lifetimes2.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 16 | let string2 = String::from("xyz"); [INFO] [stdout] | ------- binding `string2` declared here [INFO] [stdout] 17 | result = longest(&string1, &string2); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 18 | } [INFO] [stdout] | - `string2` dropped here while still borrowed [INFO] [stdout] 19 | println!("The longest string is '{result}'"); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes3.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | author: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ struct Book<'a> { [INFO] [stdout] 5 ~ author: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes3.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | title: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ struct Book<'a> { [INFO] [stdout] 5 | author: &str, [INFO] [stdout] 6 ~ title: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | placeholder("red".to_string()); [INFO] [stdout] | ^^^^^^^^^^^ ----------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 18 - placeholder("red".to_string()); [INFO] [stdout] 18 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | placeholder(String::from("hi")); [INFO] [stdout] | ^^^^^^^^^^^ ------------------ unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 20 - placeholder(String::from("hi")); [INFO] [stdout] 20 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | placeholder("rust is fun!".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 22 - placeholder("rust is fun!".to_owned()); [INFO] [stdout] 22 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_1_name` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let team_1_name = split_iterator.next().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_2_name` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let team_2_name = split_iterator.next().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_1_score` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let team_1_score: u8 = split_iterator.next().unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | placeholder("nice weather".into()); [INFO] [stdout] | ^^^^^^^^^^^ --------------------- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 24 - placeholder("nice weather".into()); [INFO] [stdout] 24 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_2_score` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let team_2_score: u8 = split_iterator.next().unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | placeholder(format!("Interpolation {}", "Station")); [INFO] [stdout] | ^^^^^^^^^^^ -------------------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 26 - placeholder(format!("Interpolation {}", "Station")); [INFO] [stdout] 26 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | placeholder(&String::from("abc")[0..1]); [INFO] [stdout] | ^^^^^^^^^^^ -------------------------- unexpected argument of type `&str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 30 - placeholder(&String::from("abc")[0..1]); [INFO] [stdout] 30 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | placeholder(" hello there ".trim()); [INFO] [stdout] | ^^^^^^^^^^^ ----------------------- unexpected argument of type `&str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 32 - placeholder(" hello there ".trim()); [INFO] [stdout] 32 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | placeholder("Happy Monday!".replace("Mon", "Tues")); [INFO] [stdout] | ^^^^^^^^^^^ -------------------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 34 - placeholder("Happy Monday!".replace("Mon", "Tues")); [INFO] [stdout] 34 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | placeholder("mY sHiFt KeY iS sTiCkY".to_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^ --------------------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 36 - placeholder("mY sHiFt KeY iS sTiCkY".to_lowercase()); [INFO] [stdout] 36 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut scores = HashMap::<&str, TeamScores>::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "hashmaps1") due to 2 previous errors [INFO] [stderr] error: could not compile `exercises` (bin "lifetimes2") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "lifetimes3" test) due to 2 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/06_move_semantics/move_semantics5.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | fn string_uppercase(mut data: &String) { [INFO] [stdout] | ------- expected due to this parameter type [INFO] [stdout] 13 | data = data.to_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `&String`, found `String` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to mutate the pointed at value being passed in, instead of changing the reference in the local binding [INFO] [stdout] | [INFO] [stdout] 12 ~ fn string_uppercase(data: &mut String) { [INFO] [stdout] 13 ~ *data = data.to_uppercase(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "strings4") due to 10 previous errors [INFO] [stdout] error[E0382]: borrow of moved value: `data` [INFO] [stdout] --> exercises/06_move_semantics/move_semantics5.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 19 | let data = "Rust is great!".to_string(); [INFO] [stdout] | ---- move occurs because `data` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 20 | [INFO] [stdout] 21 | get_char(data); [INFO] [stdout] | ---- value moved here [INFO] [stdout] 22 | [INFO] [stdout] 23 | string_uppercase(&data); [INFO] [stdout] | ^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `get_char` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> exercises/06_move_semantics/move_semantics5.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_char(data: String) -> char { [INFO] [stdout] | -------- ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 21 | get_char(data.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "move_semantics5") due to 2 previous errors [INFO] [stdout] error[E0599]: no variant or associated item named `Resize` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Resize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 7 | println!("{:?}", Message::Resize); [INFO] [stdout] | ^^^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/01_variables/variables5.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 2 | let number = "T-H-R-E-E"; // Don't change this line [INFO] [stdout] | ----------- expected due to this value [INFO] [stdout] ... [INFO] [stdout] 6 | number = 3; [INFO] [stdout] | ^ expected `&str`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Move` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Move` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 8 | println!("{:?}", Message::Move); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Echo` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Echo` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 9 | println!("{:?}", Message::Echo); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ChangeColor` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `ChangeColor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 10 | println!("{:?}", Message::ChangeColor); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Quit` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Quit` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 11 | println!("{:?}", Message::Quit); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `{integer}` to `&str` [INFO] [stdout] --> exercises/01_variables/variables5.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | println!("Number plus two is: {}", number + 2); [INFO] [stdout] | ------ ^ - {integer} [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "enums1" test) due to 5 previous errors [INFO] [stderr] error: could not compile `exercises` (bin "variables5" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "2cae0e8ab37544b841ab6700a404af5387225e39d0dc95431eb4bdde5b9493d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cae0e8ab37544b841ab6700a404af5387225e39d0dc95431eb4bdde5b9493d0", kill_on_drop: false }` [INFO] [stdout] 2cae0e8ab37544b841ab6700a404af5387225e39d0dc95431eb4bdde5b9493d0