[INFO] fetching crate gitu 0.25.0... [INFO] checking gitu-0.25.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate gitu 0.25.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate gitu 0.25.0 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 gitu 0.25.0 [INFO] finished tweaking crates.io crate gitu 0.25.0 [INFO] tweaked toml for crates.io crate gitu 0.25.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate gitu 0.25.0 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 423c8f7c982defa74ecf56d5905bd3f9e5dec995575c67aa1336c019bf90b84a [INFO] running `Command { std: "docker" "start" "-a" "423c8f7c982defa74ecf56d5905bd3f9e5dec995575c67aa1336c019bf90b84a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "423c8f7c982defa74ecf56d5905bd3f9e5dec995575c67aa1336c019bf90b84a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "423c8f7c982defa74ecf56d5905bd3f9e5dec995575c67aa1336c019bf90b84a", kill_on_drop: false }` [INFO] [stdout] 423c8f7c982defa74ecf56d5905bd3f9e5dec995575c67aa1336c019bf90b84a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 4065e634c749b8ce227160c966b1bb197e21e59865abc6cec792127b0af76783 [INFO] running `Command { std: "docker" "start" "-a" "4065e634c749b8ce227160c966b1bb197e21e59865abc6cec792127b0af76783", 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.153 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling jobserver v0.1.30 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling toml_datetime v0.6.6 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling libz-sys v1.1.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling rstest_macros v0.21.0 [INFO] [stderr] Checking castaway v0.2.2 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Compiling toml_edit v0.21.1 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking unicode-truncate v1.0.0 [INFO] [stderr] Compiling libgit2-sys v0.17.0+1.8.1 [INFO] [stderr] Checking lru v0.12.3 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Compiling proc-macro-crate v3.1.0 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling stability v0.2.0 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling tree-sitter-go v0.20.0 [INFO] [stderr] Compiling tree-sitter-json v0.20.2 [INFO] [stderr] Compiling tree-sitter-c v0.20.8 [INFO] [stderr] Compiling tree-sitter-html v0.20.0 [INFO] [stderr] Compiling tree-sitter-scala v0.20.3 [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.4 [INFO] [stderr] Compiling tree-sitter-c-sharp v0.20.0 [INFO] [stderr] Compiling tree-sitter-cpp v0.20.5 [INFO] [stderr] Compiling tree-sitter-rust v0.20.4 [INFO] [stderr] Compiling tree-sitter-toml v0.20.0 [INFO] [stderr] Compiling tree-sitter-haskell v0.15.0 [INFO] [stderr] Compiling tree-sitter-typescript v0.20.5 [INFO] [stderr] Compiling tree-sitter-elixir v0.1.1 [INFO] [stderr] Compiling tree-sitter-python v0.20.4 [INFO] [stderr] Compiling tree-sitter-java v0.20.2 [INFO] [stderr] Compiling tree-sitter-bash v0.20.5 [INFO] [stderr] Compiling tree-sitter-ruby v0.20.1 [INFO] [stderr] Compiling tree-sitter-ocaml v0.20.4 [INFO] [stderr] Compiling tree-sitter-php v0.20.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Checking x11rb-protocol v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking rstest v0.21.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking serde_spanned v0.6.6 [INFO] [stderr] Checking compact_str v0.7.1 [INFO] [stderr] Checking toml_edit v0.22.16 [INFO] [stderr] Checking ratatui v0.27.0 [INFO] [stderr] Checking toml v0.8.15 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking x11rb v0.13.0 [INFO] [stderr] Checking ratatui-macros v0.4.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling git-version-macro v0.3.9 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Checking half v2.4.0 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking etcetera v0.8.0 [INFO] [stderr] Checking git-version v0.3.9 [INFO] [stderr] Checking simple-logging v2.0.2 [INFO] [stderr] Checking tree-sitter-highlight v0.20.1 [INFO] [stderr] Checking arboard v3.4.0 [INFO] [stderr] Checking tui-prompts v0.3.20 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking insta v1.39.0 [INFO] [stderr] Compiling ctor v0.2.8 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking temp-dir v0.1.13 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking git2 v0.19.0 [INFO] [stderr] Checking gitu v0.25.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/ops/mod.rs (1 fix) [INFO] [stderr] Fixed src/git/diff.rs (1 fix) [INFO] [stderr] Fixed src/ops/editor.rs (3 fixes) [INFO] [stderr] Fixed src/screen/status.rs (4 fixes) [INFO] [stderr] Fixed src/ui.rs (1 fix) [INFO] [stderr] Fixed src/bindings.rs (1 fix) [INFO] [stderr] Fixed src/state.rs (3 fixes) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/syntax_highlight.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) fn split_at_newlines<'a, D: Copy + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 64 | ) -> impl Iterator, D)> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `gitu` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/syntax_highlight.rs [INFO] [stderr] * src/tests/helpers/ui.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/tests/helpers/ui.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | ($ctx:expr_2021, $keys: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/tests/helpers/ui.rs:21:22 [INFO] [stderr] | [INFO] [stderr] 21 | ($ctx:expr_2021, $keys: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: elided lifetime has a name [INFO] [stderr] --> src/syntax_highlight.rs:64:48 [INFO] [stderr] | [INFO] [stderr] 61 | pub(crate) fn split_at_newlines<'a, D: Copy + 'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 64 | ) -> impl Iterator, D)> + '_ { [INFO] [stderr] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 1 warning 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: elided lifetime has a name [INFO] [stdout] --> src/syntax_highlight.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) fn split_at_newlines<'a, D: Copy + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 64 | ) -> impl Iterator, D)> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/tests/helpers/ui.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | ($ctx:expr, $keys: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] 21 | ($ctx:expr_2021, $keys:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/tests/helpers/ui.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | ($ctx:expr, $keys: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] 21 | ($ctx:expr, $keys:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/helpers/repo.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | env::set_var("GIT_CONFIG_GLOBAL", "/dev/null"); [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] 44 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 45 ~ unsafe { env::set_var("GIT_CONFIG_GLOBAL", "/dev/null") }; [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/tests/helpers/repo.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | env::set_var("GIT_CONFIG_SYSTEM", "/dev/null"); [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] 45 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 46 ~ unsafe { env::set_var("GIT_CONFIG_SYSTEM", "/dev/null") }; [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/tests/helpers/repo.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | env::set_var("GIT_AUTHOR_NAME", "Author 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] 46 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 47 ~ unsafe { env::set_var("GIT_AUTHOR_NAME", "Author Name") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/helpers/repo.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | env::set_var("GIT_AUTHOR_EMAIL", "author@email.com"); [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] 47 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 48 ~ unsafe { env::set_var("GIT_AUTHOR_EMAIL", "author@email.com") }; [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/tests/helpers/repo.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | env::set_var("GIT_AUTHOR_DATE", "Fri Feb 16 11:11 2024 +0100"); [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] 48 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 49 ~ unsafe { env::set_var("GIT_AUTHOR_DATE", "Fri Feb 16 11:11 2024 +0100") }; [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/tests/helpers/repo.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | env::set_var("GIT_COMMITTER_NAME", "Committer 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] 49 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 50 ~ unsafe { env::set_var("GIT_COMMITTER_NAME", "Committer Name") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/helpers/repo.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | env::set_var("GIT_COMMITTER_EMAIL", "committer@email.com"); [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] 50 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 51 ~ unsafe { env::set_var("GIT_COMMITTER_EMAIL", "committer@email.com") }; [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/tests/helpers/repo.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | env::set_var("GIT_COMMITTER_DATE", "Sun Feb 18 14:00 2024 +0100"); [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] 51 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 52 ~ unsafe { env::set_var("GIT_COMMITTER_DATE", "Sun Feb 18 14:00 2024 +0100") }; [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/tests/helpers/repo.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | env::set_var("LC_ALL", "C"); [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] 52 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 53 ~ unsafe { env::set_var("LC_ALL", "C") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating benches/show.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.51s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking gitu v0.25.0 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/syntax_highlight.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) fn split_at_newlines<'a, D: Copy + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 64 | ) -> impl Iterator, D)> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/syntax_highlight.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) fn split_at_newlines<'a, D: Copy + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 64 | ) -> impl Iterator, D)> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/helpers/repo.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | env::set_var("GIT_CONFIG_GLOBAL", "/dev/null"); [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/tests/helpers/repo.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | env::set_var("GIT_CONFIG_SYSTEM", "/dev/null"); [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/tests/helpers/repo.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | env::set_var("GIT_AUTHOR_NAME", "Author Name"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/helpers/repo.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | env::set_var("GIT_AUTHOR_EMAIL", "author@email.com"); [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/tests/helpers/repo.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | env::set_var("GIT_AUTHOR_DATE", "Fri Feb 16 11:11 2024 +0100"); [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/tests/helpers/repo.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | env::set_var("GIT_COMMITTER_NAME", "Committer Name"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/helpers/repo.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | env::set_var("GIT_COMMITTER_EMAIL", "committer@email.com"); [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/tests/helpers/repo.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | env::set_var("GIT_COMMITTER_DATE", "Sun Feb 18 14:00 2024 +0100"); [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/tests/helpers/repo.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | env::set_var("LC_ALL", "C"); [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 9 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gitu` (lib test) due to 10 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "4065e634c749b8ce227160c966b1bb197e21e59865abc6cec792127b0af76783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4065e634c749b8ce227160c966b1bb197e21e59865abc6cec792127b0af76783", kill_on_drop: false }` [INFO] [stdout] 4065e634c749b8ce227160c966b1bb197e21e59865abc6cec792127b0af76783