[INFO] fetching crate gistit-cli 0.1.1... [INFO] checking gistit-cli-0.1.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate gistit-cli 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate gistit-cli 0.1.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gistit-cli 0.1.1 [INFO] finished tweaking crates.io crate gistit-cli 0.1.1 [INFO] tweaked toml for crates.io crate gistit-cli 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate gistit-cli 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 3eab2f6e7696b73ad2aa294e05b0e471e35dcf64484efb346f4ff9c63e9c2c69 [INFO] running `Command { std: "docker" "start" "-a" "3eab2f6e7696b73ad2aa294e05b0e471e35dcf64484efb346f4ff9c63e9c2c69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3eab2f6e7696b73ad2aa294e05b0e471e35dcf64484efb346f4ff9c63e9c2c69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eab2f6e7696b73ad2aa294e05b0e471e35dcf64484efb346f4ff9c63e9c2c69", kill_on_drop: false }` [INFO] [stdout] 3eab2f6e7696b73ad2aa294e05b0e471e35dcf64484efb346f4ff9c63e9c2c69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 5b5e2720ea31513e5205d94029fa17ed428fa5d8ed611758d8117d36f253f089 [INFO] running `Command { std: "docker" "start" "-a" "5b5e2720ea31513e5205d94029fa17ed428fa5d8ed611758d8117d36f253f089", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling which v4.2.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Compiling onig_sys v69.7.1 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking tracing-core v0.1.22 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling names v0.12.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking tracing v0.1.30 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking num_threads v0.1.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking line-wrap v0.1.1 [INFO] [stderr] Compiling clap v3.1.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking time v0.3.7 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking terminal_size v0.1.17 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking bytemuck v1.7.3 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking predicates-core v1.0.3 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling semver v1.0.5 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking xml-rs v0.8.4 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking rgb v0.8.31 [INFO] [stderr] Checking globset v0.4.8 [INFO] [stderr] Checking console v0.15.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Compiling bat v0.19.0 [INFO] [stderr] Checking std_prelude v0.2.12 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Checking termtree v0.2.4 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking ignore v0.4.18 [INFO] [stderr] Checking path_abs v0.5.1 [INFO] [stderr] Checking directories v4.0.1 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking predicates-tree v1.0.5 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Checking grep-cli v0.1.6 [INFO] [stderr] Checking ansi_colours v1.1.1 [INFO] [stderr] Checking content_inspector v0.2.4 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Checking indicatif v0.16.2 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking ngrammatic v0.3.5 [INFO] [stderr] Checking predicates v2.1.1 [INFO] [stderr] Compiling clap_complete v3.1.0 [INFO] [stderr] Checking assert_cmd v2.0.4 [INFO] [stderr] Checking assert_fs v1.0.7 [INFO] [stderr] Compiling gistit-cli v0.1.1 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] warning: gistit-cli@0.1.1: generated shell completion scripts at "/opt/rustwide/target/debug/build/gistit-cli-f30af8d0020e279a/out" [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking gistit-project v0.1.0 [INFO] [stderr] Checking onig v6.3.1 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Checking serde v1.0.136 [INFO] [stderr] Compiling gistit-proto v0.1.2 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking gistit-ipc v0.2.0 [INFO] [stderr] Checking h2 v0.3.11 [INFO] [stderr] Checking serde_json v1.0.79 [INFO] [stderr] Checking plist v1.3.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking clircle v0.3.0 [INFO] [stderr] Checking serde_yaml v0.8.23 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking syntect v4.6.0 [INFO] [stderr] Checking hyper v0.14.17 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.9 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ($err: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] 7 | ($err:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `gistit` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | ($msg:literal, $($rest: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] 17 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | ($warn: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] 30 | ($warn:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | ($msg:literal, $($rest: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] 40 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | ($msg: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] 54 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/clipboard.rs [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | ($msg:literal, $($rest: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] 61 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/fmt.rs [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | ($msg: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] 72 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:78:28 [INFO] [stdout] | [INFO] [stdout] 78 | ($msg:literal, $($rest: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] 78 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | ($msg: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] 88 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | ($msg: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] 98 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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/fmt.rs:7:6 [INFO] [stderr] | [INFO] [stderr] 7 | ($err: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/fmt.rs:17:22 [INFO] [stderr] | [INFO] [stderr] 17 | ($msg:literal, $($rest: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/fmt.rs:30:6 [INFO] [stderr] | [INFO] [stderr] 30 | ($warn: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/fmt.rs:40:22 [INFO] [stderr] | [INFO] [stderr] 40 | ($msg:literal, $($rest: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/fmt.rs:54:6 [INFO] [stderr] | [INFO] [stderr] 54 | ($msg: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/fmt.rs:61:22 [INFO] [stderr] | [INFO] [stderr] 61 | ($msg:literal, $($rest: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/fmt.rs:72:6 [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fetch.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | if let ipc::instruction::Kind::FetchResponse(ipc::instruction::FetchResponse { [INFO] [stdout] | ________________^ [INFO] [stdout] 97 | | gistit: Some(gistit), [INFO] [stdout] 98 | | }) = bridge.recv().await?.expect_response()? [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/fetch.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | } 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] 96 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 97 ~ { ipc::instruction::Kind::FetchResponse(ipc::instruction::FetchResponse { [INFO] [stdout] 98 + gistit: Some(gistit), [INFO] [stdout] 99 ~ }) => { [INFO] [stdout] 100 | preview_or_save(&gistit, self.save, &config)?; [INFO] [stdout] 101 ~ } _ => { [INFO] [stdout] 102 | interruptln!(); [INFO] [stdout] 103 | errorln!("gistit hash not found"); [INFO] [stdout] 104 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 72 | ($msg: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/fmt.rs:78:22 [INFO] [stderr] | [INFO] [stderr] 78 | ($msg:literal, $($rest: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/fmt.rs:88:6 [INFO] [stderr] | [INFO] [stderr] 88 | ($msg: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/fmt.rs:98:6 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/send.rs:171:16 [INFO] [stdout] | [INFO] [stdout] 171 | if let ipc::instruction::Kind::ProvideResponse(ipc::instruction::ProvideResponse { [INFO] [stdout] | ________________^ [INFO] [stdout] 172 | | hash: Some(hash), [INFO] [stdout] 173 | | }) = bridge.recv().await?.expect_response()? [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/send.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | } 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] 171 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 172 ~ { ipc::instruction::Kind::ProvideResponse(ipc::instruction::ProvideResponse { [INFO] [stdout] 173 + hash: Some(hash), [INFO] [stdout] 174 ~ }) => { [INFO] [stdout] 175 | if clipboard { [INFO] [stdout] ... [INFO] [stdout] 193 | )); [INFO] [stdout] 194 ~ } _ => { [INFO] [stdout] 195 | interruptln!(); [INFO] [stdout] 196 | errorln!("failed to provide gistit, check gistit-daemon logs"); [INFO] [stdout] 197 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/stdin.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | while let Ok(read) = handle.read_line(&mut buf) { [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/stdin.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 98 | ($msg: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] warning: unexpected `cfg` condition name: `target_is` [INFO] [stderr] --> src/clipboard.rs:98:11 [INFO] [stderr] | [INFO] [stderr] 98 | #[cfg(target_is = "macos")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/node.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | if let ipc::instruction::Kind::StatusResponse( [INFO] [stdout] | ________________________^ [INFO] [stdout] 196 | | ipc::instruction::StatusResponse { peer_id, .. }, [INFO] [stdout] 197 | | ) = bridge.recv().await?.expect_response()? [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/node.rs:200:21 [INFO] [stdout] | [INFO] [stdout] 200 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 195 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 196 ~ { ipc::instruction::Kind::StatusResponse( [INFO] [stdout] 197 + ipc::instruction::StatusResponse { peer_id, .. }, [INFO] [stdout] 198 ~ ) => { [INFO] [stdout] 199 | cleanln!(format!("\n peer id: '{}'\n\n", style(peer_id).bold())); [INFO] [stdout] 200 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [lints.rust] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/node.rs:225:28 [INFO] [stdout] | [INFO] [stdout] 225 | if let ipc::instruction::Kind::StatusResponse(response) = [INFO] [stdout] | ____________________________^ [INFO] [stdout] 226 | | bridge.recv().await?.expect_response()? [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/node.rs:229:25 [INFO] [stdout] | [INFO] [stdout] 229 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 225 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 226 ~ { ipc::instruction::Kind::StatusResponse(response) => { [INFO] [stdout] 227 | format_daemon_status(&response); [INFO] [stdout] 228 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/node.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | if let Ok(log) = fs::File::open(&log_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] --> src/node.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | } 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] 294 ~ match fs::File::open(&log_path) { Ok(log) => { [INFO] [stdout] 295 | let mut reader = BufReader::new(&log); [INFO] [stdout] ... [INFO] [stdout] 315 | } [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | interruptln!(); [INFO] [stdout] 318 | errorln!("can't attach to log file, is it running?"); [INFO] [stdout] 319 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] help: there is a config with a similar name and value [INFO] [stderr] | [INFO] [stderr] 98 | #[cfg(target_os = "macos")] [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `target_is` [INFO] [stderr] --> src/clipboard.rs:109:11 [INFO] [stderr] | [INFO] [stderr] 109 | #[cfg(target_is = "macos")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] help: there is a config with a similar name and value [INFO] [stderr] | [INFO] [stderr] 109 | #[cfg(target_os = "macos")] [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/patch/webbrowser.rs:369:16 [INFO] [stdout] | [INFO] [stdout] 369 | if let Ok(status) = adapt_command(&mut cmd, suppress_output).status() { [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/patch/webbrowser.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 369 ~ match adapt_command(&mut cmd, suppress_output).status() { Ok(status) => { [INFO] [stdout] 370 | return Ok(status); [INFO] [stdout] 371 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `gistit` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/clipboard.rs [INFO] [stderr] * src/fmt.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/fmt.rs:7:6 [INFO] [stderr] | [INFO] [stderr] 7 | ($err:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ($err: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] 7 | ($err:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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/fmt.rs:17:22 [INFO] [stderr] | [INFO] [stderr] 17 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | ($msg:literal, $($rest: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] 17 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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/fmt.rs:30:6 [INFO] [stderr] | [INFO] [stderr] 30 | ($warn: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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | ($warn: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] 30 | ($warn:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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/fmt.rs:40:22 [INFO] [stderr] | [INFO] [stderr] 40 | ($msg:literal, $($rest: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/fmt.rs:54:6 [INFO] [stderr] | [INFO] [stderr] 54 | ($msg: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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | ($msg:literal, $($rest: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] 40 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | ($msg: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] 54 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/fmt.rs:61:22 [INFO] [stderr] | [INFO] [stderr] 61 | ($msg:literal, $($rest: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/fmt.rs:72:6 [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | ($msg:literal, $($rest: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] 61 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 72 | ($msg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | ($msg: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] 72 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:78:28 [INFO] [stdout] | [INFO] [stdout] 78 | ($msg:literal, $($rest: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] 78 | ($msg:literal, $($rest:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | ($msg: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] 88 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/fmt.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | ($msg: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] 98 | ($msg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/fmt.rs:78:22 [INFO] [stderr] | [INFO] [stderr] 78 | ($msg:literal, $($rest: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/fmt.rs:88:6 [INFO] [stderr] | [INFO] [stderr] 88 | ($msg: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/fmt.rs:98:6 [INFO] [stderr] | [INFO] [stderr] 98 | ($msg: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] warning: unexpected `cfg` condition name: `target_is` [INFO] [stderr] --> src/clipboard.rs:98:11 [INFO] [stderr] | [INFO] [stderr] 98 | #[cfg(target_is = "macos")] [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/clipboard.rs:395:9 [INFO] [stdout] | [INFO] [stdout] 395 | env::remove_var("DISPLAY"); [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] 395 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 396 ~ unsafe { env::remove_var("DISPLAY") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/clipboard.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | env::remove_var("WSL_DISTRO_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] 396 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 397 ~ unsafe { env::remove_var("WSL_DISTRO_NAME") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] help: there is a config with a similar name and value [INFO] [stderr] | [INFO] [stderr] 98 | #[cfg(target_os = "macos")] [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `target_is` [INFO] [stderr] --> src/clipboard.rs:109:11 [INFO] [stderr] | [INFO] [stderr] 109 | #[cfg(target_is = "macos")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/clipboard.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | env::remove_var("WAYLAND_DISPLAY"); [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] 397 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 398 ~ unsafe { env::remove_var("WAYLAND_DISPLAY") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] help: there is a config with a similar name and value [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/clipboard.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | env::remove_var("SSH_CLIENT"); [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] 398 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 399 ~ unsafe { env::remove_var("SSH_CLIENT") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 109 | #[cfg(target_os = "macos")] [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 2 warnings emitted [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: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/clipboard.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | env::remove_var("WT_SESSION"); [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] 399 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 400 ~ unsafe { env::remove_var("WT_SESSION") }; [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/clipboard.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | env::remove_var("WSL_INTEROP"); [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] 400 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 401 ~ unsafe { env::remove_var("WSL_INTEROP") }; [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/clipboard.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | env::set_var("DISPLAY", "localhost"); [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] 402 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 403 ~ unsafe { env::set_var("DISPLAY", "localhost") }; [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/clipboard.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | env::set_var("WAYLAND_DISPLAY", "wayland"); [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] 406 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 407 ~ unsafe { env::set_var("WAYLAND_DISPLAY", "wayland") }; [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/clipboard.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | env::set_var("WSL_DISTRO_NAME", "hanna_montana_linux"); [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] 410 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 411 ~ unsafe { env::set_var("WSL_DISTRO_NAME", "hanna_montana_linux") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fetch.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | if let ipc::instruction::Kind::FetchResponse(ipc::instruction::FetchResponse { [INFO] [stdout] | ________________^ [INFO] [stdout] 97 | | gistit: Some(gistit), [INFO] [stdout] 98 | | }) = bridge.recv().await?.expect_response()? [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/fetch.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | } 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] 96 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 97 ~ { ipc::instruction::Kind::FetchResponse(ipc::instruction::FetchResponse { [INFO] [stdout] 98 + gistit: Some(gistit), [INFO] [stdout] 99 ~ }) => { [INFO] [stdout] 100 | preview_or_save(&gistit, self.save, &config)?; [INFO] [stdout] 101 ~ } _ => { [INFO] [stdout] 102 | interruptln!(); [INFO] [stdout] 103 | errorln!("gistit hash not found"); [INFO] [stdout] 104 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/send.rs:171:16 [INFO] [stdout] | [INFO] [stdout] 171 | if let ipc::instruction::Kind::ProvideResponse(ipc::instruction::ProvideResponse { [INFO] [stdout] | ________________^ [INFO] [stdout] 172 | | hash: Some(hash), [INFO] [stdout] 173 | | }) = bridge.recv().await?.expect_response()? [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/send.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | } 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] 171 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 172 ~ { ipc::instruction::Kind::ProvideResponse(ipc::instruction::ProvideResponse { [INFO] [stdout] 173 + hash: Some(hash), [INFO] [stdout] 174 ~ }) => { [INFO] [stdout] 175 | if clipboard { [INFO] [stdout] ... [INFO] [stdout] 193 | )); [INFO] [stdout] 194 ~ } _ => { [INFO] [stdout] 195 | interruptln!(); [INFO] [stdout] 196 | errorln!("failed to provide gistit, check gistit-daemon logs"); [INFO] [stdout] 197 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/stdin.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | while let Ok(read) = handle.read_line(&mut buf) { [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/stdin.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/node.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | if let ipc::instruction::Kind::StatusResponse( [INFO] [stdout] | ________________________^ [INFO] [stdout] 196 | | ipc::instruction::StatusResponse { peer_id, .. }, [INFO] [stdout] 197 | | ) = bridge.recv().await?.expect_response()? [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/node.rs:200:21 [INFO] [stdout] | [INFO] [stdout] 200 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 195 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 196 ~ { ipc::instruction::Kind::StatusResponse( [INFO] [stdout] 197 + ipc::instruction::StatusResponse { peer_id, .. }, [INFO] [stdout] 198 ~ ) => { [INFO] [stdout] 199 | cleanln!(format!("\n peer id: '{}'\n\n", style(peer_id).bold())); [INFO] [stdout] 200 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/node.rs:225:28 [INFO] [stdout] | [INFO] [stdout] 225 | if let ipc::instruction::Kind::StatusResponse(response) = [INFO] [stdout] | ____________________________^ [INFO] [stdout] 226 | | bridge.recv().await?.expect_response()? [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/node.rs:229:25 [INFO] [stdout] | [INFO] [stdout] 229 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 225 ~ match bridge.recv().await?.expect_response()? [INFO] [stdout] 226 ~ { ipc::instruction::Kind::StatusResponse(response) => { [INFO] [stdout] 227 | format_daemon_status(&response); [INFO] [stdout] 228 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/node.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | if let Ok(log) = fs::File::open(&log_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] --> src/node.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | } 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] 294 ~ match fs::File::open(&log_path) { Ok(log) => { [INFO] [stdout] 295 | let mut reader = BufReader::new(&log); [INFO] [stdout] ... [INFO] [stdout] 315 | } [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | interruptln!(); [INFO] [stdout] 318 | errorln!("can't attach to log file, is it running?"); [INFO] [stdout] 319 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/patch/webbrowser.rs:369:16 [INFO] [stdout] | [INFO] [stdout] 369 | if let Ok(status) = adapt_command(&mut cmd, suppress_output).status() { [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/patch/webbrowser.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 369 ~ match adapt_command(&mut cmd, suppress_output).status() { Ok(status) => { [INFO] [stdout] 370 | return Ok(status); [INFO] [stdout] 371 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.94s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling gistit-cli v0.1.1 (/tmp/fixit) [INFO] [stderr] warning: gistit-cli@0.1.1: generated shell completion scripts at "/opt/rustwide/target/debug/build/gistit-cli-f30af8d0020e279a/out" [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 98 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `target_is` [INFO] [stdout] --> src/clipboard.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_is = "macos")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_is, values("macos"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(target_is, values(\"macos\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(target_os = "macos")] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/clipboard.rs:395:9 [INFO] [stdout] | [INFO] [stdout] 395 | env::remove_var("DISPLAY"); [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/clipboard.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | env::remove_var("WSL_DISTRO_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/clipboard.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | env::remove_var("WAYLAND_DISPLAY"); [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/clipboard.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | env::remove_var("SSH_CLIENT"); [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/clipboard.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | env::remove_var("WT_SESSION"); [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/clipboard.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | env::remove_var("WSL_INTEROP"); [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/clipboard.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | env::set_var("DISPLAY", "localhost"); [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/clipboard.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | env::set_var("WAYLAND_DISPLAY", "wayland"); [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/clipboard.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | env::set_var("WSL_DISTRO_NAME", "hanna_montana_linux"); [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: gistit-cli@0.1.1: generated shell completion scripts at "/opt/rustwide/target/debug/build/gistit-cli-f30af8d0020e279a/out" [INFO] [stderr] [INFO] [stderr] error: could not compile `gistit-cli` (bin "gistit" test) due to 10 previous errors; 2 warnings 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" "5b5e2720ea31513e5205d94029fa17ed428fa5d8ed611758d8117d36f253f089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b5e2720ea31513e5205d94029fa17ed428fa5d8ed611758d8117d36f253f089", kill_on_drop: false }` [INFO] [stdout] 5b5e2720ea31513e5205d94029fa17ed428fa5d8ed611758d8117d36f253f089