[INFO] cloning repository https://github.com/aslihana/ip_sniffer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aslihana/ip_sniffer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faslihana%2Fip_sniffer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faslihana%2Fip_sniffer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ff189d7c2a2f243541cbd2e21487b2be0e72fe6b [INFO] checking aslihana/ip_sniffer/ff189d7c2a2f243541cbd2e21487b2be0e72fe6b against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faslihana%2Fip_sniffer" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aslihana/ip_sniffer on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aslihana/ip_sniffer [INFO] finished tweaking git repo https://github.com/aslihana/ip_sniffer [INFO] tweaked toml for git repo https://github.com/aslihana/ip_sniffer written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/aslihana/ip_sniffer 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d16e1bb49ca2ada0c6c75f14c0302ad3d9dc8915b2df9b2386ac4c80d0eaa7a [INFO] running `Command { std: "docker" "start" "-a" "1d16e1bb49ca2ada0c6c75f14c0302ad3d9dc8915b2df9b2386ac4c80d0eaa7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d16e1bb49ca2ada0c6c75f14c0302ad3d9dc8915b2df9b2386ac4c80d0eaa7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d16e1bb49ca2ada0c6c75f14c0302ad3d9dc8915b2df9b2386ac4c80d0eaa7a", kill_on_drop: false }` [INFO] [stdout] 1d16e1bb49ca2ada0c6c75f14c0302ad3d9dc8915b2df9b2386ac4c80d0eaa7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f65120df426cc476ff43ed98213c4e11d9a01894734eb87b9730ccb179461e7 [INFO] running `Command { std: "docker" "start" "-a" "2f65120df426cc476ff43ed98213c4e11d9a01894734eb87b9730ccb179461e7", kill_on_drop: false }` [INFO] [stderr] Checking ip_sniffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unknown start of token: \u{2264} [INFO] [stdout] --> src/main.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2264} [INFO] [stdout] --> src/main.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `break` [INFO] [stdout] --> src/main.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ----------- while parsing this struct [INFO] [stdout] 67 | break; [INFO] [stdout] | ^^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `break` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 67 | r#break; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `break` [INFO] [stdout] --> src/main.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ----------- while parsing this struct [INFO] [stdout] 67 | break; [INFO] [stdout] | ^^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `break` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 67 | r#break; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `num_threads` [INFO] [stdout] --> src/main.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ^^^^^^^^^^^ expected `{` [INFO] [stdout] | [INFO] [stdout] note: the `if` expression is missing a block after this condition [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you might have meant to write this as part of a block [INFO] [stdout] | [INFO] [stdout] 66 ~ if(MAX - port) ≤ { num_threads { [INFO] [stdout] 67 | break; [INFO] [stdout] 68 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `num_threads` [INFO] [stdout] --> src/main.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ^^^^^^^^^^^ expected `{` [INFO] [stdout] | [INFO] [stdout] note: the `if` expression is missing a block after this condition [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | if(MAX - port) ≤ num_threads { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you might have meant to write this as part of a block [INFO] [stdout] | [INFO] [stdout] 66 ~ if(MAX - port) ≤ { num_threads { [INFO] [stdout] 67 | break; [INFO] [stdout] 68 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `arguments` [INFO] [stdout] --> src/main.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 95 | let arguments = Arguments::new(&args).unwrap_or_else( [INFO] [stdout] | --------- move occurs because `arguments` has type `Arguments`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 109 | for i in 0..num_threads { [INFO] [stdout] | ----------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 112 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value moved into closure here, in previous iteration of loop [INFO] [stdout] 113 | scan(tx, i, arguments.ipaddr, num_threads); [INFO] [stdout] | ---------------- use occurs due to use in closure [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `scan` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:52:49 [INFO] [stdout] | [INFO] [stdout] 52 | fn scan(tx: Sender, start_port: u16, addr: IpAddr, num_threads: u16) [INFO] [stdout] | ---- in this function ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `Arguments` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct Arguments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 113 | scan(tx, i, arguments.ipaddr, num_threads); [INFO] [stdout] | ---------------- you could clone this value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 109 ~ let mut value = scan(tx, i, arguments.ipaddr, num_threads); [INFO] [stdout] 110 ~ for i in 0..num_threads { [INFO] [stdout] 111 | let tx = tx.clone(); [INFO] [stdout] 112 | [INFO] [stdout] 113 | thread::spawn(move || { [INFO] [stdout] 114 ~ value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `arguments` [INFO] [stdout] --> src/main.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 95 | let arguments = Arguments::new(&args).unwrap_or_else( [INFO] [stdout] | --------- move occurs because `arguments` has type `Arguments`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 109 | for i in 0..num_threads { [INFO] [stdout] | ----------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 112 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value moved into closure here, in previous iteration of loop [INFO] [stdout] 113 | scan(tx, i, arguments.ipaddr, num_threads); [INFO] [stdout] | ---------------- use occurs due to use in closure [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `scan` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:52:49 [INFO] [stdout] | [INFO] [stdout] 52 | fn scan(tx: Sender, start_port: u16, addr: IpAddr, num_threads: u16) [INFO] [stdout] | ---- in this function ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `Arguments` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct Arguments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 113 | scan(tx, i, arguments.ipaddr, num_threads); [INFO] [stdout] | ---------------- you could clone this value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 109 ~ let mut value = scan(tx, i, arguments.ipaddr, num_threads); [INFO] [stdout] 110 ~ for i in 0..num_threads { [INFO] [stdout] 111 | let tx = tx.clone(); [INFO] [stdout] 112 | [INFO] [stdout] 113 | thread::spawn(move || { [INFO] [stdout] 114 ~ value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ip_sniffer` (bin "ip_sniffer") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ip_sniffer` (bin "ip_sniffer" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "2f65120df426cc476ff43ed98213c4e11d9a01894734eb87b9730ccb179461e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f65120df426cc476ff43ed98213c4e11d9a01894734eb87b9730ccb179461e7", kill_on_drop: false }` [INFO] [stdout] 2f65120df426cc476ff43ed98213c4e11d9a01894734eb87b9730ccb179461e7