[INFO] fetching crate encre-css-cli 0.14.1... [INFO] checking encre-css-cli-0.14.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate encre-css-cli 0.14.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate encre-css-cli 0.14.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 encre-css-cli 0.14.1 [INFO] finished tweaking crates.io crate encre-css-cli 0.14.1 [INFO] tweaked toml for crates.io crate encre-css-cli 0.14.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate encre-css-cli 0.14.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a598c584509238a2e20938c1da0197922b6cbe6c56493f1f2ba8930bceb5b0a8 [INFO] running `Command { std: "docker" "start" "-a" "a598c584509238a2e20938c1da0197922b6cbe6c56493f1f2ba8930bceb5b0a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a598c584509238a2e20938c1da0197922b6cbe6c56493f1f2ba8930bceb5b0a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a598c584509238a2e20938c1da0197922b6cbe6c56493f1f2ba8930bceb5b0a8", kill_on_drop: false }` [INFO] [stdout] a598c584509238a2e20938c1da0197922b6cbe6c56493f1f2ba8930bceb5b0a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d529e9231f2fefe64205d4002d291754fca721a7b69e5a5edf8037048b2af5a3 [INFO] running `Command { std: "docker" "start" "-a" "d529e9231f2fefe64205d4002d291754fca721a7b69e5a5edf8037048b2af5a3", 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.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking aho-corasick v1.0.4 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking winnow v0.5.10 [INFO] [stderr] Compiling backtrace v0.3.68 [INFO] [stderr] Checking gimli v0.27.3 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling const_format_proc_macros v0.2.31 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking object v0.31.1 [INFO] [stderr] Checking filetime v0.2.22 [INFO] [stderr] Checking toml_edit v0.21.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking addr2line v0.20.0 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking pori v0.0.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking const_format v0.2.31 [INFO] [stderr] Checking clap_builder v4.3.21 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Checking toml v0.8.8 [INFO] [stderr] Checking notify-debouncer-mini v0.4.1 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking color-eyre v0.6.2 [INFO] [stderr] Checking wax v0.6.0 [INFO] [stderr] Checking encre-css v0.14.1 [INFO] [stderr] Checking clap v4.3.21 [INFO] [stderr] Checking encre-css-cli v0.14.1 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `encrecss` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> src/main.rs:83:9 [INFO] [stderr] | [INFO] [stderr] 83 | unsafe { env::set_var("RUST_BACKTRACE", "1") }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/main.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | #![forbid(unsafe_code)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = 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] 82 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 83 ~ unsafe { env::set_var("RUST_BACKTRACE", "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | if let (Ok(res1), Ok(res2)) = (res1, res2) { [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/build.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | } 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] 39 ~ match (res1, res2) { (Ok(res1), Ok(res2)) => { [INFO] [stdout] 40 | res1 == res2 [INFO] [stdout] 41 ~ } _ => { [INFO] [stdout] 42 | false [INFO] [stdout] 43 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(file) = output { [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/build.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | } 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] 53 ~ match output { Some(file) => { [INFO] [stdout] 54 | if let Some(parent) = file.as_ref().parent() { [INFO] [stdout] ... [INFO] [stdout] 59 | fs::write(file, css).expect("failed to write to the file"); [INFO] [stdout] 60 ~ } _ => { [INFO] [stdout] 61 | // If no file is specified, the CSS generated is written to the standard output [INFO] [stdout] 62 | println!("{css}"); [INFO] [stdout] 63 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | if let Err(e) = file.read_to_string(buffer) { [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/build.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 89 ~ match file.read_to_string(buffer) { Err(e) => { [INFO] [stdout] 90 | eprintln!( [INFO] [stdout] ... [INFO] [stdout] 94 | ); [INFO] [stdout] 95 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | if let Ok(entry) = entry { [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/build.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 105 ~ match entry { Ok(entry) => { [INFO] [stdout] 106 | let path = entry.path(); [INFO] [stdout] ... [INFO] [stdout] 138 | } [INFO] [stdout] 139 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:122:32 [INFO] [stdout] | [INFO] [stdout] 122 | ... if let Err(e) = reader.read_to_string(buffer) { [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/build.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 122 ~ match reader.read_to_string(buffer) { Err(e) => { [INFO] [stdout] 123 | eprintln!( [INFO] [stdout] ... [INFO] [stdout] 127 | ); [INFO] [stdout] 128 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:247:48 [INFO] [stdout] | [INFO] [stdout] 247 | let extra_input_files = if let Some(ref extra_input) = *extra_input { [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/build.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | } 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] 247 ~ let extra_input_files = match *extra_input { Some(ref extra_input) => { [INFO] [stdout] 248 | let (prefix, glob) = match Glob::new( [INFO] [stdout] ... [INFO] [stdout] 269 | } [INFO] [stdout] 270 ~ } _ => { [INFO] [stdout] 271 | None [INFO] [stdout] 272 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `encrecss` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> src/main.rs:83:9 [INFO] [stderr] | [INFO] [stderr] 83 | unsafe { env::set_var("RUST_BACKTRACE", "1") }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/main.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | #![forbid(unsafe_code)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = 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] 82 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 83 ~ unsafe { env::set_var("RUST_BACKTRACE", "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | if let (Ok(res1), Ok(res2)) = (res1, res2) { [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/build.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | } 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] 39 ~ match (res1, res2) { (Ok(res1), Ok(res2)) => { [INFO] [stdout] 40 | res1 == res2 [INFO] [stdout] 41 ~ } _ => { [INFO] [stdout] 42 | false [INFO] [stdout] 43 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(file) = output { [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/build.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | } 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] 53 ~ match output { Some(file) => { [INFO] [stdout] 54 | if let Some(parent) = file.as_ref().parent() { [INFO] [stdout] ... [INFO] [stdout] 59 | fs::write(file, css).expect("failed to write to the file"); [INFO] [stdout] 60 ~ } _ => { [INFO] [stdout] 61 | // If no file is specified, the CSS generated is written to the standard output [INFO] [stdout] 62 | println!("{css}"); [INFO] [stdout] 63 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | if let Err(e) = file.read_to_string(buffer) { [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/build.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 89 ~ match file.read_to_string(buffer) { Err(e) => { [INFO] [stdout] 90 | eprintln!( [INFO] [stdout] ... [INFO] [stdout] 94 | ); [INFO] [stdout] 95 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | if let Ok(entry) = entry { [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/build.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 105 ~ match entry { Ok(entry) => { [INFO] [stdout] 106 | let path = entry.path(); [INFO] [stdout] ... [INFO] [stdout] 138 | } [INFO] [stdout] 139 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:122:32 [INFO] [stdout] | [INFO] [stdout] 122 | ... if let Err(e) = reader.read_to_string(buffer) { [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/build.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 122 ~ match reader.read_to_string(buffer) { Err(e) => { [INFO] [stdout] 123 | eprintln!( [INFO] [stdout] ... [INFO] [stdout] 127 | ); [INFO] [stdout] 128 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:247:48 [INFO] [stdout] | [INFO] [stdout] 247 | let extra_input_files = if let Some(ref extra_input) = *extra_input { [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/build.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | } 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] 247 ~ let extra_input_files = match *extra_input { Some(ref extra_input) => { [INFO] [stdout] 248 | let (prefix, glob) = match Glob::new( [INFO] [stdout] ... [INFO] [stdout] 269 | } [INFO] [stdout] 270 ~ } _ => { [INFO] [stdout] 271 | None [INFO] [stdout] 272 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.12s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking encre-css-cli v0.14.1 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `encre-css-cli` (bin "encrecss") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `encre-css-cli` (bin "encrecss" test) due to 2 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d529e9231f2fefe64205d4002d291754fca721a7b69e5a5edf8037048b2af5a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d529e9231f2fefe64205d4002d291754fca721a7b69e5a5edf8037048b2af5a3", kill_on_drop: false }` [INFO] [stdout] d529e9231f2fefe64205d4002d291754fca721a7b69e5a5edf8037048b2af5a3