[INFO] cloning repository https://github.com/Haizza1/trust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Haizza1/trust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHaizza1%2Ftrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHaizza1%2Ftrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6d41eb1cd3b72063d02bb8a5b9a2e03cc5a0af0 [INFO] checking Haizza1/trust against try#e5b0618d996a6a3941e423fd3e170737b8dbdc92 for pr-151822 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHaizza1%2Ftrust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Haizza1/trust [INFO] finished tweaking git repo https://github.com/Haizza1/trust [INFO] tweaked toml for git repo https://github.com/Haizza1/trust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Haizza1/trust on toolchain e5b0618d996a6a3941e423fd3e170737b8dbdc92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Haizza1/trust 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" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-core v0.1.18 [INFO] [stderr] Downloaded tun-tap v0.1.2 [INFO] [stderr] Downloaded etherparse v0.9.0 [INFO] [stderr] Downloaded scoped-tls v0.1.2 [INFO] [stderr] Downloaded futures v0.1.31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01c6656048d0a7112c7f128300780202cc53146c96b634f399ebb234bfeae3d4 [INFO] running `Command { std: "docker" "start" "-a" "01c6656048d0a7112c7f128300780202cc53146c96b634f399ebb234bfeae3d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01c6656048d0a7112c7f128300780202cc53146c96b634f399ebb234bfeae3d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01c6656048d0a7112c7f128300780202cc53146c96b634f399ebb234bfeae3d4", kill_on_drop: false }` [INFO] [stdout] 01c6656048d0a7112c7f128300780202cc53146c96b634f399ebb234bfeae3d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3c1bda22f3fc90f9814bea783779b2074e606b10cd38729a01a1f0b52e38119 [INFO] running `Command { std: "docker" "start" "-a" "c3c1bda22f3fc90f9814bea783779b2074e606b10cd38729a01a1f0b52e38119", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking etherparse v0.9.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Compiling tun-tap v0.1.2 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Checking trust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 38 | let datai = iph [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 39 | }, [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `iph` in this scope [INFO] [stdout] --> src/lib.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | let datai = iph [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 38 - let datai = iph [INFO] [stdout] 38 + let datai = ih [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> src/lib.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 38 | let datai = iph [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 39 | }, [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `iph` in this scope [INFO] [stdout] --> src/lib.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | let datai = iph [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 38 - let datai = iph [INFO] [stdout] 38 + let datai = ih [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> src/lib.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:33:44 [INFO] [stdout] | [INFO] [stdout] 30 | fn packet_loop(mut nic: tun_tap::Iface, ih: InterfaceHandle) { [INFO] [stdout] | ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 33 | let nbytes = nic.recv(&mut buf[..])?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 30 | fn packet_loop(mut nic: tun_tap::Iface, ih: InterfaceHandle) -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:33:44 [INFO] [stdout] | [INFO] [stdout] 30 | fn packet_loop(mut nic: tun_tap::Iface, ih: InterfaceHandle) { [INFO] [stdout] | ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 33 | let nbytes = nic.recv(&mut buf[..])?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 30 | fn packet_loop(mut nic: tun_tap::Iface, ih: InterfaceHandle) -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 52 | thread::spawn(move || packet_loop(nic, ih)); [INFO] [stdout] | - help: remove this semicolon [INFO] [stdout] ... [INFO] [stdout] 55 | Ok(Interface { ih, jh }) [INFO] [stdout] | ^^ expected `JoinHandle<()>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `JoinHandle<()>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 52 | thread::spawn(move || packet_loop(nic, ih)); [INFO] [stdout] | - help: remove this semicolon [INFO] [stdout] ... [INFO] [stdout] 55 | Ok(Interface { ih, jh }) [INFO] [stdout] | ^^ expected `JoinHandle<()>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `JoinHandle<()>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how` [INFO] [stdout] --> src/lib.rs:163:28 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn shutdown(&self, how: Shutdown) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_how` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how` [INFO] [stdout] --> src/lib.rs:163:28 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn shutdown(&self, how: Shutdown) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_how` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trust` (lib) due to 4 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `trust` (lib test) due to 4 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c3c1bda22f3fc90f9814bea783779b2074e606b10cd38729a01a1f0b52e38119", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3c1bda22f3fc90f9814bea783779b2074e606b10cd38729a01a1f0b52e38119", kill_on_drop: false }` [INFO] [stdout] c3c1bda22f3fc90f9814bea783779b2074e606b10cd38729a01a1f0b52e38119