[INFO] fetching crate c-scape 0.17.0... [INFO] checking c-scape-0.17.0 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate c-scape 0.17.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate c-scape 0.17.0 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate c-scape 0.17.0 [INFO] finished tweaking crates.io crate c-scape 0.17.0 [INFO] tweaked toml for crates.io crate c-scape 0.17.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 58 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding gimli v0.30.0 (available: v0.31.0) [INFO] [stderr] Adding itertools v0.9.0 (available: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3edc6d356b12e05225baed6a5dd1fb975abc74d69c0e2b16e8c384220732d794 [INFO] running `Command { std: "docker" "start" "-a" "3edc6d356b12e05225baed6a5dd1fb975abc74d69c0e2b16e8c384220732d794", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3edc6d356b12e05225baed6a5dd1fb975abc74d69c0e2b16e8c384220732d794", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3edc6d356b12e05225baed6a5dd1fb975abc74d69c0e2b16e8c384220732d794", kill_on_drop: false }` [INFO] [stdout] 3edc6d356b12e05225baed6a5dd1fb975abc74d69c0e2b16e8c384220732d794 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 534ccf033e0301a40de167dab9661f4e92acfb8f0fcb600c4ee615b6eec6bb4a [INFO] running `Command { std: "docker" "start" "-a" "534ccf033e0301a40de167dab9661f4e92acfb8f0fcb600c4ee615b6eec6bb4a", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking gimli v0.30.0 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Compiling c-scape v0.17.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking posix-regex v0.1.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking errno v0.3.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking realpath-ext v0.1.3 [INFO] [stderr] Checking rand_pcg v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking cstr_core v0.2.6 [INFO] [stderr] Checking printf-compat v0.1.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking unwinding v0.2.2 [INFO] [stderr] Checking rustix-futex-sync v0.2.3 [INFO] [stderr] Checking rustix-openpty v0.1.1 [INFO] [stderr] Checking origin v0.20.2 [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/path/mod.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 37 | unsafe extern "C" fn open(pathname: *const c_char, flags: c_int, mut args: ...) -> c_int { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | openat_impl!(CWD, pathname, flags, args) [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 44 | unsafe extern "C" fn open64(pathname: *const c_char, flags: c_int, mut args: ...) -> c_int { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 47 | openat_impl!(CWD, pathname, flags, args) [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 56 | mut args: ... [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 60 | openat_impl!(BorrowedFd::borrow_raw(fd), pathname, flags, args) [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 68 | mut args: ... [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 72 | openat_impl!(BorrowedFd::borrow_raw(fd), pathname, flags, args) [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 37 | unsafe extern "C" fn open(pathname: *const c_char, flags: c_int, mut args: ...) -> c_int { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | openat_impl!(CWD, pathname, flags, args) [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 44 | unsafe extern "C" fn open64(pathname: *const c_char, flags: c_int, mut args: ...) -> c_int { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 47 | openat_impl!(CWD, pathname, flags, args) [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 56 | mut args: ... [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 60 | openat_impl!(BorrowedFd::borrow_raw(fd), pathname, flags, args) [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/fs/open.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match convert_res(rustix::fs::openat( [INFO] [stdout] | _______________^ [INFO] [stdout] 23 | | &$fd, [INFO] [stdout] 24 | | CStr::from_ptr($pathname.cast()), [INFO] [stdout] 25 | | flags, [INFO] [stdout] 26 | | mode, [INFO] [stdout] 27 | | )) { [INFO] [stdout] | |__________^ [INFO] [stdout] ... [INFO] [stdout] 68 | mut args: ... [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 72 | openat_impl!(BorrowedFd::borrow_raw(fd), pathname, flags, args) [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `openat_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/net/mod.rs:771:31 [INFO] [stdout] | [INFO] [stdout] 756 | let mut ancillaries = RecvAncillaryBuffer::default(); [INFO] [stdout] | --------------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 771 | for _ancillary in ancillaries.drain() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/net/mod.rs:771:31 [INFO] [stdout] | [INFO] [stdout] 756 | let mut ancillaries = RecvAncillaryBuffer::default(); [INFO] [stdout] | --------------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 771 | for _ancillary in ancillaries.drain() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/termios_/mod.rs:553:22 [INFO] [stdout] | [INFO] [stdout] 553 | if ptsname_r(fd, PTS_BUFFER.as_mut_ptr(), PTS_BUFFER.len()) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/termios_/mod.rs:553:47 [INFO] [stdout] | [INFO] [stdout] 553 | if ptsname_r(fd, PTS_BUFFER.as_mut_ptr(), PTS_BUFFER.len()) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/termios_/mod.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | PTS_BUFFER.as_mut_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/arpa_inet.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | BUFFER.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/arpa_inet.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | BUFFER.len() as _, [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/base64.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | BUFFER.as_mut_ptr().cast() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/termios_/mod.rs:553:22 [INFO] [stdout] | [INFO] [stdout] 553 | if ptsname_r(fd, PTS_BUFFER.as_mut_ptr(), PTS_BUFFER.len()) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/termios_/mod.rs:553:47 [INFO] [stdout] | [INFO] [stdout] 553 | if ptsname_r(fd, PTS_BUFFER.as_mut_ptr(), PTS_BUFFER.len()) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/termios_/mod.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | PTS_BUFFER.as_mut_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/arpa_inet.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | BUFFER.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/arpa_inet.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | BUFFER.len() as _, [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/base64.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | BUFFER.as_mut_ptr().cast() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `c-scape` (lib) due to 6 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `c-scape` (lib test) due to 6 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "534ccf033e0301a40de167dab9661f4e92acfb8f0fcb600c4ee615b6eec6bb4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "534ccf033e0301a40de167dab9661f4e92acfb8f0fcb600c4ee615b6eec6bb4a", kill_on_drop: false }` [INFO] [stdout] 534ccf033e0301a40de167dab9661f4e92acfb8f0fcb600c4ee615b6eec6bb4a