[INFO] cloning repository https://github.com/flyflypeng/netlink-crate-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/flyflypeng/netlink-crate-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflyflypeng%2Fnetlink-crate-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflyflypeng%2Fnetlink-crate-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f2005adcbc2064bdc93db949cbc7916d96f339b [INFO] checking flyflypeng/netlink-crate-example against try#ddcf048784667508cd676fef4667f88ae15628a3 for pr-148271 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflyflypeng%2Fnetlink-crate-example" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/flyflypeng/netlink-crate-example [INFO] finished tweaking git repo https://github.com/flyflypeng/netlink-crate-example [INFO] tweaked toml for git repo https://github.com/flyflypeng/netlink-crate-example written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/flyflypeng/netlink-crate-example on toolchain ddcf048784667508cd676fef4667f88ae15628a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/flyflypeng/netlink-crate-example 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" "+ddcf048784667508cd676fef4667f88ae15628a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded netlink-packet-core v0.2.4 [INFO] [stderr] Downloaded netlink-packet-utils v0.4.1 [INFO] [stderr] Downloaded mio v0.8.3 [INFO] [stderr] Downloaded netlink-proto v0.6.0 [INFO] [stderr] Downloaded byteordered v0.5.0 [INFO] [stderr] Downloaded rtnetlink v0.7.0 [INFO] [stderr] Downloaded once_cell v1.11.0 [INFO] [stderr] Downloaded netlink-sys v0.6.0 [INFO] [stderr] Downloaded netlink-packet-route v0.7.1 [INFO] [stderr] Downloaded nix v0.19.1 [INFO] [stderr] Downloaded syn v1.0.95 [INFO] [stderr] Downloaded tokio v1.18.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b17907f572061f2d36679ed8ed0c941625bb61c9213ec4d5a903a694c62f38f [INFO] running `Command { std: "docker" "start" "-a" "0b17907f572061f2d36679ed8ed0c941625bb61c9213ec4d5a903a694c62f38f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b17907f572061f2d36679ed8ed0c941625bb61c9213ec4d5a903a694c62f38f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b17907f572061f2d36679ed8ed0c941625bb61c9213ec4d5a903a694c62f38f", kill_on_drop: false }` [INFO] [stdout] 0b17907f572061f2d36679ed8ed0c941625bb61c9213ec4d5a903a694c62f38f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ffea3d90e8e9e8ea662cb2fcd71ef0e17ab3ca6d8efcd5a5505aaa6ef0c28ae [INFO] running `Command { std: "docker" "start" "-a" "9ffea3d90e8e9e8ea662cb2fcd71ef0e17ab3ca6d8efcd5a5505aaa6ef0c28ae", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking once_cell v1.11.0 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking byteordered v0.5.0 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking nix v0.19.1 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.18.2 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking netlink-packet-utils v0.4.1 [INFO] [stderr] Checking netlink-packet-core v0.2.4 [INFO] [stderr] Checking netlink-packet-route v0.7.1 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking netlink-sys v0.6.0 [INFO] [stderr] Checking netlink-proto v0.6.0 [INFO] [stderr] Checking rtnetlink v0.7.0 [INFO] [stderr] Checking netlink-crate-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `vlan_id` in this scope [INFO] [stdout] --> src/main.rs:59:51 [INFO] [stdout] | [INFO] [stdout] 59 | .vlan("vlan.3000", link.header.index, vlan_id); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `match_name` found for struct `LinkGetRequest` in the current scope [INFO] [stdout] --> src/main.rs:53:41 [INFO] [stdout] | [INFO] [stdout] 53 | let mut links = handle.link().get().match_name(veth_name.clone()).execute(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `LinkGetRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `vlan_id` in this scope [INFO] [stdout] --> src/main.rs:59:51 [INFO] [stdout] | [INFO] [stdout] 59 | .vlan("vlan.3000", link.header.index, vlan_id); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | .vlan("vlan.3000", link.header.index, vlan_id); [INFO] [stdout] | ---- ^^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rtnetlink-0.7.0/src/link/add.rs:329:12 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn vlan(self, name: String, index: u32, vlan_id: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 59 | .vlan("vlan.3000".to_string(), link.header.index, vlan_id); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | / Command::new("ip") [INFO] [stdout] 8 | | .args(["link", "del", "veth0"]) [INFO] [stdout] 9 | | .output() [INFO] [stdout] 10 | | .expect("failed to clean update vlan env") [INFO] [stdout] | |__________________________________________________^ expected `()`, found `Output` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 10 | .expect("failed to clean update vlan env"); [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 5 | fn clean_env_for_update_vlan() -> Output { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `netlink-crate-example` (bin "netlink-crate-example" test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `match_name` found for struct `LinkGetRequest` in the current scope [INFO] [stdout] --> src/main.rs:53:41 [INFO] [stdout] | [INFO] [stdout] 53 | let mut links = handle.link().get().match_name(veth_name.clone()).execute(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `LinkGetRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | .vlan("vlan.3000", link.header.index, vlan_id); [INFO] [stdout] | ---- ^^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rtnetlink-0.7.0/src/link/add.rs:329:12 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn vlan(self, name: String, index: u32, vlan_id: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 59 | .vlan("vlan.3000".to_string(), link.header.index, vlan_id); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | / Command::new("ip") [INFO] [stdout] 8 | | .args(["link", "del", "veth0"]) [INFO] [stdout] 9 | | .output() [INFO] [stdout] 10 | | .expect("failed to clean update vlan env") [INFO] [stdout] | |__________________________________________________^ expected `()`, found `Output` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 10 | .expect("failed to clean update vlan env"); [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 5 | fn clean_env_for_update_vlan() -> Output { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `netlink-crate-example` (bin "netlink-crate-example") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "9ffea3d90e8e9e8ea662cb2fcd71ef0e17ab3ca6d8efcd5a5505aaa6ef0c28ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ffea3d90e8e9e8ea662cb2fcd71ef0e17ab3ca6d8efcd5a5505aaa6ef0c28ae", kill_on_drop: false }` [INFO] [stdout] 9ffea3d90e8e9e8ea662cb2fcd71ef0e17ab3ca6d8efcd5a5505aaa6ef0c28ae