[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#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflyflypeng%2Fnetlink-crate-example" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-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-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/flyflypeng/netlink-crate-example on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded netlink-proto v0.6.0 [INFO] [stderr] Downloaded netlink-sys v0.6.0 [INFO] [stderr] Downloaded netlink-packet-utils v0.4.1 [INFO] [stderr] Downloaded once_cell v1.11.0 [INFO] [stderr] Downloaded byteordered v0.5.0 [INFO] [stderr] Downloaded rtnetlink v0.7.0 [INFO] [stderr] Downloaded netlink-packet-core v0.2.4 [INFO] [stderr] Downloaded netlink-packet-route v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e15ff29d6fdbec4898f45f3115450eeca550478fdd3fc5f5f46a3c6bea073866 [INFO] running `Command { std: "docker" "start" "-a" "e15ff29d6fdbec4898f45f3115450eeca550478fdd3fc5f5f46a3c6bea073866", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e15ff29d6fdbec4898f45f3115450eeca550478fdd3fc5f5f46a3c6bea073866", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e15ff29d6fdbec4898f45f3115450eeca550478fdd3fc5f5f46a3c6bea073866", kill_on_drop: false }` [INFO] [stdout] e15ff29d6fdbec4898f45f3115450eeca550478fdd3fc5f5f46a3c6bea073866 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c1cd95d5204d09e9e38e9fe5d09c15800342e33816948a2ff45a1b87b864577 [INFO] running `Command { std: "docker" "start" "-a" "7c1cd95d5204d09e9e38e9fe5d09c15800342e33816948a2ff45a1b87b864577", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking once_cell v1.11.0 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking byteordered v0.5.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking nix v0.19.1 [INFO] [stderr] Checking tokio-util v0.2.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[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[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: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] 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] [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `netlink-crate-example` (bin "netlink-crate-example" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "7c1cd95d5204d09e9e38e9fe5d09c15800342e33816948a2ff45a1b87b864577", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c1cd95d5204d09e9e38e9fe5d09c15800342e33816948a2ff45a1b87b864577", kill_on_drop: false }` [INFO] [stdout] 7c1cd95d5204d09e9e38e9fe5d09c15800342e33816948a2ff45a1b87b864577