[INFO] cloning repository https://github.com/Eduard-Voiculescu/rust-tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Eduard-Voiculescu/rust-tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEduard-Voiculescu%2Frust-tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEduard-Voiculescu%2Frust-tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf12bf52aca5ca51a1cea26c79d782af964ac313 [INFO] testing Eduard-Voiculescu/rust-tutorial against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEduard-Voiculescu%2Frust-tutorial" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Eduard-Voiculescu/rust-tutorial on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Eduard-Voiculescu/rust-tutorial [INFO] finished tweaking git repo https://github.com/Eduard-Voiculescu/rust-tutorial [INFO] tweaked toml for git repo https://github.com/Eduard-Voiculescu/rust-tutorial written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Eduard-Voiculescu/rust-tutorial already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ea9feb7002269de8a89de88f158514c1a14d7dcaa494345c512c7735d89c1ed [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0ea9feb7002269de8a89de88f158514c1a14d7dcaa494345c512c7735d89c1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ea9feb7002269de8a89de88f158514c1a14d7dcaa494345c512c7735d89c1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ea9feb7002269de8a89de88f158514c1a14d7dcaa494345c512c7735d89c1ed", kill_on_drop: false }` [INFO] [stdout] 0ea9feb7002269de8a89de88f158514c1a14d7dcaa494345c512c7735d89c1ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d8990d2faa273f8ed5669656d3ff7af0ab1ad3b387750bec9c1eadb47a2aafad [INFO] running `Command { std: "docker" "start" "-a" "d8990d2faa273f8ed5669656d3ff7af0ab1ad3b387750bec9c1eadb47a2aafad", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling generics v0.1.0 (/opt/rustwide/workdir/generics) [INFO] [stderr] Compiling restaurant v0.1.0 (/opt/rustwide/workdir/restaurant) [INFO] [stderr] Compiling common_collections v0.1.0 (/opt/rustwide/workdir/common_collections) [INFO] [stderr] Compiling hello_world v0.1.0 (/opt/rustwide/workdir/hello_world) [INFO] [stderr] Compiling structs v0.1.0 (/opt/rustwide/workdir/structs) [INFO] [stderr] Compiling common_collections_exercices v0.1.0 (/opt/rustwide/workdir/common_collections_exercices) [INFO] [stderr] Compiling ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stderr] Compiling variables v0.1.0 (/opt/rustwide/workdir/variables) [INFO] [stderr] Compiling error-handling v0.1.0 (/opt/rustwide/workdir/error-handling) [INFO] [stderr] Compiling enums v0.1.0 (/opt/rustwide/workdir/enums) [INFO] [stderr] Compiling rectangles v0.1.0 (/opt/rustwide/workdir/rectangles) [INFO] [stdout] warning: unused import: `Debug` [INFO] [stdout] --> generics/src/lib.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Debug, Display}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `macos` in `os` [INFO] [stdout] --> enums/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::macos::raw::stat; [INFO] [stdout] | ^^^^^ could not find `macos` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> error-handling/src/main.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, ErrorKind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returns_summarizable` [INFO] [stdout] --> generics/src/lib.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> error-handling/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let f = File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> error-handling/src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> structs/src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> structs/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let origin = Point(0, 0, 0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subject` [INFO] [stdout] --> structs/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let subject = AlwaysEqual; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `defining_and_instantiating_structs` [INFO] [stdout] --> structs/src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn defining_and_instantiating_structs() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string2` [INFO] [stdout] --> ownership/src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let string2: String = string1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> ownership/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference1` [INFO] [stdout] --> ownership/src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let reference1 = &mutable1; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference2` [INFO] [stdout] --> ownership/src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let reference2 = &mutable1; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> ownership/src/main.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | fn do_nothing(some_string: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> restaurant/src/lib.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> restaurant/src/lib.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> ownership/src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut mutable1 = String::from("mutable1"); [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: function is never used: `fix_incorrect_order` [INFO] [stdout] --> restaurant/src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cook_order` [INFO] [stdout] --> restaurant/src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seasonal_fruit` [INFO] [stdout] --> restaurant/src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | seasonal_fruit: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> restaurant/src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word` [INFO] [stdout] --> ownership/src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn first_word(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `enums` due to 2 previous errors [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> common_collections/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let v1 = vec![1, 2, 3]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `does_not_exist` [INFO] [stdout] --> common_collections/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let does_not_exist = v.get(100); // won't panic and will return a None [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> common_collections/src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> common_collections/src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> common_collections/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> common_collections/src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let s = "initial contents".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> common_collections/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let s3 = s1 + &s2; // note s1 has been moved here and can no longer be used [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i32` [INFO] [stdout] --> common_collections/src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Some(&i32) => println!("Value for [{}] is {:?}", team_name, score), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> common_collections/src/main.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut scores: HashMap<_, _> = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> common_collections/src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut v5 = vec![1, 2, 3, 4, 5]; [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: variable does not need to be mutable [INFO] [stdout] --> common_collections/src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> common_collections/src/main.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut scores: HashMap<_, _> = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d8990d2faa273f8ed5669656d3ff7af0ab1ad3b387750bec9c1eadb47a2aafad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8990d2faa273f8ed5669656d3ff7af0ab1ad3b387750bec9c1eadb47a2aafad", kill_on_drop: false }` [INFO] [stdout] d8990d2faa273f8ed5669656d3ff7af0ab1ad3b387750bec9c1eadb47a2aafad