[INFO] fetching crate divan 0.1.14... [INFO] checking divan-0.1.14 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate divan 0.1.14 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate divan 0.1.14 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 divan 0.1.14 [INFO] finished tweaking crates.io crate divan 0.1.14 [INFO] tweaked toml for crates.io crate divan 0.1.14 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate divan 0.1.14 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] 72c5bdb1b571a84b7c2536fb736eb5d6ed2ff9fe785a15be49b90a31488d8170 [INFO] running `Command { std: "docker" "start" "-a" "72c5bdb1b571a84b7c2536fb736eb5d6ed2ff9fe785a15be49b90a31488d8170", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72c5bdb1b571a84b7c2536fb736eb5d6ed2ff9fe785a15be49b90a31488d8170", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72c5bdb1b571a84b7c2536fb736eb5d6ed2ff9fe785a15be49b90a31488d8170", kill_on_drop: false }` [INFO] [stdout] 72c5bdb1b571a84b7c2536fb736eb5d6ed2ff9fe785a15be49b90a31488d8170 [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] 98fa3f7617e5b96b8242b86a95bbdd13a601915a81dd1a0a27149bfe571958f0 [INFO] running `Command { std: "docker" "start" "-a" "98fa3f7617e5b96b8242b86a95bbdd13a601915a81dd1a0a27149bfe571958f0", 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.149 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling rustix v0.38.20 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking condtype v1.3.0 [INFO] [stderr] Checking regex-lite v0.1.5 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking terminal_size v0.3.0 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Compiling libmimalloc-sys v0.1.35 [INFO] [stderr] Checking mimalloc v0.1.39 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Compiling divan-macros v0.1.14 [INFO] [stderr] Checking divan v0.1.14 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `divan` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/bench/defer.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/bench/defer.rs:65:14 [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bench/defer.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | ($vec: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] 65 | ($vec:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 65 | ($vec: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: aborting due to 1 previous error [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[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | self.alloc.alloc(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | self.alloc.alloc_zeroed(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | self.alloc.realloc(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | self.alloc.dealloc(ptr, layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | unsafe fn partial_cmp(a: *const (), b: *const ()) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | T::to_string(&*value.cast()) [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe fn to_string(value: *const ()) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | TimerKind::Os => Timestamp::Os(self.os), [INFO] [stdout] | ^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/time/timestamp/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub unsafe fn into_timestamp(self, timer_kind: TimerKind) -> Timestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:85:46 [INFO] [stdout] | [INFO] [stdout] 85 | TimerKind::Tsc => Timestamp::Tsc(self.tsc), [INFO] [stdout] | ^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl for<'b, 'c, 'd> Fn(usize, Option<&'b Barrier>, &'c mut DeferStore, &'d mut (dyn for<'b> FnMut(&'b I) + 'd)) -> ([timestamp::Timestamp; 2], AllocOpMap as condtype::imp::AssocType>::Type>>)` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bench/mod.rs:860:10 [INFO] [stdout] | [INFO] [stdout] 860 | ) -> impl Fn( [INFO] [stdout] | __________^ [INFO] [stdout] 861 | | usize, [INFO] [stdout] 862 | | Option<&Barrier>, [INFO] [stdout] 863 | | &mut DeferStore, [INFO] [stdout] 864 | | &mut dyn FnMut(&I), [INFO] [stdout] 865 | | ) -> ([Timestamp; 2], ThreadAllocTallyMap) { [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bench/mod.rs:538:6 [INFO] [stdout] | [INFO] [stdout] 538 | impl<'a> BenchContext<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 856 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/divan.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | if let Some(&sorting_attr) = matches.get_one("sortr") { [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] 433 | } else if let Some(&sorting_attr) = matches.get_one("sort") { [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/divan.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | } else if let Some(&sorting_attr) = matches.get_one("sort") { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/divan.rs:436:9 [INFO] [stdout] | [INFO] [stdout] 436 | } [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] 430 ~ match matches.get_one("sortr") { Some(&sorting_attr) => { [INFO] [stdout] 431 | self.reverse_sort = true; [INFO] [stdout] 432 | self.sorting_attr = sorting_attr; [INFO] [stdout] 433 ~ } _ => { match matches.get_one("sort") { Some(&sorting_attr) => { [INFO] [stdout] 434 | self.reverse_sort = false; [INFO] [stdout] 435 | self.sorting_attr = sorting_attr; [INFO] [stdout] 436 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/entry/mod.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) fn generic_benches_iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/entry/mod.rs:60:40 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) fn generic_benches_iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) fn generic_benches_iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/entry/meta.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn module_path_components<'a>(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/entry/meta.rs:44:46 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn module_path_components<'a>(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn module_path_components<'a>(&self) -> impl Iterator + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/counter/any_counter.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(bytes) = util::cast_ref::(&counter) { [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] 25 | Self::bytes(bytes.count) [INFO] [stdout] 26 | } else if let Some(chars) = util::cast_ref::(&counter) { [INFO] [stdout] | ------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 27 | Self::chars(chars.count) [INFO] [stdout] 28 | } else if let Some(items) = util::cast_ref::(&counter) { [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/counter/any_counter.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | } else if let Some(chars) = util::cast_ref::(&counter) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/counter/any_counter.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | } else if let Some(items) = util::cast_ref::(&counter) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/counter/any_counter.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | } 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] 24 ~ match util::cast_ref::(&counter) { Some(bytes) => { [INFO] [stdout] 25 | Self::bytes(bytes.count) [INFO] [stdout] 26 ~ } _ => { match util::cast_ref::(&counter) { Some(chars) => { [INFO] [stdout] 27 | Self::chars(chars.count) [INFO] [stdout] 28 ~ } _ => { match util::cast_ref::(&counter) { Some(items) => { [INFO] [stdout] 29 | Self::items(items.count) [INFO] [stdout] 30 ~ } _ => { [INFO] [stdout] 31 | unreachable!() [INFO] [stdout] 32 ~ }}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/attr_options.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `divan` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/bench/defer.rs [INFO] [stderr] * src/private.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/bench/defer.rs:65:14 [INFO] [stderr] | [INFO] [stderr] 65 | ($vec: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/private.rs:196:14 [INFO] [stderr] | [INFO] [stderr] 196 | ($value:expr_2021, $expected: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/private.rs:196:32 [INFO] [stderr] | [INFO] [stderr] 196 | ($value:expr_2021, $expected: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: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/private.rs:196:21 [INFO] [stdout] | [INFO] [stdout] 196 | ($value:expr, $expected: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] 196 | ($value:expr_2021, $expected: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/private.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | ($value:expr, $expected: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] 196 | ($value:expr, $expected:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bench/defer.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | ($vec: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] 65 | ($vec:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | self.alloc.alloc(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | self.alloc.alloc_zeroed(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | self.alloc.realloc(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | self.alloc.dealloc(ptr, layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | unsafe fn partial_cmp(a: *const (), b: *const ()) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | T::to_string(&*value.cast()) [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe fn to_string(value: *const ()) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | TimerKind::Os => Timestamp::Os(self.os), [INFO] [stdout] | ^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/time/timestamp/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub unsafe fn into_timestamp(self, timer_kind: TimerKind) -> Timestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:85:46 [INFO] [stdout] | [INFO] [stdout] 85 | TimerKind::Tsc => Timestamp::Tsc(self.tsc), [INFO] [stdout] | ^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl for<'b, 'c, 'd> Fn(usize, Option<&'b Barrier>, &'c mut DeferStore, &'d mut (dyn for<'b> FnMut(&'b I) + 'd)) -> ([timestamp::Timestamp; 2], AllocOpMap as condtype::imp::AssocType>::Type>>)` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bench/mod.rs:860:10 [INFO] [stdout] | [INFO] [stdout] 860 | ) -> impl Fn( [INFO] [stdout] | __________^ [INFO] [stdout] 861 | | usize, [INFO] [stdout] 862 | | Option<&Barrier>, [INFO] [stdout] 863 | | &mut DeferStore, [INFO] [stdout] 864 | | &mut dyn FnMut(&I), [INFO] [stdout] 865 | | ) -> ([Timestamp; 2], ThreadAllocTallyMap) { [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bench/mod.rs:538:6 [INFO] [stdout] | [INFO] [stdout] 538 | impl<'a> BenchContext<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 856 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/divan.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | if let Some(&sorting_attr) = matches.get_one("sortr") { [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] 433 | } else if let Some(&sorting_attr) = matches.get_one("sort") { [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/divan.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | } else if let Some(&sorting_attr) = matches.get_one("sort") { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/divan.rs:436:9 [INFO] [stdout] | [INFO] [stdout] 436 | } [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] 430 ~ match matches.get_one("sortr") { Some(&sorting_attr) => { [INFO] [stdout] 431 | self.reverse_sort = true; [INFO] [stdout] 432 | self.sorting_attr = sorting_attr; [INFO] [stdout] 433 ~ } _ => { match matches.get_one("sort") { Some(&sorting_attr) => { [INFO] [stdout] 434 | self.reverse_sort = false; [INFO] [stdout] 435 | self.sorting_attr = sorting_attr; [INFO] [stdout] 436 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/entry/mod.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) fn generic_benches_iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/entry/mod.rs:60:40 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) fn generic_benches_iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) fn generic_benches_iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/entry/meta.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn module_path_components<'a>(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/entry/meta.rs:44:46 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn module_path_components<'a>(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn module_path_components<'a>(&self) -> impl Iterator + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/counter/any_counter.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(bytes) = util::cast_ref::(&counter) { [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] 25 | Self::bytes(bytes.count) [INFO] [stdout] 26 | } else if let Some(chars) = util::cast_ref::(&counter) { [INFO] [stdout] | ------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 27 | Self::chars(chars.count) [INFO] [stdout] 28 | } else if let Some(items) = util::cast_ref::(&counter) { [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/counter/any_counter.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | } else if let Some(chars) = util::cast_ref::(&counter) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/counter/any_counter.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | } else if let Some(items) = util::cast_ref::(&counter) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/counter/any_counter.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | } 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] 24 ~ match util::cast_ref::(&counter) { Some(bytes) => { [INFO] [stdout] 25 | Self::bytes(bytes.count) [INFO] [stdout] 26 ~ } _ => { match util::cast_ref::(&counter) { Some(chars) => { [INFO] [stdout] 27 | Self::chars(chars.count) [INFO] [stdout] 28 ~ } _ => { match util::cast_ref::(&counter) { Some(items) => { [INFO] [stdout] 29 | Self::items(items.count) [INFO] [stdout] 30 ~ } _ => { [INFO] [stdout] 31 | unreachable!() [INFO] [stdout] 32 ~ }}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/entry_properties.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `entry_properties` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/entry_properties.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] --> tests/entry_properties.rs:37:6 [INFO] [stderr] | [INFO] [stderr] 37 | ($entries:expr_2021, $raw_name:literal) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/entry_properties.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | ($entries:expr, $raw_name:literal) => { [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] 37 | ($entries:expr_2021, $raw_name:literal) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/weird_usage.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/forbid_unsafe.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.85s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking divan v0.1.14 (/tmp/fixit) [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | self.alloc.alloc(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | self.alloc.alloc_zeroed(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | self.alloc.realloc(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | self.alloc.dealloc(ptr, layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.samples.time_samples` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bench/mod.rs:654:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 654 | self.samples.time_samples.reserve(self.options.sample_count.unwrap_or(1) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 851 | } [INFO] [stdout] | - immutable borrow might be used here, when `record_sample` is dropped and runs the destructor for type `impl for<'a, 'b, 'c> Fn(usize, Option<&'a Barrier>, &'b mut DeferStore, &'c mut (dyn for<'a> FnMut(&'a I) + 'c)) -> ([timestamp::Timestamp; 2], AllocOpMap as condtype::imp::AssocType>::Type>>)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.samples.sample_size` because it is borrowed [INFO] [stdout] --> src/bench/mod.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- `self.samples.sample_size` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 675 | self.samples.sample_size = sample_size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self.samples.sample_size` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 699 | let ([start, end], alloc_tallies) = record_sample( [INFO] [stdout] | ------------- borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | self.alloc.alloc(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | self.alloc.alloc_zeroed(layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | self.alloc.realloc(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/alloc.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | self.alloc.dealloc(ptr, layout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/alloc.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | unsafe fn partial_cmp(a: *const (), b: *const ()) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | T::to_string(&*value.cast()) [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe fn to_string(value: *const ()) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | TimerKind::Os => Timestamp::Os(self.os), [INFO] [stdout] | ^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/time/timestamp/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub unsafe fn into_timestamp(self, timer_kind: TimerKind) -> Timestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:85:46 [INFO] [stdout] | [INFO] [stdout] 85 | TimerKind::Tsc => Timestamp::Tsc(self.tsc), [INFO] [stdout] | ^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.samples.time_samples` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bench/mod.rs:654:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 654 | self.samples.time_samples.reserve(self.options.sample_count.unwrap_or(1) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 851 | } [INFO] [stdout] | - immutable borrow might be used here, when `record_sample` is dropped and runs the destructor for type `impl for<'a, 'b, 'c> Fn(usize, Option<&'a Barrier>, &'b mut DeferStore, &'c mut (dyn for<'a> FnMut(&'a I) + 'c)) -> ([timestamp::Timestamp; 2], AllocOpMap as condtype::imp::AssocType>::Type>>)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.samples.sample_size` because it is borrowed [INFO] [stdout] --> src/bench/mod.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- `self.samples.sample_size` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 675 | self.samples.sample_size = sample_size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self.samples.sample_size` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 699 | let ([start, end], alloc_tallies) = record_sample( [INFO] [stdout] | ------------- borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | unsafe fn partial_cmp(a: *const (), b: *const ()) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | T::partial_cmp(&*a.cast(), &*b.cast()) [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/entry/generic.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | T::to_string(&*value.cast()) [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/entry/generic.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe fn to_string(value: *const ()) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `divan` (lib) due to 3 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | TimerKind::Os => Timestamp::Os(self.os), [INFO] [stdout] | ^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/time/timestamp/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub unsafe fn into_timestamp(self, timer_kind: TimerKind) -> Timestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/time/timestamp/mod.rs:85:46 [INFO] [stdout] | [INFO] [stdout] 85 | TimerKind::Tsc => Timestamp::Tsc(self.tsc), [INFO] [stdout] | ^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `divan` (lib test) due to 3 previous errors; 9 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" "98fa3f7617e5b96b8242b86a95bbdd13a601915a81dd1a0a27149bfe571958f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98fa3f7617e5b96b8242b86a95bbdd13a601915a81dd1a0a27149bfe571958f0", kill_on_drop: false }` [INFO] [stdout] 98fa3f7617e5b96b8242b86a95bbdd13a601915a81dd1a0a27149bfe571958f0