[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] 5d85463c796918b28a86d94da0e11b2ac6e11769 [INFO] testing Eduard-Voiculescu/rust-tutorial against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEduard-Voiculescu%2Frust-tutorial" "/workspace/builds/worker-92/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-92/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Eduard-Voiculescu/rust-tutorial on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-92/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" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.108 [INFO] [stderr] Downloaded ppv-lite86 v0.2.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a14a7cb695e27b9a1f2e256257bec3a61fb80b7ba8c23985f4483ef1eb69b8e [INFO] running `Command { std: "docker" "start" "-a" "2a14a7cb695e27b9a1f2e256257bec3a61fb80b7ba8c23985f4483ef1eb69b8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a14a7cb695e27b9a1f2e256257bec3a61fb80b7ba8c23985f4483ef1eb69b8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a14a7cb695e27b9a1f2e256257bec3a61fb80b7ba8c23985f4483ef1eb69b8e", kill_on_drop: false }` [INFO] [stdout] 2a14a7cb695e27b9a1f2e256257bec3a61fb80b7ba8c23985f4483ef1eb69b8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c1e5e554f99cb0e47b1e84cf4f39386c8b7af8b5af7b08af90b2ee80589c673 [INFO] running `Command { std: "docker" "start" "-a" "6c1e5e554f99cb0e47b1e84cf4f39386c8b7af8b5af7b08af90b2ee80589c673", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling interators_closure v0.1.0 (/opt/rustwide/workdir/iterators_closure) [INFO] [stderr] Compiling gui v0.1.0 (/opt/rustwide/workdir/gui) [INFO] [stderr] Compiling advanced_features v0.1.0 (/opt/rustwide/workdir/advanced_features) [INFO] [stderr] Compiling minigrep v0.1.0 (/opt/rustwide/workdir/minigrep) [INFO] [stderr] Compiling smart_pointers v0.1.0 (/opt/rustwide/workdir/smart_pointers) [INFO] [stderr] Compiling blog v0.1.0 (/opt/rustwide/workdir/blog) [INFO] [stderr] Compiling generics v0.1.0 (/opt/rustwide/workdir/generics) [INFO] [stderr] Compiling cargo-crates v0.1.0 (/opt/rustwide/workdir/cargo-crates) [INFO] [stderr] Compiling restaurant v0.1.0 (/opt/rustwide/workdir/restaurant) [INFO] [stderr] Compiling threads v0.1.0 (/opt/rustwide/workdir/threads) [INFO] [stderr] Compiling ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stderr] Compiling pattern_matching v0.1.0 (/opt/rustwide/workdir/pattern_matching) [INFO] [stderr] Compiling oop v0.1.0 (/opt/rustwide/workdir/oop) [INFO] [stderr] Compiling enums v0.1.0 (/opt/rustwide/workdir/enums) [INFO] [stderr] Compiling variables v0.1.0 (/opt/rustwide/workdir/variables) [INFO] [stderr] Compiling rectangles v0.1.0 (/opt/rustwide/workdir/rectangles) [INFO] [stderr] Compiling error-handling v0.1.0 (/opt/rustwide/workdir/error-handling) [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 hello_world v0.1.0 (/opt/rustwide/workdir/hello_world) [INFO] [stderr] Compiling adder v0.1.0 (/opt/rustwide/workdir/adder) [INFO] [stderr] Compiling common_collections v0.1.0 (/opt/rustwide/workdir/common_collections) [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] 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 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: 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] error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> gui/src/lib.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl Screen [INFO] [stdout] | ^ unconstrained type parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0207`. [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> oop/src/lib.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 14 | / match result { [INFO] [stdout] 15 | | Some(value) => { [INFO] [stdout] 16 | | self.update_average(); [INFO] [stdout] 17 | | Some(value); [INFO] [stdout] | | ------------ [INFO] [stdout] | | | | [INFO] [stdout] | | | help: consider removing this semicolon [INFO] [stdout] | | this is found to be of type `()` [INFO] [stdout] 18 | | }, [INFO] [stdout] 19 | | None => None [INFO] [stdout] | | ^^^^ expected `()`, found enum `Option` [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `()` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> blog/src/lib.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | Box::new({PendingReview {}}) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 58 - Box::new({PendingReview {}}) [INFO] [stdout] 58 + Box::new(PendingReview {}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gui` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> blog/src/lib.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 49 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` 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 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: 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] = note: `#[warn(dead_code)]` 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] [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: 2 warnings emitted [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 import: `std::cmp::Ordering` [INFO] [stdout] --> iterators_closure/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> iterators_closure/src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [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: associated function is never used: `new` [INFO] [stdout] --> iterators_closure/src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> pattern_matching/src/main.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shoes_in_size` [INFO] [stdout] --> iterators_closure/src/lib.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [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: 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: variant is never constructed: `Move` [INFO] [stdout] --> pattern_matching/src/main.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> pattern_matching/src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rgb` [INFO] [stdout] --> pattern_matching/src/main.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> adder/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | width: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> adder/src/lib.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> adder/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> adder/src/lib.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> adder/src/lib.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> adder/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | value: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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: 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: `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] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6c1e5e554f99cb0e47b1e84cf4f39386c8b7af8b5af7b08af90b2ee80589c673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c1e5e554f99cb0e47b1e84cf4f39386c8b7af8b5af7b08af90b2ee80589c673", kill_on_drop: false }` [INFO] [stdout] 6c1e5e554f99cb0e47b1e84cf4f39386c8b7af8b5af7b08af90b2ee80589c673