[INFO] cloning repository https://github.com/ricky08sirus/Port_Scanner [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ricky08sirus/Port_Scanner" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fricky08sirus%2FPort_Scanner", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fricky08sirus%2FPort_Scanner'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 19479e8510dc13731485b8bb713f76db5831de0d [INFO] checking ricky08sirus/Port_Scanner against try#b4c55082edd8dec08ce8af276d7054d9c4db20c4 for pr-147984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fricky08sirus%2FPort_Scanner" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ricky08sirus/Port_Scanner [INFO] finished tweaking git repo https://github.com/ricky08sirus/Port_Scanner [INFO] tweaked toml for git repo https://github.com/ricky08sirus/Port_Scanner written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ricky08sirus/Port_Scanner on toolchain b4c55082edd8dec08ce8af276d7054d9c4db20c4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ricky08sirus/Port_Scanner 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" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking ricky08sirus/Port_Scanner against try#b4c55082edd8dec08ce8af276d7054d9c4db20c4 for pr-147984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fricky08sirus%2FPort_Scanner" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ricky08sirus/Port_Scanner [INFO] finished tweaking git repo https://github.com/ricky08sirus/Port_Scanner [INFO] tweaked toml for git repo https://github.com/ricky08sirus/Port_Scanner written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ricky08sirus/Port_Scanner on toolchain b4c55082edd8dec08ce8af276d7054d9c4db20c4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ricky08sirus/Port_Scanner 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" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0dd09622583b7d184f7453123bd63c4707c375eff553784476baf1da2af14fa7 [INFO] running `Command { std: "docker" "start" "-a" "0dd09622583b7d184f7453123bd63c4707c375eff553784476baf1da2af14fa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0dd09622583b7d184f7453123bd63c4707c375eff553784476baf1da2af14fa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dd09622583b7d184f7453123bd63c4707c375eff553784476baf1da2af14fa7", kill_on_drop: false }` [INFO] [stdout] 0dd09622583b7d184f7453123bd63c4707c375eff553784476baf1da2af14fa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b32d10508af9e987592562193c065c9807457187b1e1b34e31a8426ac2dea02f [INFO] running `Command { std: "docker" "start" "-a" "b32d10508af9e987592562193c065c9807457187b1e1b34e31a8426ac2dea02f", kill_on_drop: false }` [INFO] [stderr] Checking port_sniffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected type, found `>` [INFO] [stdout] --> src/main.rs:18:57 [INFO] [stdout] | [INFO] [stdout] 17 | impl Arguments { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] 18 | fn new(args: &[String]) -> Result { [INFO] [stdout] | ^ expected type [INFO] [stdout] ... [INFO] [stdout] 32 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `>` [INFO] [stdout] --> src/main.rs:18:57 [INFO] [stdout] | [INFO] [stdout] 17 | impl Arguments { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] 18 | fn new(args: &[String]) -> Result { [INFO] [stdout] | ^ expected type [INFO] [stdout] ... [INFO] [stdout] 32 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::write` [INFO] [stdout] --> src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self,write}; [INFO] [stdout] | ^^^^^ no `write` in `io` [INFO] [stdout] | [INFO] [stdout] = note: this could be because a macro annotated with `#[macro_export]` will be exported at the root of the crate instead of the module where it is defined [INFO] [stdout] help: a macro with this name exists at the root of the crate [INFO] [stdout] | [INFO] [stdout] 2 - use std::io::{self,write}; [INFO] [stdout] 2 + use std::{write, io::{self}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::write` [INFO] [stdout] --> src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self,write}; [INFO] [stdout] | ^^^^^ no `write` in `io` [INFO] [stdout] | [INFO] [stdout] = note: this could be because a macro annotated with `#[macro_export]` will be exported at the root of the crate instead of the module where it is defined [INFO] [stdout] help: a macro with this name exists at the root of the crate [INFO] [stdout] | [INFO] [stdout] 2 - use std::io::{self,write}; [INFO] [stdout] 2 + use std::{write, io::{self}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX` in this scope [INFO] [stdout] --> src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 9 | const Max: u16 = 65535; [INFO] [stdout] | ----------------------- similarly named constant `Max` defined here [INFO] [stdout] ... [INFO] [stdout] 44 | if (MAX - port) <= num_threads{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a constant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - if (MAX - port) <= num_threads{ [INFO] [stdout] 44 + if (Max - port) <= num_threads{ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 1 + use std::char::MAX; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f32::MAX; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f64::MAX; [INFO] [stdout] | [INFO] [stdout] 1 + use std::i128::MAX; [INFO] [stdout] | [INFO] [stdout] = and 11 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX` in this scope [INFO] [stdout] --> src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 9 | const Max: u16 = 65535; [INFO] [stdout] | ----------------------- similarly named constant `Max` defined here [INFO] [stdout] ... [INFO] [stdout] 44 | if (MAX - port) <= num_threads{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a constant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - if (MAX - port) <= num_threads{ [INFO] [stdout] 44 + if (Max - port) <= num_threads{ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 1 + use std::char::MAX; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f32::MAX; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f64::MAX; [INFO] [stdout] | [INFO] [stdout] 1 + use std::i128::MAX; [INFO] [stdout] | [INFO] [stdout] = and 11 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Args` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::{self, Args}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Args` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::{self, Args}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `Stdout` in the current scope [INFO] [stdout] --> src/main.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | io::stdout().flush().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `Stdout` [INFO] [stdout] | [INFO] [stdout] --> /rustc/b4c55082edd8dec08ce8af276d7054d9c4db20c4/library/std/src/io/mod.rs:1801:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Stdout` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `flush` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `Stdout` in the current scope [INFO] [stdout] --> src/main.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | io::stdout().flush().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `Stdout` [INFO] [stdout] | [INFO] [stdout] --> /rustc/b4c55082edd8dec08ce8af276d7054d9c4db20c4/library/std/src/io/mod.rs:1801:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Stdout` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `flush` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Arguments` in the current scope [INFO] [stdout] --> src/main.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 11 | struct Arguments{ [INFO] [stdout] | ---------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 56 | let arguments = Arguments::new(&args).unwrap_or_else(|err|{ [INFO] [stdout] | ^^^ function or associated item not found in `Arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Arguments` in the current scope [INFO] [stdout] --> src/main.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 11 | struct Arguments{ [INFO] [stdout] | ---------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 56 | let arguments = Arguments::new(&args).unwrap_or_else(|err|{ [INFO] [stdout] | ^^^ function or associated item not found in `Arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | let arguments = Arguments::new(&args).unwrap_or_else(|err|{ [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | if err.contains("help"){ [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 56 | let arguments = Arguments::new(&args).unwrap_or_else(|err: /* Type */|{ [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | let arguments = Arguments::new(&args).unwrap_or_else(|err|{ [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | if err.contains("help"){ [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 56 | let arguments = Arguments::new(&args).unwrap_or_else(|err: /* Type */|{ [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `port_sniffer` (bin "port_sniffer" test) due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `port_sniffer` (bin "port_sniffer") due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b32d10508af9e987592562193c065c9807457187b1e1b34e31a8426ac2dea02f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b32d10508af9e987592562193c065c9807457187b1e1b34e31a8426ac2dea02f", kill_on_drop: false }` [INFO] [stdout] b32d10508af9e987592562193c065c9807457187b1e1b34e31a8426ac2dea02f