[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#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fricky08sirus%2FPort_Scanner" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ricky08sirus/Port_Scanner on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9377f1d87bfcd3de8d090127f0d781c66c5c3faf27995d6fdfc4521dc34df53b [INFO] running `Command { std: "docker" "start" "-a" "9377f1d87bfcd3de8d090127f0d781c66c5c3faf27995d6fdfc4521dc34df53b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9377f1d87bfcd3de8d090127f0d781c66c5c3faf27995d6fdfc4521dc34df53b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9377f1d87bfcd3de8d090127f0d781c66c5c3faf27995d6fdfc4521dc34df53b", kill_on_drop: false }` [INFO] [stdout] 9377f1d87bfcd3de8d090127f0d781c66c5c3faf27995d6fdfc4521dc34df53b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3b1dcf84e6f60b9ee2916280dd60cbd93ba7b08870de7d84ef67d9add73e611 [INFO] running `Command { std: "docker" "start" "-a" "d3b1dcf84e6f60b9ee2916280dd60cbd93ba7b08870de7d84ef67d9add73e611", 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[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)]` 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] 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] 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)]` 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] 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] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/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] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/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] Some errors have detailed explanations: E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `port_sniffer` (bin "port_sniffer") due to 5 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" test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d3b1dcf84e6f60b9ee2916280dd60cbd93ba7b08870de7d84ef67d9add73e611", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3b1dcf84e6f60b9ee2916280dd60cbd93ba7b08870de7d84ef67d9add73e611", kill_on_drop: false }` [INFO] [stdout] d3b1dcf84e6f60b9ee2916280dd60cbd93ba7b08870de7d84ef67d9add73e611