[INFO] cloning repository https://github.com/jfeldman325/Rust-Learning-Examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jfeldman325/Rust-Learning-Examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjfeldman325%2FRust-Learning-Examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjfeldman325%2FRust-Learning-Examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b32ce13aa45e32e6b5473a7ae44a9897c30e6af0 [INFO] checking jfeldman325/Rust-Learning-Examples against master#613bdd49978298648ed05ace086bd1ecad54b44a for pr-136458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjfeldman325%2FRust-Learning-Examples" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jfeldman325/Rust-Learning-Examples on toolchain 613bdd49978298648ed05ace086bd1ecad54b44a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jfeldman325/Rust-Learning-Examples [INFO] finished tweaking git repo https://github.com/jfeldman325/Rust-Learning-Examples [INFO] tweaked toml for git repo https://github.com/jfeldman325/Rust-Learning-Examples written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jfeldman325/Rust-Learning-Examples 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" "+613bdd49978298648ed05ace086bd1ecad54b44a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bbb7d4361fa6d722e772880601eddd8e0ec5d872c896c08fc6ff32a6d6ccb4a [INFO] running `Command { std: "docker" "start" "-a" "5bbb7d4361fa6d722e772880601eddd8e0ec5d872c896c08fc6ff32a6d6ccb4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bbb7d4361fa6d722e772880601eddd8e0ec5d872c896c08fc6ff32a6d6ccb4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bbb7d4361fa6d722e772880601eddd8e0ec5d872c896c08fc6ff32a6d6ccb4a", kill_on_drop: false }` [INFO] [stdout] 5bbb7d4361fa6d722e772880601eddd8e0ec5d872c896c08fc6ff32a6d6ccb4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af077c79b27d711766134ffb402e263f6fff5af7aba463ee223ca0248ed1a781 [INFO] running `Command { std: "docker" "start" "-a" "af077c79b27d711766134ffb402e263f6fff5af7aba463ee223ca0248ed1a781", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking oorandom v11.1.0 [INFO] [stderr] Checking minigrep v0.1.0 (/opt/rustwide/workdir/minigrep) [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking Enums v0.1.0 (/opt/rustwide/workdir/enums) [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> enums/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let four = IpaddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> enums/src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let six = IpaddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `version` and `address` are never read [INFO] [stdout] --> enums/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | version: IpaddrKind, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_v6` is never used [INFO] [stdout] --> enums/src/main.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl IpAddr { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | fn new_v6(address: String, mask: Option) -> IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking collections v0.1.0 (/opt/rustwide/workdir/collections) [INFO] [stderr] Checking structs v0.1.0 (/opt/rustwide/workdir/structs) [INFO] [stderr] Checking generics v0.1.0 (/opt/rustwide/workdir/generics) [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> structs/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let user1 = new_user( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `active`, and `sign_in_count` are never read [INFO] [stdout] --> structs/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | sign_in_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `square` is never used [INFO] [stdout] --> structs/src/rectangles.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rectangle { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn square(side: i32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lifetimes v0.1.0 (/opt/rustwide/workdir/lifetimes) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> collections/src/main.rs:53:39 [INFO] [stdout] | [INFO] [stdout] 53 | fn new(username: &'static str) -> Player { [INFO] [stdout] | ^^^^^^ this elided lifetime gets resolved as `'static` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] help: consider specifying it explicitly [INFO] [stdout] | [INFO] [stdout] 53 | fn new(username: &'static str) -> Player<'static> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> collections/src/main.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> collections/src/main.rs:117:11 [INFO] [stdout] | [INFO] [stdout] 117 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `point` should have an upper camel case name [INFO] [stdout] --> generics/src/main.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct point { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Point` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_with_copy` is never used [INFO] [stdout] --> generics/src/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn largest_with_copy(list: &[T]) -> T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking errors v0.1.0 (/opt/rustwide/workdir/errors) [INFO] [stderr] Checking traits v0.1.0 (/opt/rustwide/workdir/traits) [INFO] [stdout] error[E0277]: the trait bound `&mut Player<'_>: Copy` is not satisfied [INFO] [stdout] --> collections/src/main.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | let mut players = [None; 32]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `Copy` is not implemented for `&mut Player<'_>` [INFO] [stdout] | help: create an inline `const` block: `const { None }` [INFO] [stdout] | [INFO] [stdout] = note: `Copy` is implemented for `&Player<'_>`, but not for `&mut Player<'_>` [INFO] [stdout] = note: required for `Option<&mut Player<'_>>` to implement `Copy` [INFO] [stdout] = note: the `Copy` trait is required because this value will be copied for each element of the array [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> lifetimes/src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_with_an_announcement` is never used [INFO] [stdout] --> lifetimes/src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | fn longest_with_an_announcement(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking closures v0.1.0 (/opt/rustwide/workdir/closures) [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> collections/src/main.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | fn add_player(&mut self, player: &Player) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> collections/src/main.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | for (index, &player) in self.players.iter().enumerate() { [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `player` has type `Option<&mut Player<'_>>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 16 - for (index, &player) in self.players.iter().enumerate() { [INFO] [stdout] 16 + for (index, player) in self.players.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.players[_]` because it is borrowed [INFO] [stdout] --> collections/src/main.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 16 | for (index, &player) in self.players.iter().enumerate() { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | `self.players[_]` is borrowed here [INFO] [stdout] | borrow later used here [INFO] [stdout] 17 | match &player { [INFO] [stdout] 18 | None => self.players[index] = player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self.players[_]` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Slayer` is named the same as one of the variants of the type `GameType` [INFO] [stdout] --> collections/src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `GameType::Slayer` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `BigTeamBattles` is named the same as one of the variants of the type `GameType` [INFO] [stdout] --> collections/src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `GameType::BigTeamBattles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `L33t` is named the same as one of the variants of the type `GameType` [INFO] [stdout] --> collections/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `GameType::L33t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> collections/src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ------ matches any value [INFO] [stdout] ... [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> collections/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ------ matches any value [INFO] [stdout] ... [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Slayer` [INFO] [stdout] --> collections/src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Slayer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `BigTeamBattles` [INFO] [stdout] --> collections/src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_BigTeamBattles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `L33t` [INFO] [stdout] --> collections/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_L33t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `game_type` [INFO] [stdout] --> collections/src/main.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 83 | fn new(game_type: GameType) -> Lobby<'static> { [INFO] [stdout] | --------- move occurs because `game_type` has type `GameType`, which does not implement the `Copy` trait [INFO] [stdout] 84 | match game_type { [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ------ value moved here [INFO] [stdout] 86 | game_type, [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value [INFO] [stdout] | [INFO] [stdout] 85 | ref Slayer => Lobby { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `game_type` [INFO] [stdout] --> collections/src/main.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 83 | fn new(game_type: GameType) -> Lobby<'static> { [INFO] [stdout] | --------- move occurs because `game_type` has type `GameType`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | -------------- value moved here [INFO] [stdout] 92 | game_type, [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value [INFO] [stdout] | [INFO] [stdout] 91 | ref BigTeamBattles => Lobby { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `game_type` [INFO] [stdout] --> collections/src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 83 | fn new(game_type: GameType) -> Lobby<'static> { [INFO] [stdout] | --------- move occurs because `game_type` has type `GameType`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ---- value moved here [INFO] [stdout] 98 | game_type, [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value [INFO] [stdout] | [INFO] [stdout] 97 | ref L33t => Lobby { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_team` [INFO] [stdout] --> collections/src/main.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_team` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking loops v0.1.0 (/opt/rustwide/workdir/loops) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> collections/src/main.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [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] error[E0596]: cannot borrow `*team` as mutable, as it is behind a `&` reference [INFO] [stdout] --> collections/src/main.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | &team.add_player(&mut new_player); [INFO] [stdout] | ^^^^ `team` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `new_player` as mutable more than once at a time [INFO] [stdout] --> collections/src/main.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | &team.add_player(&mut new_player); [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | -------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `new_player` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `new_player` does not live long enough [INFO] [stdout] --> collections/src/main.rs:132:46 [INFO] [stdout] | [INFO] [stdout] 122 | let mut new_player = Player::new("Virtruvius"); [INFO] [stdout] | -------------- binding `new_player` declared here [INFO] [stdout] ... [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | ----------^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `new_player` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 161 | } [INFO] [stdout] | - `new_player` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_copy` [INFO] [stdout] --> collections/src/main.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut final_copy = &latest[0..=33]; //When the CEO want's something pithier not [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_copy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> collections/src/main.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | let mut final_copy = &latest[0..=33]; //When the CEO want's something pithier not [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0170, E0277, E0382, E0499, E0506, E0507, E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> traits/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | &self.summarize()[0..4] [INFO] [stdout] | ^----------------^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |temporary value created here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `collections` (bin "collections") due to 12 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let f = read_file("Hello.txt".to_string()); [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: unused variable: `tweet` [INFO] [stdout] --> traits/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let tweet = Tweet { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tweet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `traits` (bin "traits" test) due to 1 previous error; 1 warning emitted [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> closures/src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let v1 = c.value(1); [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: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> closures/src/main.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not parse/generate dep info at: /opt/rustwide/target/debug/deps/serde-436580f28f386da0.d [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] failed to write `/opt/rustwide/target/debug/.fingerprint/serde-436580f28f386da0/dep-lib-serde` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] No space left on device (os error 28) [INFO] running `Command { std: "docker" "inspect" "af077c79b27d711766134ffb402e263f6fff5af7aba463ee223ca0248ed1a781", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af077c79b27d711766134ffb402e263f6fff5af7aba463ee223ca0248ed1a781", kill_on_drop: false }` [INFO] [stdout] af077c79b27d711766134ffb402e263f6fff5af7aba463ee223ca0248ed1a781