[INFO] cloning repository https://github.com/kidrahahjo/tcp-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kidrahahjo/tcp-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkidrahahjo%2Ftcp-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkidrahahjo%2Ftcp-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd6f18309f64b3785ba7769deaf903574a39fa3f [INFO] testing kidrahahjo/tcp-rust against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkidrahahjo%2Ftcp-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kidrahahjo/tcp-rust on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kidrahahjo/tcp-rust [INFO] finished tweaking git repo https://github.com/kidrahahjo/tcp-rust [INFO] tweaked toml for git repo https://github.com/kidrahahjo/tcp-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kidrahahjo/tcp-rust 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" "+beta-2025-01-12" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tun-tap v0.1.3 [INFO] [stderr] Downloaded net2 v0.2.38 [INFO] [stderr] Downloaded parking_lot_core v0.6.3 [INFO] [stderr] Downloaded etherparse v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a86715ef5bd79b0069278f3a4c40d5709c55331f5d7795c4071bafa45314e29 [INFO] running `Command { std: "docker" "start" "-a" "8a86715ef5bd79b0069278f3a4c40d5709c55331f5d7795c4071bafa45314e29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a86715ef5bd79b0069278f3a4c40d5709c55331f5d7795c4071bafa45314e29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a86715ef5bd79b0069278f3a4c40d5709c55331f5d7795c4071bafa45314e29", kill_on_drop: false }` [INFO] [stdout] 8a86715ef5bd79b0069278f3a4c40d5709c55331f5d7795c4071bafa45314e29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ef3db01855e4a25f1b2933988eed9fa05b8da268ca521dcbea821d7dfcccc9a [INFO] running `Command { std: "docker" "start" "-a" "3ef3db01855e4a25f1b2933988eed9fa05b8da268ca521dcbea821d7dfcccc9a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling scoped-tls v0.1.2 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling etherparse v0.13.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling tun-tap v0.1.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling net2 v0.2.38 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling crossbeam-deque v0.7.4 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling tokio-codec v0.1.2 [INFO] [stderr] Compiling tokio-fs v0.1.7 [INFO] [stderr] Compiling tokio-uds v0.2.7 [INFO] [stderr] Compiling tokio-udp v0.1.6 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling tokio-core v0.1.18 [INFO] [stderr] Compiling tcp-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0574]: expected struct, variant or union type, found enum `tcp::State` [INFO] [stdout] --> src/main.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | ... .or_insert(tcp::State {}) [INFO] [stdout] | ^^^^^^^^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: enum `State` is private [INFO] [stdout] --> src/main.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | let mut connections: HashMap = Default::default(); [INFO] [stdout] | ^^^^^ private enum [INFO] [stdout] | [INFO] [stdout] note: the enum `State` is defined here [INFO] [stdout] --> src/tcp.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | enum State { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: enum `State` is private [INFO] [stdout] --> src/main.rs:64:45 [INFO] [stdout] | [INFO] [stdout] 64 | ... .or_insert(tcp::State {}) [INFO] [stdout] | ^^^^^ private enum [INFO] [stdout] | [INFO] [stdout] note: the enum `State` is defined here [INFO] [stdout] --> src/tcp.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | enum State { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 76 | ) { [INFO] [stdout] | - help: a return type might be missing here: `-> _` [INFO] [stdout] ... [INFO] [stdout] 79 | return Ok(0); [INFO] [stdout] | ^^^^^ expected `()`, found `Result<{integer}, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<{integer}, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/tcp.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 93 | unimplemented!(), [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 94 | unimplemented!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/tcp.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 77 | / match self.state { [INFO] [stdout] 78 | | State::Closed => { [INFO] [stdout] 79 | | return Ok(0); [INFO] [stdout] ... | [INFO] [stdout] 118 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 119 | / eprintln!( [INFO] [stdout] 120 | | "{}:{} -> {}:{}, {}b of tcp", [INFO] [stdout] 121 | | iph.source_addr(), [INFO] [stdout] 122 | | tcph.source_port(), [INFO] [stdout] ... | [INFO] [stdout] 125 | | data.len(), [INFO] [stdout] 126 | | ); [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_packet` found for mutable reference `&mut State` in the current scope [INFO] [stdout] --> src/main.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 59 | / connections [INFO] [stdout] 60 | | .entry(Quad { [INFO] [stdout] 61 | | src: (src, tcp_header_slice.source_port()), [INFO] [stdout] 62 | | dst: (dest, tcp_header_slice.destination_port()), [INFO] [stdout] 63 | | }) [INFO] [stdout] 64 | | .or_insert(tcp::State {}) [INFO] [stdout] 65 | | .on_packet( [INFO] [stdout] | | -^^^^^^^^^ method not found in `&mut State` [INFO] [stdout] | |_____________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0574, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp-rust` (bin "tcp-rust") due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3ef3db01855e4a25f1b2933988eed9fa05b8da268ca521dcbea821d7dfcccc9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ef3db01855e4a25f1b2933988eed9fa05b8da268ca521dcbea821d7dfcccc9a", kill_on_drop: false }` [INFO] [stdout] 3ef3db01855e4a25f1b2933988eed9fa05b8da268ca521dcbea821d7dfcccc9a