[INFO] fetching crate rterm 0.0.9... [INFO] checking rterm-0.0.9 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate rterm 0.0.9 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate rterm 0.0.9 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 rterm 0.0.9 [INFO] finished tweaking crates.io crate rterm 0.0.9 [INFO] tweaked toml for crates.io crate rterm 0.0.9 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate rterm 0.0.9 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 1cb0015601c36658e0b3687c8068b6cb3ce32c604d4fb0be9f37a0f9411229a3 [INFO] running `Command { std: "docker" "start" "-a" "1cb0015601c36658e0b3687c8068b6cb3ce32c604d4fb0be9f37a0f9411229a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cb0015601c36658e0b3687c8068b6cb3ce32c604d4fb0be9f37a0f9411229a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cb0015601c36658e0b3687c8068b6cb3ce32c604d4fb0be9f37a0f9411229a3", kill_on_drop: false }` [INFO] [stdout] 1cb0015601c36658e0b3687c8068b6cb3ce32c604d4fb0be9f37a0f9411229a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 86e639992916146c74f4cca38a4b25204decedbd4ab4d04261995116753d84ba [INFO] running `Command { std: "docker" "start" "-a" "86e639992916146c74f4cca38a4b25204decedbd4ab4d04261995116753d84ba", 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 pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Compiling rterm v0.0.9 (/tmp/fixit) [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Checking vte v0.13.0 [INFO] [stderr] Checking servo-fontconfig v0.5.1 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rterm` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/keymap.rs [INFO] [stderr] * src/shortcut.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/keymap.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:44 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:58 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:80 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/shortcut.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | $({ $mask:expr_2021, $k:expr_2021, $function:path },)* [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/shortcut.rs:30:30 [INFO] [stderr] | [INFO] [stderr] 30 | $({ $mask:expr_2021, $k:expr_2021, $function:path },)* [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 7 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/keymap.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr_2021, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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/keymap.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr_2021, $s:expr, $appkeypad:expr, $appcursor: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/keymap.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr, $s:expr_2021, $appkeypad:expr, $appcursor: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/keymap.rs:24:54 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:71 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor:expr_2021 },)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/shortcut.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | $({ $mask:expr, $k:expr, $function:path },)* [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] 30 | $({ $mask:expr_2021, $k:expr, $function:path },)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/shortcut.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | $({ $mask:expr, $k:expr, $function:path },)* [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] 30 | $({ $mask:expr, $k:expr_2021, $function:path },)* [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/shell.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | env::remove_var("COLUMNS"); [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] 15 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 16 ~ unsafe { env::remove_var("COLUMNS") }; [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/shell.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | env::remove_var("LINES"); [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] 16 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 17 ~ unsafe { env::remove_var("LINES") }; [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/shell.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | env::remove_var("TERMCAP"); [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] 17 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 18 ~ unsafe { env::remove_var("TERMCAP") }; [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/shell.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | env::set_var("LOGNAME", &user.name); [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] 19 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 20 ~ unsafe { env::set_var("LOGNAME", &user.name) }; [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/shell.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | env::set_var("USER", &user.name); [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] 20 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 21 ~ unsafe { env::set_var("USER", &user.name) }; [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/shell.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env::set_var("HOME", &user.dir); [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] 21 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 22 ~ unsafe { env::set_var("HOME", &user.dir) }; [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/shell.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | env::set_var("SHELL", &shell); [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] 22 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 23 ~ unsafe { env::set_var("SHELL", &shell) }; [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/shell.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | env::set_var("TERM", "xterm"); [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] 23 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 24 ~ unsafe { env::set_var("TERM", "xterm") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `x11::xft::XftColorFree` is unsafe and requires unsafe block [INFO] [stdout] --> src/x11_wrapper.rs:579:5 [INFO] [stdout] | [INFO] [stdout] 579 | xft::XftColorFree(dpy, vis, cmap, &mut color as *mut XftColor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/x11_wrapper.rs:578:1 [INFO] [stdout] | [INFO] [stdout] 578 | pub unsafe fn XftColorFree(dpy: Display, vis: Visual, cmap: Colormap, mut color: XftColor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/term.rs:612:15 [INFO] [stdout] | [INFO] [stdout] 612 | while let Some(next_p) = f(self, &point) { [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] --> src/term.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:419:43 [INFO] [stdout] | [INFO] [stdout] 419 | ... } else if let Err(err) = self.win.setcolor(idx, Some(&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] --> src/vte.rs:421:33 [INFO] [stdout] | [INFO] [stdout] 421 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 419 ~ } else { match self.win.setcolor(idx, Some(&name)) { Err(err) => { [INFO] [stdout] 420 | println!("OSC 4 error: {}", err); [INFO] [stdout] 421 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:447:35 [INFO] [stdout] | [INFO] [stdout] 447 | } else if let Err(err) = self.win.setcolor(FG_COLOR as u16, Some(&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] --> src/vte.rs:449:25 [INFO] [stdout] | [INFO] [stdout] 449 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 447 ~ } else { match self.win.setcolor(FG_COLOR as u16, Some(&name)) { Err(err) => { [INFO] [stdout] 448 | println!("OSC 10 error: {}", err); [INFO] [stdout] 449 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:467:35 [INFO] [stdout] | [INFO] [stdout] 467 | } else if let Err(err) = self.win.setcolor(BG_COLOR as u16, Some(&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] --> src/vte.rs:469:25 [INFO] [stdout] | [INFO] [stdout] 469 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 467 ~ } else { match self.win.setcolor(BG_COLOR as u16, Some(&name)) { Err(err) => { [INFO] [stdout] 468 | println!("OSC 11 error: {}", err); [INFO] [stdout] 469 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:487:35 [INFO] [stdout] | [INFO] [stdout] 487 | } else if let Err(err) = self.win.setcolor(CURSOR_COLOR as u16, Some(&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] --> src/vte.rs:490:25 [INFO] [stdout] | [INFO] [stdout] 490 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 487 ~ } else { match self.win.setcolor(CURSOR_COLOR as u16, Some(&name)) [INFO] [stdout] 488 ~ { Err(err) => { [INFO] [stdout] 489 | println!("OSC 12 error: {}", err); [INFO] [stdout] 490 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:508:32 [INFO] [stdout] | [INFO] [stdout] 508 | ... if let Err(err) = self.win.setcolor(idx, None) { [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] --> src/vte.rs:510:29 [INFO] [stdout] | [INFO] [stdout] 510 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 508 ~ match self.win.setcolor(idx, None) { Err(err) => { [INFO] [stdout] 509 | println!("OSC 104 error: {}", err); [INFO] [stdout] 510 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:531:24 [INFO] [stdout] | [INFO] [stdout] 531 | if let Err(err) = self.win.setcolor(FG_COLOR as u16, Some(FG_COLOR_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] --> src/vte.rs:533:21 [INFO] [stdout] | [INFO] [stdout] 533 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 531 ~ match self.win.setcolor(FG_COLOR as u16, Some(FG_COLOR_NAME)) { Err(err) => { [INFO] [stdout] 532 | println!("OSC 110 error: {}", err); [INFO] [stdout] 533 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:544:24 [INFO] [stdout] | [INFO] [stdout] 544 | if let Err(err) = self.win.setcolor(BG_COLOR as u16, Some(BG_COLOR_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] --> src/vte.rs:546:21 [INFO] [stdout] | [INFO] [stdout] 546 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 544 ~ match self.win.setcolor(BG_COLOR as u16, Some(BG_COLOR_NAME)) { Err(err) => { [INFO] [stdout] 545 | println!("OSC 111 error: {}", err); [INFO] [stdout] 546 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:557:24 [INFO] [stdout] | [INFO] [stdout] 557 | if let Err(err) = self [INFO] [stdout] | ________________________^ - [INFO] [stdout] | |_______________________________________| [INFO] [stdout] 558 | || .win [INFO] [stdout] 559 | || .setcolor(CURSOR_COLOR as u16, Some(CURSOR_COLOR_NAME)) [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/vte.rs:562:21 [INFO] [stdout] | [INFO] [stdout] 562 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 557 ~ match self [INFO] [stdout] 558 | .win [INFO] [stdout] 559 | .setcolor(CURSOR_COLOR as u16, Some(CURSOR_COLOR_NAME)) [INFO] [stdout] 560 ~ { Err(err) => { [INFO] [stdout] 561 | println!("OSC 112 error: {}", err); [INFO] [stdout] 562 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/win.rs:300:16 [INFO] [stdout] | [INFO] [stdout] 300 | if let Ok(color) = x11::xloadcolor(self.dpy, self.vis, self.cmap, i, None) { [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] --> src/win.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 300 ~ match x11::xloadcolor(self.dpy, self.vis, self.cmap, i, None) { Ok(color) => { [INFO] [stdout] 301 | self.colors.push(color); [INFO] [stdout] 302 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/win.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | if let Ok(color) = x11::xloadcolor(self.dpy, self.vis, self.cmap, 259, Some(BG_COLOR_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] --> src/win.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 326 ~ match x11::xloadcolor(self.dpy, self.vis, self.cmap, 259, Some(BG_COLOR_NAME)) [INFO] [stdout] 327 ~ { Ok(color) => { [INFO] [stdout] 328 | self.colors.push(color); [INFO] [stdout] 329 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/win.rs:827:16 [INFO] [stdout] | [INFO] [stdout] 827 | if let Ok(nfg) = x11::XftColorAllocValue(self.dpy, self.vis, self.cmap, &faintfg) { [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] --> src/win.rs:829:13 [INFO] [stdout] | [INFO] [stdout] 829 | } 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] 827 ~ match x11::XftColorAllocValue(self.dpy, self.vis, self.cmap, &faintfg) { Ok(nfg) => { [INFO] [stdout] 828 | fg = nfg; [INFO] [stdout] 829 ~ } _ => { [INFO] [stdout] 830 | println!("Failed to alloc truecolor for FAINT") [INFO] [stdout] 831 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/x11_wrapper.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | if let Ok(name) = CString::new(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] --> src/x11_wrapper.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | } 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] 214 ~ match CString::new(name) { Ok(name) => { [INFO] [stdout] 215 | unsafe { [INFO] [stdout] 216 | xlib::XStoreName(dpy, win, name.as_ptr() as *mut _); [INFO] [stdout] 217 | } [INFO] [stdout] 218 ~ } _ => { [INFO] [stdout] 219 | println!("XStoreName {} not a valid c_str.", name); [INFO] [stdout] 220 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/x11_wrapper.rs:640:8 [INFO] [stdout] | [INFO] [stdout] 640 | if let Ok(p) = CString::new(title) { [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] --> src/x11_wrapper.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | } 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] 640 ~ match CString::new(title) { Ok(p) => { [INFO] [stdout] 641 | let mut pt = p.into_bytes_with_nul(); [INFO] [stdout] ... [INFO] [stdout] 667 | } [INFO] [stdout] 668 ~ } _ => { [INFO] [stdout] 669 | println!("xseticontitle: {} not a valid c_str.", title); [INFO] [stdout] 670 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/x11_wrapper.rs:674:8 [INFO] [stdout] | [INFO] [stdout] 674 | if let Ok(p) = CString::new(title) { [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] --> src/x11_wrapper.rs:702:5 [INFO] [stdout] | [INFO] [stdout] 702 | } 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] 674 ~ match CString::new(title) { Ok(p) => { [INFO] [stdout] 675 | let mut pt = p.into_bytes_with_nul(); [INFO] [stdout] ... [INFO] [stdout] 701 | } [INFO] [stdout] 702 ~ } _ => { [INFO] [stdout] 703 | println!("xsettitle: {} not a valid c_str.", title); [INFO] [stdout] 704 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rterm` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/keymap.rs [INFO] [stderr] * src/shortcut.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/keymap.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:44 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:58 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:80 [INFO] [stderr] | [INFO] [stderr] 24 | $({ $k:expr_2021, $mask:expr_2021, $s:expr_2021, $appkeypad:expr_2021, $appcursor: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/shortcut.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | $({ $mask:expr_2021, $k:expr_2021, $function:path },)* [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/shortcut.rs:30:30 [INFO] [stderr] | [INFO] [stderr] 30 | $({ $mask:expr_2021, $k:expr_2021, $function:path },)* [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 7 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/keymap.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr_2021, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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/keymap.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr_2021, $s:expr, $appkeypad:expr, $appcursor: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/keymap.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr, $s:expr_2021, $appkeypad:expr, $appcursor: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/keymap.rs:24:54 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr_2021, $appcursor: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/keymap.rs:24:71 [INFO] [stdout] | [INFO] [stdout] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor: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] 24 | $({ $k:expr, $mask:expr, $s:expr, $appkeypad:expr, $appcursor:expr_2021 },)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/shortcut.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | $({ $mask:expr, $k:expr, $function:path },)* [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] 30 | $({ $mask:expr_2021, $k:expr, $function:path },)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/shortcut.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | $({ $mask:expr, $k:expr, $function:path },)* [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] 30 | $({ $mask:expr, $k:expr_2021, $function:path },)* [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/shell.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | env::remove_var("COLUMNS"); [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] 15 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 16 ~ unsafe { env::remove_var("COLUMNS") }; [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/shell.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | env::remove_var("LINES"); [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] 16 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 17 ~ unsafe { env::remove_var("LINES") }; [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/shell.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | env::remove_var("TERMCAP"); [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] 17 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 18 ~ unsafe { env::remove_var("TERMCAP") }; [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/shell.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | env::set_var("LOGNAME", &user.name); [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] 19 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 20 ~ unsafe { env::set_var("LOGNAME", &user.name) }; [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/shell.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | env::set_var("USER", &user.name); [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] 20 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 21 ~ unsafe { env::set_var("USER", &user.name) }; [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/shell.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env::set_var("HOME", &user.dir); [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] 21 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 22 ~ unsafe { env::set_var("HOME", &user.dir) }; [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/shell.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | env::set_var("SHELL", &shell); [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] 22 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 23 ~ unsafe { env::set_var("SHELL", &shell) }; [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/shell.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | env::set_var("TERM", "xterm"); [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] 23 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 24 ~ unsafe { env::set_var("TERM", "xterm") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `x11::xft::XftColorFree` is unsafe and requires unsafe block [INFO] [stdout] --> src/x11_wrapper.rs:579:5 [INFO] [stdout] | [INFO] [stdout] 579 | xft::XftColorFree(dpy, vis, cmap, &mut color as *mut XftColor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/x11_wrapper.rs:578:1 [INFO] [stdout] | [INFO] [stdout] 578 | pub unsafe fn XftColorFree(dpy: Display, vis: Visual, cmap: Colormap, mut color: XftColor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/term.rs:612:15 [INFO] [stdout] | [INFO] [stdout] 612 | while let Some(next_p) = f(self, &point) { [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] --> src/term.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:419:43 [INFO] [stdout] | [INFO] [stdout] 419 | ... } else if let Err(err) = self.win.setcolor(idx, Some(&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] --> src/vte.rs:421:33 [INFO] [stdout] | [INFO] [stdout] 421 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 419 ~ } else { match self.win.setcolor(idx, Some(&name)) { Err(err) => { [INFO] [stdout] 420 | println!("OSC 4 error: {}", err); [INFO] [stdout] 421 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:447:35 [INFO] [stdout] | [INFO] [stdout] 447 | } else if let Err(err) = self.win.setcolor(FG_COLOR as u16, Some(&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] --> src/vte.rs:449:25 [INFO] [stdout] | [INFO] [stdout] 449 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 447 ~ } else { match self.win.setcolor(FG_COLOR as u16, Some(&name)) { Err(err) => { [INFO] [stdout] 448 | println!("OSC 10 error: {}", err); [INFO] [stdout] 449 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:467:35 [INFO] [stdout] | [INFO] [stdout] 467 | } else if let Err(err) = self.win.setcolor(BG_COLOR as u16, Some(&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] --> src/vte.rs:469:25 [INFO] [stdout] | [INFO] [stdout] 469 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 467 ~ } else { match self.win.setcolor(BG_COLOR as u16, Some(&name)) { Err(err) => { [INFO] [stdout] 468 | println!("OSC 11 error: {}", err); [INFO] [stdout] 469 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:487:35 [INFO] [stdout] | [INFO] [stdout] 487 | } else if let Err(err) = self.win.setcolor(CURSOR_COLOR as u16, Some(&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] --> src/vte.rs:490:25 [INFO] [stdout] | [INFO] [stdout] 490 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 487 ~ } else { match self.win.setcolor(CURSOR_COLOR as u16, Some(&name)) [INFO] [stdout] 488 ~ { Err(err) => { [INFO] [stdout] 489 | println!("OSC 12 error: {}", err); [INFO] [stdout] 490 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:508:32 [INFO] [stdout] | [INFO] [stdout] 508 | ... if let Err(err) = self.win.setcolor(idx, None) { [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] --> src/vte.rs:510:29 [INFO] [stdout] | [INFO] [stdout] 510 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 508 ~ match self.win.setcolor(idx, None) { Err(err) => { [INFO] [stdout] 509 | println!("OSC 104 error: {}", err); [INFO] [stdout] 510 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:531:24 [INFO] [stdout] | [INFO] [stdout] 531 | if let Err(err) = self.win.setcolor(FG_COLOR as u16, Some(FG_COLOR_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] --> src/vte.rs:533:21 [INFO] [stdout] | [INFO] [stdout] 533 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 531 ~ match self.win.setcolor(FG_COLOR as u16, Some(FG_COLOR_NAME)) { Err(err) => { [INFO] [stdout] 532 | println!("OSC 110 error: {}", err); [INFO] [stdout] 533 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:544:24 [INFO] [stdout] | [INFO] [stdout] 544 | if let Err(err) = self.win.setcolor(BG_COLOR as u16, Some(BG_COLOR_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] --> src/vte.rs:546:21 [INFO] [stdout] | [INFO] [stdout] 546 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 544 ~ match self.win.setcolor(BG_COLOR as u16, Some(BG_COLOR_NAME)) { Err(err) => { [INFO] [stdout] 545 | println!("OSC 111 error: {}", err); [INFO] [stdout] 546 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/vte.rs:557:24 [INFO] [stdout] | [INFO] [stdout] 557 | if let Err(err) = self [INFO] [stdout] | ________________________^ - [INFO] [stdout] | |_______________________________________| [INFO] [stdout] 558 | || .win [INFO] [stdout] 559 | || .setcolor(CURSOR_COLOR as u16, Some(CURSOR_COLOR_NAME)) [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/vte.rs:562:21 [INFO] [stdout] | [INFO] [stdout] 562 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 557 ~ match self [INFO] [stdout] 558 | .win [INFO] [stdout] 559 | .setcolor(CURSOR_COLOR as u16, Some(CURSOR_COLOR_NAME)) [INFO] [stdout] 560 ~ { Err(err) => { [INFO] [stdout] 561 | println!("OSC 112 error: {}", err); [INFO] [stdout] 562 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/win.rs:300:16 [INFO] [stdout] | [INFO] [stdout] 300 | if let Ok(color) = x11::xloadcolor(self.dpy, self.vis, self.cmap, i, None) { [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] --> src/win.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 300 ~ match x11::xloadcolor(self.dpy, self.vis, self.cmap, i, None) { Ok(color) => { [INFO] [stdout] 301 | self.colors.push(color); [INFO] [stdout] 302 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/win.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | if let Ok(color) = x11::xloadcolor(self.dpy, self.vis, self.cmap, 259, Some(BG_COLOR_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] --> src/win.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 326 ~ match x11::xloadcolor(self.dpy, self.vis, self.cmap, 259, Some(BG_COLOR_NAME)) [INFO] [stdout] 327 ~ { Ok(color) => { [INFO] [stdout] 328 | self.colors.push(color); [INFO] [stdout] 329 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/win.rs:827:16 [INFO] [stdout] | [INFO] [stdout] 827 | if let Ok(nfg) = x11::XftColorAllocValue(self.dpy, self.vis, self.cmap, &faintfg) { [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] --> src/win.rs:829:13 [INFO] [stdout] | [INFO] [stdout] 829 | } 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] 827 ~ match x11::XftColorAllocValue(self.dpy, self.vis, self.cmap, &faintfg) { Ok(nfg) => { [INFO] [stdout] 828 | fg = nfg; [INFO] [stdout] 829 ~ } _ => { [INFO] [stdout] 830 | println!("Failed to alloc truecolor for FAINT") [INFO] [stdout] 831 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/x11_wrapper.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | if let Ok(name) = CString::new(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] --> src/x11_wrapper.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | } 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] 214 ~ match CString::new(name) { Ok(name) => { [INFO] [stdout] 215 | unsafe { [INFO] [stdout] 216 | xlib::XStoreName(dpy, win, name.as_ptr() as *mut _); [INFO] [stdout] 217 | } [INFO] [stdout] 218 ~ } _ => { [INFO] [stdout] 219 | println!("XStoreName {} not a valid c_str.", name); [INFO] [stdout] 220 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/x11_wrapper.rs:640:8 [INFO] [stdout] | [INFO] [stdout] 640 | if let Ok(p) = CString::new(title) { [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] --> src/x11_wrapper.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | } 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] 640 ~ match CString::new(title) { Ok(p) => { [INFO] [stdout] 641 | let mut pt = p.into_bytes_with_nul(); [INFO] [stdout] ... [INFO] [stdout] 667 | } [INFO] [stdout] 668 ~ } _ => { [INFO] [stdout] 669 | println!("xseticontitle: {} not a valid c_str.", title); [INFO] [stdout] 670 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/x11_wrapper.rs:674:8 [INFO] [stdout] | [INFO] [stdout] 674 | if let Ok(p) = CString::new(title) { [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] --> src/x11_wrapper.rs:702:5 [INFO] [stdout] | [INFO] [stdout] 702 | } 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] 674 ~ match CString::new(title) { Ok(p) => { [INFO] [stdout] 675 | let mut pt = p.into_bytes_with_nul(); [INFO] [stdout] ... [INFO] [stdout] 701 | } [INFO] [stdout] 702 ~ } _ => { [INFO] [stdout] 703 | println!("xsettitle: {} not a valid c_str.", title); [INFO] [stdout] 704 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.33s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling rterm v0.0.9 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/shell.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | env::remove_var("COLUMNS"); [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/shell.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | env::remove_var("COLUMNS"); [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/shell.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | env::remove_var("LINES"); [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/shell.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | env::remove_var("TERMCAP"); [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/shell.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | env::remove_var("LINES"); [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/shell.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | env::set_var("LOGNAME", &user.name); [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/shell.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | env::remove_var("TERMCAP"); [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/shell.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | env::set_var("USER", &user.name); [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/shell.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | env::set_var("LOGNAME", &user.name); [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/shell.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env::set_var("HOME", &user.dir); [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/shell.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | env::set_var("USER", &user.name); [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/shell.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env::set_var("HOME", &user.dir); [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/shell.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | env::set_var("SHELL", &shell); [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/shell.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | env::set_var("TERM", "xterm"); [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/shell.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | env::set_var("SHELL", &shell); [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/shell.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | env::set_var("TERM", "xterm"); [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] warning[E0133]: call to unsafe function `x11::xft::XftColorFree` is unsafe and requires unsafe block [INFO] [stdout] --> src/x11_wrapper.rs:579:5 [INFO] [stdout] | [INFO] [stdout] 579 | xft::XftColorFree(dpy, vis, cmap, &mut color as *mut XftColor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/x11_wrapper.rs:578:1 [INFO] [stdout] | [INFO] [stdout] 578 | pub unsafe fn XftColorFree(dpy: Display, vis: Visual, cmap: Colormap, mut color: XftColor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `x11::xft::XftColorFree` is unsafe and requires unsafe block [INFO] [stdout] --> src/x11_wrapper.rs:579:5 [INFO] [stdout] | [INFO] [stdout] 579 | xft::XftColorFree(dpy, vis, cmap, &mut color as *mut XftColor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/x11_wrapper.rs:578:1 [INFO] [stdout] | [INFO] [stdout] 578 | pub unsafe fn XftColorFree(dpy: Display, vis: Visual, cmap: Colormap, mut color: XftColor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rterm` (lib) due to 9 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rterm` (lib test) due to 9 previous errors; 1 warning emitted [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" "86e639992916146c74f4cca38a4b25204decedbd4ab4d04261995116753d84ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86e639992916146c74f4cca38a4b25204decedbd4ab4d04261995116753d84ba", kill_on_drop: false }` [INFO] [stdout] 86e639992916146c74f4cca38a4b25204decedbd4ab4d04261995116753d84ba