[INFO] cloning repository https://github.com/arata-nvm/tendium [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/arata-nvm/tendium" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farata-nvm%2Ftendium", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farata-nvm%2Ftendium'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0107030985b13841ccfa953eefa05cf01e09a005 [INFO] checking arata-nvm/tendium/0107030985b13841ccfa953eefa05cf01e09a005 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farata-nvm%2Ftendium" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/arata-nvm/tendium on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/arata-nvm/tendium [INFO] finished tweaking git repo https://github.com/arata-nvm/tendium [INFO] tweaked toml for git repo https://github.com/arata-nvm/tendium written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/arata-nvm/tendium 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ioctl-sys v0.6.0 [INFO] [stderr] Downloaded tun v0.5.1 [INFO] [stderr] Downloaded ifstructs v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d3d0219ee93734309e449e2e10ab8bdaf6c8c5768d1b9a3882df885cbd4e07a [INFO] running `Command { std: "docker" "start" "-a" "6d3d0219ee93734309e449e2e10ab8bdaf6c8c5768d1b9a3882df885cbd4e07a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d3d0219ee93734309e449e2e10ab8bdaf6c8c5768d1b9a3882df885cbd4e07a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d3d0219ee93734309e449e2e10ab8bdaf6c8c5768d1b9a3882df885cbd4e07a", kill_on_drop: false }` [INFO] [stdout] 6d3d0219ee93734309e449e2e10ab8bdaf6c8c5768d1b9a3882df885cbd4e07a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 059d44d85cb26f2767e8ef27aa65369d97c63a3575b8953903137fc3a425c4eb [INFO] running `Command { std: "docker" "start" "-a" "059d44d85cb26f2767e8ef27aa65369d97c63a3575b8953903137fc3a425c4eb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Checking ioctl-sys v0.6.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking ifstructs v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking tun v0.5.1 [INFO] [stderr] Checking tendium v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Protocol` [INFO] [stdout] --> src/protocol/internet/interface.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | ip::{IPDatagram, IPHeader, IPPayload, Protocol}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EtherType` and `self` [INFO] [stdout] --> src/protocol/link/arp/table.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | ethernet::{EtherType, EthernetPayload}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HardwareType` [INFO] [stdout] --> src/protocol/link/arp/table.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use super::{Arp, HardwareType}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ip` [INFO] [stdout] --> src/protocol/link/arp.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | internet::{address::IPAddress, ip}, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Protocol` [INFO] [stdout] --> src/protocol/internet/interface.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | ip::{IPDatagram, IPHeader, IPPayload, Protocol}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EtherType` and `self` [INFO] [stdout] --> src/protocol/link/arp/table.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | ethernet::{EtherType, EthernetPayload}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HardwareType` [INFO] [stdout] --> src/protocol/link/arp/table.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use super::{Arp, HardwareType}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ip` [INFO] [stdout] --> src/protocol/link/arp.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | internet::{address::IPAddress, ip}, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst_mac_addr` [INFO] [stdout] --> src/protocol/internet/interface.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dst_mac_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst_mac_addr` [INFO] [stdout] --> src/protocol/internet/interface.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dst_mac_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.arp_table` as mutable more than once at a time [INFO] [stdout] --> src/protocol/internet/interface.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^----^^^^^^^^^^^---------^ [INFO] [stdout] | | | | [INFO] [stdout] | | | first mutable borrow occurs here [INFO] [stdout] | | first borrow later used by call [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `dst_addr` [INFO] [stdout] --> src/protocol/internet/interface.rs:65:48 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn send(&mut self, dst_addr: IPAddress, payload: IPPayload) -> io::Result<()> { [INFO] [stdout] | -------- move occurs because `dst_addr` has type `IPAddress`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 62 | dst_addr, [INFO] [stdout] | -------- value moved here [INFO] [stdout] ... [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 62 | dst_addr: dst_addr.clone(), [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/protocol/internet/interface.rs:65:58 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] note: the binding is already a mutable borrow [INFO] [stdout] --> src/protocol/internet/interface.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn send(&mut self, dst_addr: IPAddress, payload: IPPayload) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: try removing `&mut` here [INFO] [stdout] | [INFO] [stdout] 65 - let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] 65 + let dst_mac_addr = self.arp_table.find(dst_addr, self).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/protocol/internet/interface.rs:65:58 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | -------------- ---- ^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first borrow later used by call [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.arp_table` as mutable more than once at a time [INFO] [stdout] --> src/protocol/internet/interface.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^----^^^^^^^^^^^---------^ [INFO] [stdout] | | | | [INFO] [stdout] | | | first mutable borrow occurs here [INFO] [stdout] | | first borrow later used by call [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `dst_addr` [INFO] [stdout] --> src/protocol/internet/interface.rs:65:48 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn send(&mut self, dst_addr: IPAddress, payload: IPPayload) -> io::Result<()> { [INFO] [stdout] | -------- move occurs because `dst_addr` has type `IPAddress`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 62 | dst_addr, [INFO] [stdout] | -------- value moved here [INFO] [stdout] ... [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 62 | dst_addr: dst_addr.clone(), [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/protocol/internet/interface.rs:65:58 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] note: the binding is already a mutable borrow [INFO] [stdout] --> src/protocol/internet/interface.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn send(&mut self, dst_addr: IPAddress, payload: IPPayload) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: try removing `&mut` here [INFO] [stdout] | [INFO] [stdout] 65 - let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] 65 + let dst_mac_addr = self.arp_table.find(dst_addr, self).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/protocol/internet/interface.rs:65:58 [INFO] [stdout] | [INFO] [stdout] 65 | let dst_mac_addr = self.arp_table.find(dst_addr, &mut self).unwrap(); [INFO] [stdout] | -------------- ---- ^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first borrow later used by call [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0499, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0499, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tendium` (lib) due to 5 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tendium` (lib test) due to 5 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "059d44d85cb26f2767e8ef27aa65369d97c63a3575b8953903137fc3a425c4eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "059d44d85cb26f2767e8ef27aa65369d97c63a3575b8953903137fc3a425c4eb", kill_on_drop: false }` [INFO] [stdout] 059d44d85cb26f2767e8ef27aa65369d97c63a3575b8953903137fc3a425c4eb