[INFO] fetching crate smartcat 1.4.1... [INFO] checking smartcat-1.4.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate smartcat 1.4.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate smartcat 1.4.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate smartcat 1.4.1 [INFO] finished tweaking crates.io crate smartcat 1.4.1 [INFO] tweaked toml for crates.io crate smartcat 1.4.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate smartcat 1.4.1 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ab9b733b34cb54a12539f6a57b48eb5474987b9e9910911326c502826b031ac [INFO] running `Command { std: "docker" "start" "-a" "1ab9b733b34cb54a12539f6a57b48eb5474987b9e9910911326c502826b031ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ab9b733b34cb54a12539f6a57b48eb5474987b9e9910911326c502826b031ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ab9b733b34cb54a12539f6a57b48eb5474987b9e9910911326c502826b031ac", kill_on_drop: false }` [INFO] [stdout] 1ab9b733b34cb54a12539f6a57b48eb5474987b9e9910911326c502826b031ac [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3643d1fd717106a16971e6b7e78faaac2dc313c3620143572c728c53a5ebe8d [INFO] running `Command { std: "docker" "start" "-a" "e3643d1fd717106a16971e6b7e78faaac2dc313c3620143572c728c53a5ebe8d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling syn v2.0.63 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling device_query v2.0.0 [INFO] [stderr] Checking winnow v0.6.8 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking webpki-roots v0.26.1 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling serial_test_derive v2.0.0 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking serial_test v2.0.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking rustls-webpki v0.102.3 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_edit v0.22.12 [INFO] [stderr] Checking ureq v2.9.7 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.4 [INFO] [stderr] Checking smartcat v1.4.1 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `sc` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/text/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/text/mod.rs:84:28 [INFO] [stderr] | [INFO] [stderr] 84 | ($test_name:ident, $prefix:expr_2021, $suffix:expr_2021, $input:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/text/mod.rs:84:47 [INFO] [stderr] | [INFO] [stderr] 84 | ($test_name:ident, $prefix:expr_2021, $suffix:expr_2021, $input:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/text/mod.rs:84:66 [INFO] [stderr] | [INFO] [stderr] 84 | ($test_name:ident, $prefix:expr_2021, $suffix:expr_2021, $input:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:84:36 [INFO] [stdout] | [INFO] [stdout] 84 | ($test_name:ident, $prefix:expr, $suffix:expr, $input:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 84 | ($test_name:ident, $prefix:expr_2021, $suffix:expr, $input:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:84:50 [INFO] [stdout] | [INFO] [stdout] 84 | ($test_name:ident, $prefix:expr, $suffix:expr, $input:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 84 | ($test_name:ident, $prefix:expr, $suffix:expr_2021, $input:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:84:63 [INFO] [stdout] | [INFO] [stdout] 84 | ($test_name:ident, $prefix:expr, $suffix:expr, $input:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 84 | ($test_name:ident, $prefix:expr, $suffix:expr, $input:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 134 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 135 ~ unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_path) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 138 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 139 ~ Ok(val) => unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, val) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 139 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 140 ~ Err(_) => unsafe { env::remove_var(CUSTOM_CONFIG_ENV_VAR) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | env::remove_var(CUSTOM_CONFIG_ENV_VAR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 150 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 151 ~ unsafe { env::remove_var(CUSTOM_CONFIG_ENV_VAR) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 156 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 157 ~ Ok(val) => unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, val) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 157 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 158 ~ Err(_) => unsafe { env::remove_var(CUSTOM_CONFIG_ENV_VAR) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 168 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 169 ~ unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 169 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 170 ~ unsafe { env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:182:24 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 182 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 183 ~ Ok(val) => unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, val) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 183 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 184 ~ Err(_) => unsafe { env::remove_var(CUSTOM_CONFIG_ENV_VAR) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 201 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 202 ~ unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 202 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 203 ~ unsafe { env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:222:24 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 222 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 223 ~ Ok(val) => unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, val) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:223:23 [INFO] [stdout] | [INFO] [stdout] 223 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 223 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 224 ~ Err(_) => unsafe { env::remove_var(CUSTOM_CONFIG_ENV_VAR) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 255 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 256 ~ unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 256 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 257 ~ unsafe { env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 269 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 270 ~ Ok(val) => unsafe { env::set_var(CUSTOM_CONFIG_ENV_VAR, val) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:270:23 [INFO] [stdout] | [INFO] [stdout] 270 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 270 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 271 ~ Err(_) => unsafe { env::remove_var(CUSTOM_CONFIG_ENV_VAR) }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | if let Err(e) = stdin [INFO] [stdout] | ____________^ - [INFO] [stdout] | |_________________________| [INFO] [stdout] 99 | || .lock() [INFO] [stdout] 100 | || .read_to_string(&mut input) [INFO] [stdout] 101 | || .and(output.write_all(format!("Hello, World!\n```\n{}\n```\n", input).as_bytes())) [INFO] [stdout] | ||______________________________________________________________________________________________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |______________________________________________________________________________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 98 ~ match stdin [INFO] [stdout] 99 | .lock() [INFO] [stdout] 100 | .read_to_string(&mut input) [INFO] [stdout] 101 | .and(output.write_all(format!("Hello, World!\n```\n{}\n```\n", input).as_bytes())) [INFO] [stdout] 102 ~ { Err(e) => { [INFO] [stdout] 103 | eprintln!("Error: {}", e); [INFO] [stdout] 104 | std::process::exit(1); [INFO] [stdout] 105 ~ } _ => { [INFO] [stdout] 106 | std::process::exit(0); [INFO] [stdout] 107 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Migrating tests/integration_test.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.27s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking smartcat v1.4.1 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | env::remove_var(CUSTOM_CONFIG_ENV_VAR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:182:24 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:222:24 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:223:23 [INFO] [stdout] | [INFO] [stdout] 223 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | env::set_var(CUSTOM_CONFIG_ENV_VAR, temp_dir.path()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | env::set_var(IS_NONINTERACTIVE_ENV_VAR, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | Ok(val) => env::set_var(CUSTOM_CONFIG_ENV_VAR, val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config/mod.rs:270:23 [INFO] [stdout] | [INFO] [stdout] 270 | Err(_) => env::remove_var(CUSTOM_CONFIG_ENV_VAR), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `smartcat` (bin "sc" test) due to 19 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "e3643d1fd717106a16971e6b7e78faaac2dc313c3620143572c728c53a5ebe8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3643d1fd717106a16971e6b7e78faaac2dc313c3620143572c728c53a5ebe8d", kill_on_drop: false }` [INFO] [stdout] e3643d1fd717106a16971e6b7e78faaac2dc313c3620143572c728c53a5ebe8d