[INFO] updating cached repository https://github.com/PerfectLaugh/chinaroutes [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c2b803d31e23c5b7a6807be9623ed9e44d478136 [INFO] checking PerfectLaugh/chinaroutes against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPerfectLaugh%2Fchinaroutes" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PerfectLaugh/chinaroutes on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/PerfectLaugh/chinaroutes [INFO] finished tweaking git repo https://github.com/PerfectLaugh/chinaroutes [INFO] tweaked toml for git repo https://github.com/PerfectLaugh/chinaroutes written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/PerfectLaugh/chinaroutes already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 949f6daa6991c8f3130c375135f014bc30ef3dbc011df7546beebd4c7f3267e9 [INFO] running `"docker" "start" "-a" "949f6daa6991c8f3130c375135f014bc30ef3dbc011df7546beebd4c7f3267e9"` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling chinaroutes v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] warning: use of deprecated item 'gcc::Config': gcc::Config has been renamed to gcc::Build [INFO] [stderr] --> build.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | gcc::Config::new().file("src/routes.c").include("/usr/include/libnl3").compile("libroutes.a"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'gcc::Build::new': crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stderr] --> build.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | gcc::Config::new().file("src/routes.c").include("/usr/include/libnl3").compile("libroutes.a"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: src/routes.c: In function 'netlink_route_add': [INFO] [stderr] warning: src/routes.c:44:26: warning: argument to 'sizeof' in 'bzero' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] [INFO] [stderr] warning: bzero(rtroute, sizeof(rtroute)); [INFO] [stderr] warning: ^ [INFO] [stderr] warning: src/routes.c: In function 'netlink_route_del': [INFO] [stderr] warning: src/routes.c:63:26: warning: argument to 'sizeof' in 'bzero' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] [INFO] [stderr] warning: bzero(rtroute, sizeof(rtroute)); [INFO] [stderr] warning: ^ [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | use libc::{int32_t, uint8_t, uint32_t, c_void}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint8_t': Use u8 instead. [INFO] [stderr] --> src/main.rs:9:21 [INFO] [stderr] | [INFO] [stderr] 9 | use libc::{int32_t, uint8_t, uint32_t, c_void}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:9:30 [INFO] [stderr] | [INFO] [stderr] 9 | use libc::{int32_t, uint8_t, uint32_t, c_void}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint8_t': Use u8 instead. [INFO] [stderr] --> src/main.rs:13:14 [INFO] [stderr] | [INFO] [stderr] 13 | type Ipv4 = [uint8_t; 4]; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | mask: uint32_t, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:23:60 [INFO] [stderr] | [INFO] [stderr] 23 | fn netlink_route_connect(skptr: *mut *const c_void) -> int32_t; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:25:52 [INFO] [stderr] | [INFO] [stderr] 25 | fn netlink_route_add(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:25:112 [INFO] [stderr] | [INFO] [stderr] 25 | fn netlink_route_add(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:26:52 [INFO] [stderr] | [INFO] [stderr] 26 | fn netlink_route_del(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:26:112 [INFO] [stderr] | [INFO] [stderr] 26 | fn netlink_route_del(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | use libc::{int32_t, uint8_t, uint32_t, c_void}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint8_t': Use u8 instead. [INFO] [stderr] --> src/main.rs:9:21 [INFO] [stderr] | [INFO] [stderr] 9 | use libc::{int32_t, uint8_t, uint32_t, c_void}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:9:30 [INFO] [stderr] | [INFO] [stderr] 9 | use libc::{int32_t, uint8_t, uint32_t, c_void}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint8_t': Use u8 instead. [INFO] [stderr] --> src/main.rs:13:14 [INFO] [stderr] | [INFO] [stderr] 13 | type Ipv4 = [uint8_t; 4]; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | mask: uint32_t, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:23:60 [INFO] [stderr] | [INFO] [stderr] 23 | fn netlink_route_connect(skptr: *mut *const c_void) -> int32_t; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:25:52 [INFO] [stderr] | [INFO] [stderr] 25 | fn netlink_route_add(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:25:112 [INFO] [stderr] | [INFO] [stderr] 25 | fn netlink_route_add(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::uint32_t': Use u32 instead. [INFO] [stderr] --> src/main.rs:26:52 [INFO] [stderr] | [INFO] [stderr] 26 | fn netlink_route_del(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'libc::int32_t': Use i32 instead. [INFO] [stderr] --> src/main.rs:26:112 [INFO] [stderr] | [INFO] [stderr] 26 | fn netlink_route_del(sk: *const c_void, table: uint32_t, via: *const Ipv4, rtentry: *const route_entry) -> int32_t; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0606]: casting `f64` as `u32` is invalid [INFO] [stderr] --> src/parse.rs:47:30 [INFO] [stderr] | [INFO] [stderr] 47 | let imask = 32 - ((num_ip as f64).log(2.0) as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error; 10 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0606`. [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: src/routes.c: In function 'netlink_route_add': [INFO] [stderr] warning: src/routes.c:44:26: warning: argument to 'sizeof' in 'bzero' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] [INFO] [stderr] warning: bzero(rtroute, sizeof(rtroute)); [INFO] [stderr] warning: ^ [INFO] [stderr] warning: src/routes.c: In function 'netlink_route_del': [INFO] [stderr] warning: src/routes.c:63:26: warning: argument to 'sizeof' in 'bzero' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] [INFO] [stderr] warning: bzero(rtroute, sizeof(rtroute)); [INFO] [stderr] warning: ^ [INFO] [stderr] [INFO] [stderr] error: could not compile `chinaroutes`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0606]: casting `f64` as `u32` is invalid [INFO] [stderr] --> src/parse.rs:47:30 [INFO] [stderr] | [INFO] [stderr] 47 | let imask = 32 - ((num_ip as f64).log(2.0) as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error; 10 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0606`. [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: src/routes.c: In function 'netlink_route_add': [INFO] [stderr] warning: src/routes.c:44:26: warning: argument to 'sizeof' in 'bzero' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] [INFO] [stderr] warning: bzero(rtroute, sizeof(rtroute)); [INFO] [stderr] warning: ^ [INFO] [stderr] warning: src/routes.c: In function 'netlink_route_del': [INFO] [stderr] warning: src/routes.c:63:26: warning: argument to 'sizeof' in 'bzero' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] [INFO] [stderr] warning: bzero(rtroute, sizeof(rtroute)); [INFO] [stderr] warning: ^ [INFO] [stderr] [INFO] [stderr] error: could not compile `chinaroutes`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "949f6daa6991c8f3130c375135f014bc30ef3dbc011df7546beebd4c7f3267e9"` [INFO] running `"docker" "rm" "-f" "949f6daa6991c8f3130c375135f014bc30ef3dbc011df7546beebd4c7f3267e9"` [INFO] [stdout] 949f6daa6991c8f3130c375135f014bc30ef3dbc011df7546beebd4c7f3267e9