[INFO] cloning repository https://github.com/mister-hai/rust_practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mister-hai/rust_practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmister-hai%2Frust_practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmister-hai%2Frust_practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 263235030ee988ac3e8fdee11c0243bacf923ee4 [INFO] testing mister-hai/rust_practice against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmister-hai%2Frust_practice" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mister-hai/rust_practice 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/mister-hai/rust_practice [INFO] finished tweaking git repo https://github.com/mister-hai/rust_practice [INFO] tweaked toml for git repo https://github.com/mister-hai/rust_practice written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/mister-hai/rust_practice 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] Downloading crates ... [INFO] [stderr] Downloaded futures-core v0.3.13 [INFO] [stderr] Downloaded async-compat v0.2.1 [INFO] [stderr] Downloaded futures-io v0.3.13 [INFO] [stderr] Downloaded libc v0.2.92 [INFO] [stderr] Downloaded tokio v1.4.0 [INFO] [stderr] Downloaded syn v1.0.68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] dd83936a7902c0574ef68b9285b9442bf297e5548a11ed9b31a9bc78dd76d814 [INFO] running `Command { std: "docker" "start" "-a" "dd83936a7902c0574ef68b9285b9442bf297e5548a11ed9b31a9bc78dd76d814", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd83936a7902c0574ef68b9285b9442bf297e5548a11ed9b31a9bc78dd76d814", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd83936a7902c0574ef68b9285b9442bf297e5548a11ed9b31a9bc78dd76d814", kill_on_drop: false }` [INFO] [stdout] dd83936a7902c0574ef68b9285b9442bf297e5548a11ed9b31a9bc78dd76d814 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] d576531ff1b10798b2879e2c1b766db340e3070b54a9ecdc8e6613ffab732c91 [INFO] running `Command { std: "docker" "start" "-a" "d576531ff1b10798b2879e2c1b766db340e3070b54a9ecdc8e6613ffab732c91", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.92 [INFO] [stderr] Compiling syn v1.0.68 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling futures-io v0.3.13 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling tokio v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling async-compat v0.2.1 [INFO] [stderr] Compiling rust_practice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/main.rs:99:29 [INFO] [stdout] | [INFO] [stdout] 99 | fn new(&self, json_input) -> Command { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 99 | fn new(&self, json_input: TypeName) -> Command { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 99 | fn new(&self, _: json_input) -> Command { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 103 | println!(self.success_message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 103 | println!("{}", self.success_message); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | println!(self.failure_message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 105 | println!("{}", self.failure_message); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shutdown` [INFO] [stdout] --> src/main.rs:143:29 [INFO] [stdout] | [INFO] [stdout] 143 | stream.shutdown(Shutdown::Both).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Shutdown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TcpStream` in module `tokio::stream` [INFO] [stdout] --> src/main.rs:133:49 [INFO] [stdout] | [INFO] [stdout] 133 | fn handle_connection(mut stream: tokio::stream::TcpStream) { [INFO] [stdout] | ^^^^^^^^^ not found in `tokio::stream` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 9 | use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/main.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | let v: Value = serde_json::from_str(data)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data` in this scope [INFO] [stdout] --> src/main.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | let v: Value = serde_json::from_str(data)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pass` in this scope [INFO] [stdout] --> src/main.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pass [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `char` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{char, collections::VecDeque}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `self` [INFO] [stdout] --> src/main.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColorChoice`, `ColorSpec`, `Color`, `StandardStream`, `WriteColor` [INFO] [stdout] --> src/main.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use termcolor::{Color,ColorChoice,ColorSpec, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | StandardStream,WriteColor}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JoinHandle`, `Thread` [INFO] [stdout] --> src/main.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | use std::thread::{Thread,JoinHandle}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpSocket`, `TcpStream` [INFO] [stdout] --> src/main.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::net::{TcpStream,TcpSocket,TcpListener}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr`, `SocketAddr` [INFO] [stdout] --> src/main.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | use std::net::{SocketAddr,IpAddr,Ipv4Addr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `command_struct` should have an upper camel case name [INFO] [stdout] --> src/main.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct command_struct{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CommandStruct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `command_set` should have an upper camel case name [INFO] [stdout] --> src/main.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | struct command_set{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CommandSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: this struct takes at least 1 generic argument but 0 generic arguments were supplied [INFO] [stdout] --> src/main.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 111 | set : VecDeque<> [INFO] [stdout] | ^^^^^^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 111 | set : VecDeque [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/main.rs:149:41 [INFO] [stdout] | [INFO] [stdout] 149 | fn untyped_example(json_string: str) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 149 | fn untyped_example(json_string: str) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_practice` due to 11 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d576531ff1b10798b2879e2c1b766db340e3070b54a9ecdc8e6613ffab732c91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d576531ff1b10798b2879e2c1b766db340e3070b54a9ecdc8e6613ffab732c91", kill_on_drop: false }` [INFO] [stdout] d576531ff1b10798b2879e2c1b766db340e3070b54a9ecdc8e6613ffab732c91