[INFO] fetching crate cntr-nix 0.11.3-pre1... [INFO] checking cntr-nix-0.11.3-pre1 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] extracting crate cntr-nix 0.11.3-pre1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate cntr-nix 0.11.3-pre1 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cntr-nix 0.11.3-pre1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate cntr-nix 0.11.3-pre1 [INFO] tweaked toml for crates.io crate cntr-nix 0.11.3-pre1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding bytes v0.4.12 (available: v1.8.0) [INFO] [stderr] Adding cfg-if v0.1.10 (available: v1.0.0) [INFO] [stderr] Adding rand v0.4.6 (available: v0.8.5) [INFO] [stderr] Adding sysctl v0.1.4 (available: v0.6.0) [INFO] [stderr] Adding tempfile v2.2.0 (available: v3.14.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v2.2.0 [INFO] [stderr] Downloaded sysctl v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15cdf9c1d17fc1c252bf1e24dd7d4bf498d2f4dcb371c844bccf8c31a71883ca [INFO] running `Command { std: "docker" "start" "-a" "15cdf9c1d17fc1c252bf1e24dd7d4bf498d2f4dcb371c844bccf8c31a71883ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15cdf9c1d17fc1c252bf1e24dd7d4bf498d2f4dcb371c844bccf8c31a71883ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15cdf9c1d17fc1c252bf1e24dd7d4bf498d2f4dcb371c844bccf8c31a71883ca", kill_on_drop: false }` [INFO] [stdout] 15cdf9c1d17fc1c252bf1e24dd7d4bf498d2f4dcb371c844bccf8c31a71883ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5030da68ec3f34087306d33448a4f58c25711fbd1eaf0aefce3c83f331d1694 [INFO] running `Command { std: "docker" "start" "-a" "b5030da68ec3f34087306d33448a4f58c25711fbd1eaf0aefce3c83f331d1694", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling cntr-nix v0.11.3-pre1 (/opt/rustwide/workdir) [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking tempfile v2.2.0 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:56:35 [INFO] [stdout] | [INFO] [stdout] 56 | const $Flag = libc::$Flag $(as $cast)*; [INFO] [stdout] | ^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/fcntl.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 148 | / libc_bitflags!( [INFO] [stdout] 149 | | /// Configuration options for opened files. [INFO] [stdout] 150 | | pub struct RenameAt2Flags: c_int { [INFO] [stdout] 151 | | RENAME_NOREPLACE; [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] 155 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/sys/resource.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | libc::getrlimit64(resource as libc::c_int, &mut rlimit as *mut Rlimit) [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/src/unix/linux_like/linux/gnu/mod.rs:1369:12 [INFO] [stdout] | [INFO] [stdout] 1369 | pub fn getrlimit64(resource: ::__rlimit_resource_t, rlim: *mut ::rlimit64) -> ::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 44 | libc::getrlimit64((resource as libc::c_int).try_into().unwrap(), &mut rlimit as *mut Rlimit) [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/sys/resource.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | libc::setrlimit64(resource as libc::c_int, rlimit as *const Rlimit) [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/src/unix/linux_like/linux/gnu/mod.rs:1370:12 [INFO] [stdout] | [INFO] [stdout] 1370 | pub fn setrlimit64(resource: ::__rlimit_resource_t, rlim: *const ::rlimit64) -> ::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 52 | libc::setrlimit64((resource as libc::c_int).try_into().unwrap(), rlimit as *const Rlimit) [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | $entry = libc::$entry, [INFO] [stdout] | ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/resource.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / libc_enum!{ [INFO] [stdout] 7 | | #[repr(i32)] [INFO] [stdout] 8 | | pub enum Resource { [INFO] [stdout] 9 | | RLIMIT_AS, [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:56:35 [INFO] [stdout] | [INFO] [stdout] 56 | const $Flag = libc::$Flag $(as $cast)*; [INFO] [stdout] | ^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] ::: src/fcntl.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 148 | / libc_bitflags!( [INFO] [stdout] 149 | | /// Configuration options for opened files. [INFO] [stdout] 150 | | pub struct RenameAt2Flags: c_int { [INFO] [stdout] 151 | | RENAME_NOREPLACE; [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] 155 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `libc_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/sys/resource.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | libc::getrlimit64(resource as libc::c_int, &mut rlimit as *mut Rlimit) [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/src/unix/linux_like/linux/gnu/mod.rs:1369:12 [INFO] [stdout] | [INFO] [stdout] 1369 | pub fn getrlimit64(resource: ::__rlimit_resource_t, rlim: *mut ::rlimit64) -> ::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 44 | libc::getrlimit64((resource as libc::c_int).try_into().unwrap(), &mut rlimit as *mut Rlimit) [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/sys/resource.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | libc::setrlimit64(resource as libc::c_int, rlimit as *const Rlimit) [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/src/unix/linux_like/linux/gnu/mod.rs:1370:12 [INFO] [stdout] | [INFO] [stdout] 1370 | pub fn setrlimit64(resource: ::__rlimit_resource_t, rlim: *const ::rlimit64) -> ::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 52 | libc::setrlimit64((resource as libc::c_int).try_into().unwrap(), rlimit as *const Rlimit) [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cntr-nix` (lib) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cntr-nix` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "b5030da68ec3f34087306d33448a4f58c25711fbd1eaf0aefce3c83f331d1694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5030da68ec3f34087306d33448a4f58c25711fbd1eaf0aefce3c83f331d1694", kill_on_drop: false }` [INFO] [stdout] b5030da68ec3f34087306d33448a4f58c25711fbd1eaf0aefce3c83f331d1694