[INFO] cloning repository https://github.com/arloor/nftables-nat-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/arloor/nftables-nat-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farloor%2Fnftables-nat-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farloor%2Fnftables-nat-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 194f4f83f9ee33099076c7dee41e9dd2752dce67 [INFO] checking arloor/nftables-nat-rust against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farloor%2Fnftables-nat-rust" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/arloor/nftables-nat-rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/arloor/nftables-nat-rust [INFO] finished tweaking git repo https://github.com/arloor/nftables-nat-rust [INFO] tweaked toml for git repo https://github.com/arloor/nftables-nat-rust written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/arloor/nftables-nat-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7dbb91a840350c49675158832b82e0ae92465b1671dc3c2025d36d5bb914272d [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" "7dbb91a840350c49675158832b82e0ae92465b1671dc3c2025d36d5bb914272d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7dbb91a840350c49675158832b82e0ae92465b1671dc3c2025d36d5bb914272d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dbb91a840350c49675158832b82e0ae92465b1671dc3c2025d36d5bb914272d", kill_on_drop: false }` [INFO] [stdout] 7dbb91a840350c49675158832b82e0ae92465b1671dc3c2025d36d5bb914272d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] a3e2dbf7710efefb67bcb90c2048a951902069dcb347f242818de8ec5cbfd85a [INFO] running `Command { std: "docker" "start" "-a" "a3e2dbf7710efefb67bcb90c2048a951902069dcb347f242818de8ec5cbfd85a", kill_on_drop: false }` [INFO] [stderr] Checking dnat v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `nat_cell` should have an upper camel case name [INFO] [stdout] --> src/config.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum nat_cell { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NatCell` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit` [INFO] [stdout] --> src/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use std::process::{exit, Command}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::IP::remote_ip` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::IP::remote_ip; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `nat_cell` should have an upper camel case name [INFO] [stdout] --> src/config.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum nat_cell { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NatCell` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit` [INFO] [stdout] --> src/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use std::process::{exit, Command}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::IP::remote_ip` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::IP::remote_ip; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | Ok(s)=>{println!("kernel ip_forward config enabled!\n")} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `domain` [INFO] [stdout] --> src/main.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | let (domain, ip) = x.get_target_ip(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | let (domain, ip) = x.get_target_ip(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/config.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_start` [INFO] [stdout] --> src/config.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | nat_cell::RANGE { port_start, port_end, remote_domain } => [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `port_start: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_end` [INFO] [stdout] --> src/config.rs:63:43 [INFO] [stdout] | [INFO] [stdout] 63 | nat_cell::RANGE { port_start, port_end, remote_domain } => [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `port_end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_port` [INFO] [stdout] --> src/config.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | nat_cell::SINGLE { local_port, remote_port, remote_domain } => [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `local_port: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote_port` [INFO] [stdout] --> src/config.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | nat_cell::SINGLE { local_port, remote_port, remote_domain } => [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `remote_port: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | let mut f = File::create("/etc/nftables/nat-diy.nft"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IP` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod IP; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | Ok(s)=>{println!("kernel ip_forward config enabled!\n")} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `domain` [INFO] [stdout] --> src/main.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | let (domain, ip) = x.get_target_ip(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | let (domain, ip) = x.get_target_ip(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/config.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_start` [INFO] [stdout] --> src/config.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | nat_cell::RANGE { port_start, port_end, remote_domain } => [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `port_start: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_end` [INFO] [stdout] --> src/config.rs:63:43 [INFO] [stdout] | [INFO] [stdout] 63 | nat_cell::RANGE { port_start, port_end, remote_domain } => [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `port_end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_port` [INFO] [stdout] --> src/config.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | nat_cell::SINGLE { local_port, remote_port, remote_domain } => [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `local_port: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote_port` [INFO] [stdout] --> src/config.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | nat_cell::SINGLE { local_port, remote_port, remote_domain } => [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `remote_port: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | let mut f = File::create("/etc/nftables/nat-diy.nft"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IP` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod IP; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | std::fs::create_dir_all("/etc/nftables"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | std::fs::create_dir_all("/etc/nftables"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.14s [INFO] running `Command { std: "docker" "inspect" "a3e2dbf7710efefb67bcb90c2048a951902069dcb347f242818de8ec5cbfd85a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3e2dbf7710efefb67bcb90c2048a951902069dcb347f242818de8ec5cbfd85a", kill_on_drop: false }` [INFO] [stdout] a3e2dbf7710efefb67bcb90c2048a951902069dcb347f242818de8ec5cbfd85a