[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] 632c4ab2f9085844cddffaa977e7b620faf9061a [INFO] checking arloor/nftables-nat-rust against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farloor%2Fnftables-nat-rust" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/arloor/nftables-nat-rust on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-11/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3829e97697640705a31e0b842cb595d2923a0fe2fac58241a90ff073f2133996 [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" "3829e97697640705a31e0b842cb595d2923a0fe2fac58241a90ff073f2133996", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3829e97697640705a31e0b842cb595d2923a0fe2fac58241a90ff073f2133996", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3829e97697640705a31e0b842cb595d2923a0fe2fac58241a90ff073f2133996", kill_on_drop: false }` [INFO] [stdout] 3829e97697640705a31e0b842cb595d2923a0fe2fac58241a90ff073f2133996 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb6d48669015b0f2def7091b211355f97f136c94c42bff48142d6ecb34d928ef [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" "fb6d48669015b0f2def7091b211355f97f136c94c42bff48142d6ecb34d928ef", 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: 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: 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: 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: 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: 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: unused `std::result::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: 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: 17 warnings emitted [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 `std::result::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 0.92s [INFO] running `Command { std: "docker" "inspect" "fb6d48669015b0f2def7091b211355f97f136c94c42bff48142d6ecb34d928ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb6d48669015b0f2def7091b211355f97f136c94c42bff48142d6ecb34d928ef", kill_on_drop: false }` [INFO] [stdout] fb6d48669015b0f2def7091b211355f97f136c94c42bff48142d6ecb34d928ef