[INFO] cloning repository https://github.com/cnpryer/huak [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cnpryer/huak" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnpryer%2Fhuak", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnpryer%2Fhuak'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f2fb5d468034fa55d6faf811b4482fadc947617 [INFO] checking cnpryer/huak/4f2fb5d468034fa55d6faf811b4482fadc947617 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnpryer%2Fhuak" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cnpryer/huak 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] removed /workspace/builds/worker-1-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/cnpryer/huak [INFO] finished tweaking git repo https://github.com/cnpryer/huak [INFO] tweaked toml for git repo https://github.com/cnpryer/huak written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/cnpryer/huak 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 97e3a441687d1f7f36635dd94440b263716d9686e3e3ea02f25d48d075aca63b [INFO] running `Command { std: "docker" "start" "-a" "97e3a441687d1f7f36635dd94440b263716d9686e3e3ea02f25d48d075aca63b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "97e3a441687d1f7f36635dd94440b263716d9686e3e3ea02f25d48d075aca63b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97e3a441687d1f7f36635dd94440b263716d9686e3e3ea02f25d48d075aca63b", kill_on_drop: false }` [INFO] [stdout] 97e3a441687d1f7f36635dd94440b263716d9686e3e3ea02f25d48d075aca63b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6294677aab1eb891ee38475ae690038e6b139c4b936cf78987d4ef33c0a03c1 [INFO] running `Command { std: "docker" "start" "-a" "f6294677aab1eb891ee38475ae690038e6b139c4b936cf78987d4ef33c0a03c1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating crates/huak-cli/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed crates/huak-cli/Cargo.toml (1 fix) [INFO] [stderr] Migrating crates/huak-home/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating crates/huak-package-manager/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating crates/huak-pyproject-toml/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating crates/huak-python-manager/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating crates/huak-toolchain/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating crates/huak-workspace/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating crates/huak-dev/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking winnow v0.5.19 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking linux-raw-sys v0.4.11 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking gimli v0.28.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking object v0.32.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking uuid v1.5.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Compiling libz-sys v1.1.12 [INFO] [stderr] Checking filetime v0.2.22 [INFO] [stderr] Checking xattr v1.0.1 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking base64 v0.21.5 [INFO] [stderr] Checking tempfile v3.8.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking tar v0.4.40 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling libgit2-sys v0.15.2+1.6.4 [INFO] [stderr] Checking dunce v1.0.4 [INFO] [stderr] Checking huak-workspace v0.0.0 (/tmp/fixit/crates/huak-workspace) [INFO] [stderr] Migrating crates/huak-workspace/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking huak-home v0.0.0 (/tmp/fixit/crates/huak-home) [INFO] [stderr] Migrating crates/huak-home/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking similar v2.3.0 [INFO] [stderr] Checking huak-dev v0.0.0 (/tmp/fixit/crates/huak-dev) [INFO] [stderr] Migrating crates/huak-dev/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Checking clap_complete v4.4.4 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking serde_spanned v0.6.4 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking os_info v3.7.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking pep440_rs v0.4.0 [INFO] [stderr] Checking pep440_rs v0.3.12 [INFO] [stderr] Checking toml_edit v0.21.0 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking pep508_rs v0.3.0 [INFO] [stderr] Checking pep508_rs v0.2.4 [INFO] [stderr] Checking insta v1.34.0 [INFO] [stderr] Checking insta-cmd v0.6.0 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking toml v0.8.8 [INFO] [stderr] Checking huak-pyproject-toml v0.0.0 (/tmp/fixit/crates/huak-pyproject-toml) [INFO] [stderr] Migrating crates/huak-pyproject-toml/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking pyproject-toml v0.7.0 [INFO] [stderr] Checking zstd v0.13.0 [INFO] [stderr] Checking human-panic v1.2.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.22 [INFO] [stderr] Checking huak-python-manager v0.0.0 (/tmp/fixit/crates/huak-python-manager) [INFO] [stderr] Migrating crates/huak-python-manager/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking huak-toolchain v0.0.0 (/tmp/fixit/crates/huak-toolchain) [INFO] [stderr] Migrating crates/huak-toolchain/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed crates/huak-toolchain/src/lib.rs (1 fix) [INFO] [stderr] Migrating crates/huak-python-manager/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed crates/huak-python-manager/src/main.rs (1 fix) [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking git2 v0.17.2 [INFO] [stderr] Checking huak-package-manager v0.0.0 (/tmp/fixit/crates/huak-package-manager) [INFO] [stderr] Migrating crates/huak-package-manager/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `huak_package_manager` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * crates/huak-package-manager/src/ops/run.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: usage of an `unsafe` block [INFO] [stderr] --> crates/huak-package-manager/src/ops/run.rs:243:42 [INFO] [stderr] | [INFO] [stderr] 243 | .map(|it| it.iter().map(|(k, v)| unsafe { std::env::set_var(k, v) })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: requested on the command line with `-D unsafe-code` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> crates/huak-package-manager/src/ops/run.rs:242:42 [INFO] [stdout] | [INFO] [stdout] 242 | .map(|it| it.iter().map(|(k, v)| std::env::set_var(k, v))); [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] 242 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 243 ~ .map(|it| it.iter().map(|(k, v)| unsafe { std::env::set_var(k, v) })); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/environment.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | } else if let Ok(Some(v)) = parse_python_version_from_command(&path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------------------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/environment.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | } 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] 49 ~ } else { match parse_python_version_from_command(&path) { Ok(Some(v)) => { [INFO] [stdout] 50 | let interpreter = Interpreter::new(path, v); [INFO] [stdout] 51 | Some(interpreter) [INFO] [stdout] 52 ~ } _ => { [INFO] [stdout] 53 | None [INFO] [stdout] 54 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/add.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | if let Some(pkg) = packages.iter().find(|p| p.name() == dep.name()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/add.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 39 ~ match packages.iter().find(|p| p.name() == dep.name()) { Some(pkg) => { [INFO] [stdout] 40 | dep.requirement_mut().version_or_url = Some(VersionOrUrl::VersionSpecifier( [INFO] [stdout] ... [INFO] [stdout] 43 | )); [INFO] [stdout] 44 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/add.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(pkg) = packages.iter().find(|p| p.name() == dep.name()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/add.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 94 ~ match packages.iter().find(|p| p.name() == dep.name()) { Some(pkg) => { [INFO] [stdout] 95 | dep.requirement_mut().version_or_url = Some(VersionOrUrl::VersionSpecifier( [INFO] [stdout] ... [INFO] [stdout] 98 | )); [INFO] [stdout] 99 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/clean.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | if let Ok(it) = item { [INFO] [stdout] | ^^^^^^^^^^^^^---- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/clean.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 31 ~ match item { Ok(it) => { [INFO] [stdout] 32 | std::fs::remove_dir_all(it).ok(); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/clean.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | if let Ok(it) = item { [INFO] [stdout] | ^^^^^^^^^^^^^---- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/clean.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 41 ~ match item { Ok(it) => { [INFO] [stdout] 42 | std::fs::remove_file(it).ok(); [INFO] [stdout] 43 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | } else if let Some(optional_deps) = manifest.manifest_data().project_optional_dependencies() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/init.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 96 ~ } else { match manifest.manifest_data().project_optional_dependencies() [INFO] [stdout] 97 ~ { Some(optional_deps) => { [INFO] [stdout] 98 | for g in gs { [INFO] [stdout] ... [INFO] [stdout] 103 | } [INFO] [stdout] 104 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | if let Some(reqs) = manifest.manifest_data().project_dependencies() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/init.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 93 ~ match manifest.manifest_data().project_dependencies() { Some(reqs) => { [INFO] [stdout] 94 | dependencies.extend(reqs); [INFO] [stdout] 95 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | if let Some(groups) = manifest [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] 114 | | .manifest_data() [INFO] [stdout] 115 | | .project_optional_dependency_groups() [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] --> crates/huak-package-manager/src/ops/init.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 113 ~ match manifest [INFO] [stdout] 114 | .manifest_data() [INFO] [stdout] 115 | .project_optional_dependency_groups() [INFO] [stdout] 116 ~ { Some(groups) => { [INFO] [stdout] 117 | for key in groups { [INFO] [stdout] ... [INFO] [stdout] 123 | } [INFO] [stdout] 124 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | if let Some(g) = manifest.manifest_data().project_optional_dependencies() { [INFO] [stdout] | ^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/init.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 118 ~ match manifest.manifest_data().project_optional_dependencies() { Some(g) => { [INFO] [stdout] 119 | if let Some(it) = g.get(&key) { [INFO] [stdout] 120 | dependencies.extend(it.iter().cloned()); [INFO] [stdout] 121 | } [INFO] [stdout] 122 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/toolchain.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if let Err(e) = install(&path, channel, config) { [INFO] [stdout] | ^^^^^^^^^^^^^------------------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/toolchain.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 127 ~ match install(&path, channel, config) { Err(e) => { [INFO] [stdout] 128 | teardown(parent.join(&channel_string), config)?; [INFO] [stdout] 129 | Err(e) [INFO] [stdout] 130 ~ } _ => { [INFO] [stdout] 131 | Ok(()) [INFO] [stdout] 132 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/toolchain.rs:474:12 [INFO] [stdout] | [INFO] [stdout] 474 | if let Ok(db) = SettingsDb::try_from(&settings).as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^-------------------------------^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/toolchain.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 474 ~ match SettingsDb::try_from(&settings).as_mut() { Ok(db) => { [INFO] [stdout] 475 | db.remove_toolchain(toolchain.root())?; [INFO] [stdout] 476 | db.save(&settings)?; [INFO] [stdout] 477 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/update.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | if let Some(optional_deps) = manifest.manifest_data().project_optional_dependencies() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/update.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 49 ~ match manifest.manifest_data().project_optional_dependencies() { Some(optional_deps) => { [INFO] [stdout] 50 | for g in gs { [INFO] [stdout] ... [INFO] [stdout] 55 | } [INFO] [stdout] 56 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/python_environment.rs:524:28 [INFO] [stdout] | [INFO] [stdout] 524 | if let Ok(version) = version_from_python_interpreter_file_name(file_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------------------------------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/python_environment.rs:526:25 [INFO] [stdout] | [INFO] [stdout] 526 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 524 ~ match version_from_python_interpreter_file_name(file_name) { Ok(version) => { [INFO] [stdout] 525 | Some((Some(version), item.clone())) [INFO] [stdout] 526 ~ } _ => { [INFO] [stdout] 527 | None [INFO] [stdout] 528 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/workspace.rs:242:16 [INFO] [stdout] | [INFO] [stdout] 242 | if let Ok(Some((_, value))) = db.get_scope_entry(p) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/workspace.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 242 ~ match db.get_scope_entry(p) { Ok(Some((_, value))) => { [INFO] [stdout] 243 | return Some(LocalToolchain::new(PathBuf::from(value.to_string()))); [INFO] [stdout] 244 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking huak v0.0.20-alpha.1 (/tmp/fixit/crates/huak-cli) [INFO] [stderr] Migrating crates/huak-cli/src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `huak_package_manager` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * crates/huak-package-manager/src/ops/run.rs [INFO] [stderr] * crates/huak-package-manager/src/python_environment.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: usage of an `unsafe` block [INFO] [stderr] --> crates/huak-package-manager/src/ops/run.rs:243:42 [INFO] [stderr] | [INFO] [stderr] 243 | .map(|it| it.iter().map(|(k, v)| unsafe { std::env::set_var(k, v) })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: requested on the command line with `-D unsafe-code` [INFO] [stderr] [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> crates/huak-package-manager/src/ops/run.rs:496:9 [INFO] [stderr] | [INFO] [stderr] 496 | unsafe { std::env::set_var("PATH", env_path) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> crates/huak-package-manager/src/python_environment.rs:660:9 [INFO] [stderr] | [INFO] [stderr] 660 | unsafe { std::env::set_var("PATH", path_vals.join(":")) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> crates/huak-package-manager/src/ops/run.rs:242:42 [INFO] [stdout] | [INFO] [stdout] 242 | .map(|it| it.iter().map(|(k, v)| std::env::set_var(k, v))); [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] 242 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 243 ~ .map(|it| it.iter().map(|(k, v)| unsafe { std::env::set_var(k, v) })); [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] --> crates/huak-package-manager/src/ops/run.rs:494:9 [INFO] [stdout] | [INFO] [stdout] 494 | std::env::set_var("PATH", env_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] 494 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 495 ~ unsafe { std::env::set_var("PATH", env_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] --> crates/huak-package-manager/src/python_environment.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 659 | std::env::set_var("PATH", path_vals.join(":")); [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] 659 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 660 ~ unsafe { std::env::set_var("PATH", path_vals.join(":")) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/environment.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | } else if let Ok(Some(v)) = parse_python_version_from_command(&path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------------------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/environment.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | } 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] 49 ~ } else { match parse_python_version_from_command(&path) { Ok(Some(v)) => { [INFO] [stdout] 50 | let interpreter = Interpreter::new(path, v); [INFO] [stdout] 51 | Some(interpreter) [INFO] [stdout] 52 ~ } _ => { [INFO] [stdout] 53 | None [INFO] [stdout] 54 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/add.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | if let Some(pkg) = packages.iter().find(|p| p.name() == dep.name()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/add.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 39 ~ match packages.iter().find(|p| p.name() == dep.name()) { Some(pkg) => { [INFO] [stdout] 40 | dep.requirement_mut().version_or_url = Some(VersionOrUrl::VersionSpecifier( [INFO] [stdout] ... [INFO] [stdout] 43 | )); [INFO] [stdout] 44 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/add.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(pkg) = packages.iter().find(|p| p.name() == dep.name()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/add.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 94 ~ match packages.iter().find(|p| p.name() == dep.name()) { Some(pkg) => { [INFO] [stdout] 95 | dep.requirement_mut().version_or_url = Some(VersionOrUrl::VersionSpecifier( [INFO] [stdout] ... [INFO] [stdout] 98 | )); [INFO] [stdout] 99 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/clean.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | if let Ok(it) = item { [INFO] [stdout] | ^^^^^^^^^^^^^---- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/clean.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 31 ~ match item { Ok(it) => { [INFO] [stdout] 32 | std::fs::remove_dir_all(it).ok(); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/clean.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | if let Ok(it) = item { [INFO] [stdout] | ^^^^^^^^^^^^^---- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/clean.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 41 ~ match item { Ok(it) => { [INFO] [stdout] 42 | std::fs::remove_file(it).ok(); [INFO] [stdout] 43 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | } else if let Some(optional_deps) = manifest.manifest_data().project_optional_dependencies() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/init.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 96 ~ } else { match manifest.manifest_data().project_optional_dependencies() [INFO] [stdout] 97 ~ { Some(optional_deps) => { [INFO] [stdout] 98 | for g in gs { [INFO] [stdout] ... [INFO] [stdout] 103 | } [INFO] [stdout] 104 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | if let Some(reqs) = manifest.manifest_data().project_dependencies() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/init.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 93 ~ match manifest.manifest_data().project_dependencies() { Some(reqs) => { [INFO] [stdout] 94 | dependencies.extend(reqs); [INFO] [stdout] 95 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | if let Some(groups) = manifest [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] 114 | | .manifest_data() [INFO] [stdout] 115 | | .project_optional_dependency_groups() [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] --> crates/huak-package-manager/src/ops/init.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 113 ~ match manifest [INFO] [stdout] 114 | .manifest_data() [INFO] [stdout] 115 | .project_optional_dependency_groups() [INFO] [stdout] 116 ~ { Some(groups) => { [INFO] [stdout] 117 | for key in groups { [INFO] [stdout] ... [INFO] [stdout] 123 | } [INFO] [stdout] 124 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/init.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | if let Some(g) = manifest.manifest_data().project_optional_dependencies() { [INFO] [stdout] | ^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/init.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 118 ~ match manifest.manifest_data().project_optional_dependencies() { Some(g) => { [INFO] [stdout] 119 | if let Some(it) = g.get(&key) { [INFO] [stdout] 120 | dependencies.extend(it.iter().cloned()); [INFO] [stdout] 121 | } [INFO] [stdout] 122 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/toolchain.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if let Err(e) = install(&path, channel, config) { [INFO] [stdout] | ^^^^^^^^^^^^^------------------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/toolchain.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 127 ~ match install(&path, channel, config) { Err(e) => { [INFO] [stdout] 128 | teardown(parent.join(&channel_string), config)?; [INFO] [stdout] 129 | Err(e) [INFO] [stdout] 130 ~ } _ => { [INFO] [stdout] 131 | Ok(()) [INFO] [stdout] 132 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/toolchain.rs:474:12 [INFO] [stdout] | [INFO] [stdout] 474 | if let Ok(db) = SettingsDb::try_from(&settings).as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^-------------------------------^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/toolchain.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 474 ~ match SettingsDb::try_from(&settings).as_mut() { Ok(db) => { [INFO] [stdout] 475 | db.remove_toolchain(toolchain.root())?; [INFO] [stdout] 476 | db.save(&settings)?; [INFO] [stdout] 477 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/ops/update.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | if let Some(optional_deps) = manifest.manifest_data().project_optional_dependencies() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/ops/update.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 49 ~ match manifest.manifest_data().project_optional_dependencies() { Some(optional_deps) => { [INFO] [stdout] 50 | for g in gs { [INFO] [stdout] ... [INFO] [stdout] 55 | } [INFO] [stdout] 56 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/python_environment.rs:524:28 [INFO] [stdout] | [INFO] [stdout] 524 | if let Ok(version) = version_from_python_interpreter_file_name(file_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------------------------------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/python_environment.rs:526:25 [INFO] [stdout] | [INFO] [stdout] 526 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 524 ~ match version_from_python_interpreter_file_name(file_name) { Ok(version) => { [INFO] [stdout] 525 | Some((Some(version), item.clone())) [INFO] [stdout] 526 ~ } _ => { [INFO] [stdout] 527 | None [INFO] [stdout] 528 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/huak-package-manager/src/workspace.rs:242:16 [INFO] [stdout] | [INFO] [stdout] 242 | if let Ok(Some((_, value))) = db.get_scope_entry(p) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [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] = 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] --> crates/huak-package-manager/src/workspace.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 242 ~ match db.get_scope_entry(p) { Ok(Some((_, value))) => { [INFO] [stdout] 243 | return Some(LocalToolchain::new(PathBuf::from(value.to_string()))); [INFO] [stdout] 244 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-cli/src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed crates/huak-cli/src/main.rs (1 fix) [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-cli/src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating crates/huak-cli/tests/mod.rs from 2021 edition to 2024 [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-cli/src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-cli/src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.87s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking huak-python-manager v0.0.0 (/tmp/fixit/crates/huak-python-manager) [INFO] [stderr] Checking huak-pyproject-toml v0.0.0 (/tmp/fixit/crates/huak-pyproject-toml) [INFO] [stderr] Checking huak-workspace v0.0.0 (/tmp/fixit/crates/huak-workspace) [INFO] [stderr] Checking huak-home v0.0.0 (/tmp/fixit/crates/huak-home) [INFO] [stderr] Checking huak-dev v0.0.0 (/tmp/fixit/crates/huak-dev) [INFO] [stderr] Checking huak-toolchain v0.0.0 (/tmp/fixit/crates/huak-toolchain) [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> crates/huak-python-manager/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking huak-package-manager v0.0.0 (/tmp/fixit/crates/huak-package-manager) [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> crates/huak-package-manager/src/ops/run.rs:242:42 [INFO] [stdout] | [INFO] [stdout] 242 | .map(|it| it.iter().map(|(k, v)| std::env::set_var(k, v))); [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] --> crates/huak-package-manager/src/ops/run.rs:242:42 [INFO] [stdout] | [INFO] [stdout] 242 | .map(|it| it.iter().map(|(k, v)| std::env::set_var(k, v))); [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] --> crates/huak-package-manager/src/ops/run.rs:494:9 [INFO] [stdout] | [INFO] [stdout] 494 | std::env::set_var("PATH", env_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: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `huak-package-manager` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> crates/huak-package-manager/src/python_environment.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 659 | std::env::set_var("PATH", path_vals.join(":")); [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 3 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 `huak-package-manager` (lib test) due to 4 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" "f6294677aab1eb891ee38475ae690038e6b139c4b936cf78987d4ef33c0a03c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6294677aab1eb891ee38475ae690038e6b139c4b936cf78987d4ef33c0a03c1", kill_on_drop: false }` [INFO] [stdout] f6294677aab1eb891ee38475ae690038e6b139c4b936cf78987d4ef33c0a03c1