[INFO] cloning repository https://github.com/david415/spray [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/david415/spray" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavid415%2Fspray", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavid415%2Fspray'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 26bf2fd3f33bb416a3801ec7847a478d63b9814e [INFO] checking david415/spray against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavid415%2Fspray" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/david415/spray on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/david415/spray [INFO] removed path dependency pnet from git repo https://github.com/david415/spray [INFO] finished tweaking git repo https://github.com/david415/spray [INFO] tweaked toml for git repo https://github.com/david415/spray written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/david415/spray already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (pnet) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: key `branch` is ignored for dependency (pnet). This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/rust-lang/getopts.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (pnet) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: key `branch` is ignored for dependency (pnet). This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d80fd09cba13f93190f7aceff47eada58cbfae9cc0d45ec3a3e715f5a6e41d62 [INFO] running `Command { std: "docker" "start" "-a" "d80fd09cba13f93190f7aceff47eada58cbfae9cc0d45ec3a3e715f5a6e41d62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d80fd09cba13f93190f7aceff47eada58cbfae9cc0d45ec3a3e715f5a6e41d62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d80fd09cba13f93190f7aceff47eada58cbfae9cc0d45ec3a3e715f5a6e41d62", kill_on_drop: false }` [INFO] [stdout] d80fd09cba13f93190f7aceff47eada58cbfae9cc0d45ec3a3e715f5a6e41d62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25fb51ede73872648a3bce6d38c3e2392cf4461131c61052d347ce6285e7d8d4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "25fb51ede73872648a3bce6d38c3e2392cf4461131c61052d347ce6285e7d8d4", kill_on_drop: false }` [INFO] [stderr] warning: dependency (pnet) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: key `branch` is ignored for dependency (pnet). This will be considered an error in future versions [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-xid v0.0.3 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Checking pnet_base v0.27.2 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling pnet v0.27.2 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking pnet_sys v0.27.2 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Checking getopts v0.2.21 (https://github.com/rust-lang/getopts.git#e3d24a37) [INFO] [stderr] Checking pnet_macros_support v0.27.2 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling syntex_pos v0.42.0 [INFO] [stderr] Compiling syntex_errors v0.42.0 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling syntex_syntax v0.42.0 [INFO] [stderr] Checking ipnetwork v0.17.0 [INFO] [stderr] Checking pnet_datalink v0.27.2 [INFO] [stderr] Compiling syntex v0.42.2 [INFO] [stderr] Compiling pnet_macros v0.27.2 [INFO] [stderr] Compiling pnet_packet v0.27.2 [INFO] [stderr] Checking pnet_transport v0.27.2 [INFO] [stderr] Checking spray v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `pnet::util::NetworkInterface`, `pnet::util::get_network_interfaces` [INFO] [stdout] --> src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | use pnet::util::{NetworkInterface, MacAddr, get_network_interfaces}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ no `get_network_interfaces` in `util` [INFO] [stdout] | | [INFO] [stdout] | no `NetworkInterface` in `util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pnet::datalink::datalink_channel` [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | use pnet::datalink::{datalink_channel, DataLinkSender}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `datalink_channel` in `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pnet::datalink::DataLinkChannelType` [INFO] [stdout] --> src/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use pnet::datalink::DataLinkChannelType::{Layer2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ could not find `DataLinkChannelType` in `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv4` [INFO] [stdout] --> src/main.rs:26:42 [INFO] [stdout] | [INFO] [stdout] 26 | use pnet::transport::TransportProtocol::{Ipv4}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Layer3` [INFO] [stdout] --> src/main.rs:28:45 [INFO] [stdout] | [INFO] [stdout] 28 | use pnet::transport::TransportChannelType::{Layer3}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | sender: DataLinkSender, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn DataLinkSender` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | fn send_one(&mut self, &Packet); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:88:37 [INFO] [stdout] | [INFO] [stdout] 88 | fn send_one(&mut self, packet: &Packet) { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:101:37 [INFO] [stdout] | [INFO] [stdout] 101 | fn send_one(&mut self, packet: &Packet) { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | fn Spray_one(sender: S, packet: &Packet, repeat: u32) { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:115:51 [INFO] [stdout] | [INFO] [stdout] 115 | fn compose_packet<'a>(with_ethernet: bool) -> &'a Packet { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `pnet::util::NetworkInterface`, `pnet::util::get_network_interfaces` [INFO] [stdout] --> src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | use pnet::util::{NetworkInterface, MacAddr, get_network_interfaces}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ no `get_network_interfaces` in `util` [INFO] [stdout] | | [INFO] [stdout] | no `NetworkInterface` in `util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pnet::datalink::datalink_channel` [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | use pnet::datalink::{datalink_channel, DataLinkSender}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `datalink_channel` in `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pnet::datalink::DataLinkChannelType` [INFO] [stdout] --> src/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use pnet::datalink::DataLinkChannelType::{Layer2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ could not find `DataLinkChannelType` in `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv4` [INFO] [stdout] --> src/main.rs:26:42 [INFO] [stdout] | [INFO] [stdout] 26 | use pnet::transport::TransportProtocol::{Ipv4}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Layer3` [INFO] [stdout] --> src/main.rs:28:45 [INFO] [stdout] | [INFO] [stdout] 28 | use pnet::transport::TransportChannelType::{Layer3}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | sender: DataLinkSender, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn DataLinkSender` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | fn send_one(&mut self, &Packet); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:88:37 [INFO] [stdout] | [INFO] [stdout] 88 | fn send_one(&mut self, packet: &Packet) { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:101:37 [INFO] [stdout] | [INFO] [stdout] 101 | fn send_one(&mut self, packet: &Packet) { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | fn Spray_one(sender: S, packet: &Packet, repeat: u32) { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:115:51 [INFO] [stdout] | [INFO] [stdout] 115 | fn compose_packet<'a>(with_ethernet: bool) -> &'a Packet { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn DataLinkSender + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut p: EthernetPacketProbe; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `EthernetPacketProbe`, the trait `Sized` is not implemented for `(dyn DataLinkSender + 'static)` [INFO] [stdout] = note: required because it appears within the type `EthernetPacketProbe` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn DataLinkSender` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | Ok((tx, _)) => self.sender = tx, [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn DataLinkSender` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn DataLinkSender + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | Ok((tx, _)) => self.sender = tx, [INFO] [stdout] | ^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn DataLinkSender + 'static)` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | match self.sender.send_to(packet as &EthernetPacket, None) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found struct `EthernetPacket` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&EthernetPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&dyn Packet` as `&EthernetPacket<'_>` [INFO] [stdout] --> src/main.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | match self.sender.send_to(packet as &EthernetPacket, None) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_destination` found for reference `&dyn Packet` in the current scope [INFO] [stdout] --> src/main.rs:102:61 [INFO] [stdout] | [INFO] [stdout] 102 | match self.sender.send_to(packet, IpAddr::V4(packet.get_destination())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&dyn Packet: Packet` is not satisfied [INFO] [stdout] --> src/main.rs:102:27 [INFO] [stdout] | [INFO] [stdout] 102 | match self.sender.send_to(packet, IpAddr::V4(packet.get_destination())) { [INFO] [stdout] | ^^^^^^^ the trait `Packet` is not implemented for `&dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | packet_buffer = [0u8; ETHERNET_HEADER_LEN + IPV4_HEADER_LEN + TCP_HEADER_LEN + TCP_OPTIONS_LEN + PAYLOAD_LEN]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a fixed size of 0 elements, found one with 62 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:127:27 [INFO] [stdout] | [INFO] [stdout] 127 | ethernet_packet = compose_test_ethernet_header(&mut packet_buffer[ETHERNET_HEADER_LEN ..]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `EthernetPacket`, found `&mut MutableEthernetPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn DataLinkSender + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut p: EthernetPacketProbe; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `EthernetPacketProbe`, the trait `Sized` is not implemented for `(dyn DataLinkSender + 'static)` [INFO] [stdout] = note: required because it appears within the type `EthernetPacketProbe` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn DataLinkSender` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | Ok((tx, _)) => self.sender = tx, [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn DataLinkSender` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn DataLinkSender + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | Ok((tx, _)) => self.sender = tx, [INFO] [stdout] | ^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn DataLinkSender + 'static)` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | packet_buffer = [0u8; IPV4_HEADER_LEN + TCP_HEADER_LEN + TCP_OPTIONS_LEN + PAYLOAD_LEN]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a fixed size of 0 elements, found one with 48 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 115 | fn compose_packet<'a>(with_ethernet: bool) -> &'a Packet { [INFO] [stdout] | ---------- expected `&'a (dyn Packet + 'a)` because of return type [INFO] [stdout] ... [INFO] [stdout] 136 | return ethernet_packet; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found struct `EthernetPacket` [INFO] [stdout] | help: consider borrowing here: `ðernet_packet` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&'a (dyn Packet + 'a)` [INFO] [stdout] found struct `EthernetPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_control_bits` found for struct `MutableTcpPacket<'_>` in the current scope [INFO] [stdout] --> src/main.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | tcp_header.set_control_bits(0x18); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `MutableTcpPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_urgent_pointer` found for struct `MutableTcpPacket<'_>` in the current scope [INFO] [stdout] --> src/main.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | tcp_header.set_urgent_pointer(0x0000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `set_urgent_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 142 | fn compose_test_tcp_header(packet: &mut [u8]) -> &mut MutableTcpPacket { [INFO] [stdout] | --------------------- expected because this return type... [INFO] [stdout] ... [INFO] [stdout] 156 | return tcp_header [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut MutableTcpPacket<'_>`, found struct `MutableTcpPacket` [INFO] [stdout] | ...is found to be `&mut MutableTcpPacket<'_>` here [INFO] [stdout] | help: consider mutably borrowing here: `&mut tcp_header` [INFO] [stdout] | [INFO] [stdout] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stdout] = note: for information on `impl Trait`, see [INFO] [stdout] = help: you could instead create a new `enum` with a variant for each returned type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 159 | fn compose_test_ipv4_header(packet: &mut [u8]) -> &mut MutableIpv4Packet { [INFO] [stdout] | ---------------------- expected because this return type... [INFO] [stdout] ... [INFO] [stdout] 177 | return ip_header [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut MutableIpv4Packet<'_>`, found struct `MutableIpv4Packet` [INFO] [stdout] | ...is found to be `&mut MutableIpv4Packet<'_>` here [INFO] [stdout] | help: consider mutably borrowing here: `&mut ip_header` [INFO] [stdout] | [INFO] [stdout] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stdout] = note: for information on `impl Trait`, see [INFO] [stdout] = help: you could instead create a new `enum` with a variant for each returned type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 180 | fn compose_test_ethernet_header(packet: &mut [u8]) -> &mut MutableEthernetPacket { [INFO] [stdout] | -------------------------- expected because this return type... [INFO] [stdout] ... [INFO] [stdout] 187 | return ethernet_header [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut MutableEthernetPacket<'_>`, found struct `MutableEthernetPacket` [INFO] [stdout] | ...is found to be `&mut MutableEthernetPacket<'_>` here [INFO] [stdout] | help: consider mutably borrowing here: `&mut ethernet_header` [INFO] [stdout] | [INFO] [stdout] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stdout] = note: for information on `impl Trait`, see [INFO] [stdout] = help: you could instead create a new `enum` with a variant for each returned type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): Sender` is not satisfied [INFO] [stdout] --> src/main.rs:222:15 [INFO] [stdout] | [INFO] [stdout] 109 | fn Spray_one(sender: S, packet: &Packet, repeat: u32) { [INFO] [stdout] | ------ required by this bound in `Spray_one` [INFO] [stdout] ... [INFO] [stdout] 222 | Spray_one(probe, packet, 33); [INFO] [stdout] | ^^^^^ the trait `Sender` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn DataLinkSender + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | EthernetPacketProbe::new(matches.opt_str("ethernet").unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `EthernetPacketProbe`, the trait `Sized` is not implemented for `(dyn DataLinkSender + 'static)` [INFO] [stdout] = note: required because it appears within the type `EthernetPacketProbe` [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0599, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | match self.sender.send_to(packet as &EthernetPacket, None) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found struct `EthernetPacket` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&EthernetPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&dyn Packet` as `&EthernetPacket<'_>` [INFO] [stdout] --> src/main.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | match self.sender.send_to(packet as &EthernetPacket, None) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_destination` found for reference `&dyn Packet` in the current scope [INFO] [stdout] --> src/main.rs:102:61 [INFO] [stdout] | [INFO] [stdout] 102 | match self.sender.send_to(packet, IpAddr::V4(packet.get_destination())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&dyn Packet: Packet` is not satisfied [INFO] [stdout] --> src/main.rs:102:27 [INFO] [stdout] | [INFO] [stdout] 102 | match self.sender.send_to(packet, IpAddr::V4(packet.get_destination())) { [INFO] [stdout] | ^^^^^^^ the trait `Packet` is not implemented for `&dyn Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `spray` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | packet_buffer = [0u8; ETHERNET_HEADER_LEN + IPV4_HEADER_LEN + TCP_HEADER_LEN + TCP_OPTIONS_LEN + PAYLOAD_LEN]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a fixed size of 0 elements, found one with 62 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:127:27 [INFO] [stdout] | [INFO] [stdout] 127 | ethernet_packet = compose_test_ethernet_header(&mut packet_buffer[ETHERNET_HEADER_LEN ..]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `EthernetPacket`, found `&mut MutableEthernetPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | packet_buffer = [0u8; IPV4_HEADER_LEN + TCP_HEADER_LEN + TCP_OPTIONS_LEN + PAYLOAD_LEN]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a fixed size of 0 elements, found one with 48 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 115 | fn compose_packet<'a>(with_ethernet: bool) -> &'a Packet { [INFO] [stdout] | ---------- expected `&'a (dyn Packet + 'a)` because of return type [INFO] [stdout] ... [INFO] [stdout] 136 | return ethernet_packet; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found struct `EthernetPacket` [INFO] [stdout] | help: consider borrowing here: `ðernet_packet` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&'a (dyn Packet + 'a)` [INFO] [stdout] found struct `EthernetPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_control_bits` found for struct `MutableTcpPacket<'_>` in the current scope [INFO] [stdout] --> src/main.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | tcp_header.set_control_bits(0x18); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `MutableTcpPacket<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_urgent_pointer` found for struct `MutableTcpPacket<'_>` in the current scope [INFO] [stdout] --> src/main.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | tcp_header.set_urgent_pointer(0x0000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `set_urgent_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 142 | fn compose_test_tcp_header(packet: &mut [u8]) -> &mut MutableTcpPacket { [INFO] [stdout] | --------------------- expected because this return type... [INFO] [stdout] ... [INFO] [stdout] 156 | return tcp_header [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut MutableTcpPacket<'_>`, found struct `MutableTcpPacket` [INFO] [stdout] | ...is found to be `&mut MutableTcpPacket<'_>` here [INFO] [stdout] | help: consider mutably borrowing here: `&mut tcp_header` [INFO] [stdout] | [INFO] [stdout] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stdout] = note: for information on `impl Trait`, see [INFO] [stdout] = help: you could instead create a new `enum` with a variant for each returned type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 159 | fn compose_test_ipv4_header(packet: &mut [u8]) -> &mut MutableIpv4Packet { [INFO] [stdout] | ---------------------- expected because this return type... [INFO] [stdout] ... [INFO] [stdout] 177 | return ip_header [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut MutableIpv4Packet<'_>`, found struct `MutableIpv4Packet` [INFO] [stdout] | ...is found to be `&mut MutableIpv4Packet<'_>` here [INFO] [stdout] | help: consider mutably borrowing here: `&mut ip_header` [INFO] [stdout] | [INFO] [stdout] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stdout] = note: for information on `impl Trait`, see [INFO] [stdout] = help: you could instead create a new `enum` with a variant for each returned type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 180 | fn compose_test_ethernet_header(packet: &mut [u8]) -> &mut MutableEthernetPacket { [INFO] [stdout] | -------------------------- expected because this return type... [INFO] [stdout] ... [INFO] [stdout] 187 | return ethernet_header [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut MutableEthernetPacket<'_>`, found struct `MutableEthernetPacket` [INFO] [stdout] | ...is found to be `&mut MutableEthernetPacket<'_>` here [INFO] [stdout] | help: consider mutably borrowing here: `&mut ethernet_header` [INFO] [stdout] | [INFO] [stdout] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stdout] = note: for information on `impl Trait`, see [INFO] [stdout] = help: you could instead create a new `enum` with a variant for each returned type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): Sender` is not satisfied [INFO] [stdout] --> src/main.rs:222:15 [INFO] [stdout] | [INFO] [stdout] 109 | fn Spray_one(sender: S, packet: &Packet, repeat: u32) { [INFO] [stdout] | ------ required by this bound in `Spray_one` [INFO] [stdout] ... [INFO] [stdout] 222 | Spray_one(probe, packet, 33); [INFO] [stdout] | ^^^^^ the trait `Sender` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn DataLinkSender + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | EthernetPacketProbe::new(matches.opt_str("ethernet").unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `EthernetPacketProbe`, the trait `Sized` is not implemented for `(dyn DataLinkSender + 'static)` [INFO] [stdout] = note: required because it appears within the type `EthernetPacketProbe` [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0599, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "25fb51ede73872648a3bce6d38c3e2392cf4461131c61052d347ce6285e7d8d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25fb51ede73872648a3bce6d38c3e2392cf4461131c61052d347ce6285e7d8d4", kill_on_drop: false }` [INFO] [stdout] 25fb51ede73872648a3bce6d38c3e2392cf4461131c61052d347ce6285e7d8d4