Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New attribute parsing infrastructure #135726

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jdonszelmann
Copy link
Contributor

@jdonszelmann jdonszelmann commented Jan 19, 2025

Another step in the plan outlined in #131229

introduces infrastructure for structured parsers for attributes, as well as converting a couple of complex attributes to have such structured parsers.

This PR may prove too large to review. I left some of my own comments to guide it a little. Some general notes:

  • The first commit is basically standalone. It just preps some mostly unrelated sources for the rest of the PR to work. It might not have enormous merit on its own, but not negative merit either. Could be merged alone, but also doesn't make the review a whole lot easier. (but it's only +274 -209)
  • The second commit is the one that introduces new infrastructure. It's the important one to review.
  • The 3rd commit uses the new infrastructure showing how some of the more complex attributes can be parsed using it. Theoretically can be split up, though the parsers in this commit are the ones that really test the new infrastructure and show that it all works.
  • The 4th commit fixes up rustdoc and clippy. In the previous 2 they didn't compile yet while the compiler does. Separated them out to separate concerns and make the rest more palatable.
  • The 5th commit blesses some test outputs. Sometimes that's just because a diagnostic happens slightly earlier than before, which I'd say is acceptable. Sometimes a diagnostic is now only emitted once where it would've been twice before (yay! fixed some bugs). One test I actually moved from crashes to fixed, because it simply doesn't crash anymore. That's why this PR Closes ICE: malformed malformed repr(align(N)) #132391. I think most choices I made here are generally reasonable, but let me know if you disagree anywhere.
  • The 6th commit adds a derive to pretty print attributes
  • The 7th removes smir apis for attributes, for the time being. The api will at some point be replaced by one based on rustc_ast_data_structures::AttributeKind

In general, a lot of the additions here are comments. I've found it very important to document new things in the 2nd commit well so other people can start using it.

Closes #132391

@rustbot
Copy link
Collaborator

rustbot commented Jan 19, 2025

r? @Noratrieb

rustbot has assigned @Noratrieb.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) PG-exploit-mitigations Project group: Exploit mitigations T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jan 19, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@Noratrieb
Copy link
Member

r? oli-obk

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jan 20, 2025

☔ The latest upstream changes (presumably #135754) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 20, 2025
@jdonszelmann jdonszelmann force-pushed the attr-parsing branch 2 times, most recently from 4d3437f to b3d6ef4 Compare January 20, 2025 16:39
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@jdonszelmann jdonszelmann force-pushed the attr-parsing branch 3 times, most recently from 4aaff39 to 2f73b56 Compare January 20, 2025 19:53
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2025

This PR changes Stable MIR

cc @oli-obk, @celinval, @ouz-a

@rust-log-analyzer

This comment has been minimized.

@jdonszelmann
Copy link
Contributor Author

welp, apparently also broke clippy... 1s

@jdonszelmann
Copy link
Contributor Author

actually; wrong again: I already worked out this was going to break clippy in november so asked @GuillaumeGomez to help and fix it but it seems the change hasn't landed yet (rust-lang/rust-clippy#13658)

@bors
Copy link
Contributor

bors commented Jan 25, 2025

☔ The latest upstream changes (presumably #128657) made this pull request unmergeable. Please resolve the merge conflicts.

@jdonszelmann jdonszelmann force-pushed the attr-parsing branch 2 times, most recently from edd86b3 to e56dd22 Compare February 6, 2025 13:24
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
tests/ui/ref_option/ref_option.all.fixed ... ok
tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.fixed ... ok

FAILED TEST: tests/ui/attrs.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/attrs.rs" "--edition" "2021"
error: actual output differed from expected
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/attrs.stderr` to the actual output
--- tests/ui/attrs.stderr
 error: the since field must contain a semver-compliant version
   --> tests/ui/attrs.rs:27:14
... 20 lines skipped ...
    = help: to override `-D warnings` add `#[allow(clippy::inline_always)]`
---
+   9:     0x7f919513cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7f919513f51d - rust_begin_unwind
+  11:     0x7f9195197e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7f9195197f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7f9194d3ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7f9194d39bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x5635b74af912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x5635b74594ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x5635b78aa515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x5635b78aa0fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7f9193564947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  21:     0x7f919357613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  22:     0x7f9190c49836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  23:     0x7f9190c2bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  24:     0x7f91930d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  24:     0x7f91930d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  25:     0x7f91931a97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  26:     0x7f9192f88c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  27:     0x7f919342b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  28:     0x7f91907f51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  29:     0x7f919089db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  30:     0x7f91908425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  31:     0x7f91908214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  32:     0x7f91908eef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  33:     0x7f9190854b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  34:     0x7f91908fa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  36:     0x7f918e66bac3 - <unknown>
+  37:     0x7f918e6fd850 - <unknown>
+  38:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/cast.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/cast.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/cast.stderr` to the actual output
--- tests/ui/cast.stderr
+++ <stderr output>
+++ <stderr output>
 error: casting `i32` to `f32` causes a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
... 412 lines skipped ...
    |                     ^^^^^^^^^^^^^
 
-error: casting `main::E6` to `i16` may truncate the value
---
+   6:     0x7fc6466d70a2 - <alloc[fc3cf5992ff4a323]::boxed::Box<rustc_driver_impl[bac3d7b157dbef88]::install_ice_hook::{closure#1}> as core[877970e523a29999]::ops::function::Fn<(&dyn for<'a, 'b> core[877970e523a29999]::ops::function::Fn<(&'a std[d416ba3efb7c0ea2]::panic::PanicHookInfo<'b>,), Output = ()> + core[877970e523a29999]::marker::Send + core[877970e523a29999]::marker::Sync, &std[d416ba3efb7c0ea2]::panic::PanicHookInfo)>>::call
-   |                     ~~~~~~~~~~~~~~~~~~~~~
+   7:     0x7fc64af3fd13 - std[d416ba3efb7c0ea2]::panicking::rust_panic_with_hook
 
-error: casting `main::E10` to `u16` may truncate the value
 
-error: casting `u32` to `u8` may truncate the value
-error: casting `u32` to `u8` may truncate the value
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
-error: casting `u32` to `u8` may truncate the value
+note: please make sure that you have updated to the latest nightly
 
-error: casting `i32` to `u32` may lose the sign of the value
---
-  --> tests/ui/cast.rs:408:5
+#0 [analysis] running analysis passes on this crate
-   |
+end of query stack
-LL |     (2_i32).checked_pow(3).unwrap() as u32;
+note: Clippy version: clippy 0.1.86 (91659aa43c 2025-02-06)
-error: casting `i32` to `u32` may lose the sign of the value
+error: aborting due to 51 previous errors
 
-error: casting `i32` to `u32` may lose the sign of the value
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:414:5
-   |
-LL |     (-5_i32 % 2) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:416:5
-   |
-   |
-LL |     (-5_i32 % -2) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:419:5
-   |
-   |
-LL |     (-2_i32 >> 1) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:423:5
-   |
-   |
-LL |     (x * x) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:424:5
-   |
-   |
-LL |     (x * x * x) as u32;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:428:5
-   |
-   |
-LL |     (y * y * y * y * -2) as u16;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:430:5
-   |
-   |
-LL |     (y * y * y / y * 2) as u16;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:431:5
-   |
-   |
-LL |     (y * y / y * 2) as u16;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:433:5
-   |
-   |
-LL |     (y / y * y * -2) as u16;
-
-error: equal expressions as operands to `/`
-  --> tests/ui/cast.rs:433:6
-   |
-   |
-LL |     (y / y * y * -2) as u16;
-   |
-   |
-   = note: `#[deny(clippy::eq_op)]` on by default
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:436:5
-   |
-   |
-LL |     (y + y + y + -2) as u16;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:438:5
-   |
-   |
-LL |     (y + y + y + 2) as u16;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:442:5
-   |
-   |
-LL |     (z + -2) as u16;
-
-error: casting `i16` to `u16` may lose the sign of the value
-  --> tests/ui/cast.rs:444:5
-   |
-   |
-LL |     (z + z + 2) as u16;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:447:9
-   |
-   |
-LL |         (a * a * b * b * c * c) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:448:9
-   |
-   |
-LL |         (a * b * c) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:450:9
-   |
-   |
-LL |         (a * -b * c) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:452:9
-   |
-   |
-LL |         (a * b * c * c) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:453:9
-   |
-   |
-LL |         (a * -2) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:455:9
-   |
-   |
-LL |         (a * b * c * -2) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:457:9
-   |
-   |
-LL |         (a / b) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:458:9
-   |
-   |
-LL |         (a / b * c) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:460:9
-   |
-   |
-LL |         (a / b + b * c) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:462:9
-   |
-   |
-LL |         a.saturating_pow(3) as u32;
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:464:9
-   |
-   |
-LL |         (a.abs() * b.pow(2) / c.abs()) as u32
-
-error: casting `i32` to `u32` may lose the sign of the value
-  --> tests/ui/cast.rs:472:21
-   |
-   |
-LL |             let _ = i32::MIN as u32; // cast_sign_loss
-...
-LL |     m!();
-   |     ---- in this macro invocation
-   |
---
-
-error: casting `f64` to `f32` may truncate the value
-  --> tests/ui/cast.rs:474:21
-   |
-LL |             let _ = std::f64::consts::PI as f32; // cast_possible_truncation
-...
-LL |     m!();
-   |     ---- in this macro invocation
-   |
---
-   |
-   = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
-help: ... or use `try_from` and handle the error accordingly
-   |
-LL |     usize::try_from(bar.unwrap().unwrap())
-
-error: casting `i64` to `usize` may lose the sign of the value
-  --> tests/ui/cast.rs:483:5
-   |
-   |
-LL |     bar.unwrap().unwrap() as usize
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-error: casting `u64` to `u8` may truncate the value
-  --> tests/ui/cast.rs:498:5
-   |
-LL |     (256 & 999999u64) as u8;
-   |
-   = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
-help: ... or use `try_from` and handle the error accordingly
-   |
-   |
-LL |     u8::try_from(256 & 999999u64);
-
-error: casting `u64` to `u8` may truncate the value
-  --> tests/ui/cast.rs:500:5
-   |
-   |
-LL |     (255 % 999999u64) as u8;
-   |
-   = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
-help: ... or use `try_from` and handle the error accordingly
-   |
-   |
-LL |     u8::try_from(255 % 999999u64);
-
-error: aborting due to 92 previous errors
-



error: `casting `main::E6` to `i16` may truncate the value` not found in diagnostics on line 308
    |
    |
309 |             //~^ ERROR: casting `main::E6` to `i16` may truncate the value
    |


error: `casting `main::E7` to `usize` may truncate the value on targets wi` not found in diagnostics on line 327
    |
328 |             //~^ ERROR: casting `main::E7` to `usize` may truncate the value on targets wi
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
    |
    |

error: `casting `main::E10` to `u16` may truncate the value` not found in diagnostics on line 374
    |
    |
375 |             //~^ ERROR: casting `main::E10` to `u16` may truncate the value
    |


error: `casting `u32` to `u8` may truncate the value` not found in diagnostics on line 385
    |
386 |     //~^ ERROR: casting `u32` to `u8` may truncate the value
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
    |
    |

error: `casting `u32` to `u8` may truncate the value` not found in diagnostics on line 389
    |
390 |     //~^ ERROR: casting `u32` to `u8` may truncate the value
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
    |
    |

error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 409
    |
    |
410 |     //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 414
    |
    |
415 |     //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 416
    |
    |
417 |     //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 419
    |
    |
420 |     //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 424
    |
    |
425 |     //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i16` to `u16` may lose the sign of the value` not found in diagnostics on line 428
    |
    |
429 |     //~^ ERROR: casting `i16` to `u16` may lose the sign of the value
    |


error: `casting `i16` to `u16` may lose the sign of the value` not found in diagnostics on line 431
    |
    |
432 |     //~^ ERROR: casting `i16` to `u16` may lose the sign of the value
    |


error: `casting `i16` to `u16` may lose the sign of the value` not found in diagnostics on line 433
    |
    |
434 |     //~^ ERROR: casting `i16` to `u16` may lose the sign of the value
    |


error: `casting `i16` to `u16` may lose the sign of the value` not found in diagnostics on line 436
    |
    |
437 |     //~^ ERROR: casting `i16` to `u16` may lose the sign of the value
    |


error: `casting `i16` to `u16` may lose the sign of the value` not found in diagnostics on line 438
    |
    |
439 |     //~^ ERROR: casting `i16` to `u16` may lose the sign of the value
    |


error: `casting `i16` to `u16` may lose the sign of the value` not found in diagnostics on line 442
    |
    |
443 |     //~^ ERROR: casting `i16` to `u16` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 448
    |
    |
449 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 450
    |
    |
451 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 453
    |
    |
454 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 455
    |
    |
456 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 458
    |
    |
459 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 460
    |
    |
461 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 462
    |
    |
463 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `i32` to `u32` may lose the sign of the value` not found in diagnostics on line 464
    |
    |
465 |         //~^ ERROR: casting `i32` to `u32` may lose the sign of the value
    |


error: `casting `u64` to `u8` may truncate the value` not found in diagnostics on line 498
    |
499 |     //~^ ERROR: casting `u64` to `u8` may truncate the value
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
    |
    |

error: `casting `u64` to `u8` may truncate the value` not found in diagnostics on line 500
    |
501 |     //~^ ERROR: casting `u64` to `u8` may truncate the value
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
    |
    |


FAILED TEST: tests/ui/cast_lossless_integer.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/cast_lossless_integer.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/cast_lossless_integer.stderr` to the actual output
--- tests/ui/cast_lossless_integer.stderr
+++ <stderr output>
---
 
-error: casts from `i8` to `i32` can be expressed infallibly using `From`
-  --> tests/ui/cast_lossless_integer.rs:124:13
-   |
-LL |     let _ = sign_cast!(x, u8, i8) as i32;
-   |
-   |
-   = help: an `as` cast can become silently lossy if the types change in the future
-help: use `i32::from` instead
-   |
-LL |     let _ = i32::from(sign_cast!(x, u8, i8));
 
-error: casts from `i8` to `i32` can be expressed infallibly using `From`
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
-  --> tests/ui/cast_lossless_integer.rs:126:13
-  --> tests/ui/cast_lossless_integer.rs:126:13
+explicit panic
-   |
+stack backtrace:
-LL |     let _ = (sign_cast!(x, u8, i8) + 1) as i32;
-   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   1:     0x7f651259c5f3 - core[877970e523a29999]::fmt::write
-   |
+   2:     0x7f651252f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
+   2:     0x7f651252f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
-   = help: an `as` cast can become silently lossy if the types change in the future
-help: use `i32::from` instead
+   4:     0x7f651253f069 - std[d416ba3efb7c0ea2]::panicking::default_hook::{closure#0}
-   |
+   5:     0x7f651253ee78 - std[d416ba3efb7c0ea2]::panicking::default_hook
+   5:     0x7f651253ee78 - std[d416ba3efb7c0ea2]::panicking::default_hook
-LL |     let _ = i32::from(sign_cast!(x, u8, i8) + 1);
+   6:     0x7f650dcd70a2 - <alloc[fc3cf5992ff4a323]::boxed::Box<rustc_driver_impl[bac3d7b157dbef88]::install_ice_hook::{closure#1}> as core[877970e523a29999]::ops::function::Fn<(&dyn for<'a, 'b> core[877970e523a29999]::ops::function::Fn<(&'a std[d416ba3efb7c0ea2]::panic::PanicHookInfo<'b>,), Output = ()> + core[877970e523a29999]::marker::Send + core[877970e523a29999]::marker::Sync, &std[d416ba3efb7c0ea2]::panic::PanicHookInfo)>>::call
+   7:     0x7f651253fd13 - std[d416ba3efb7c0ea2]::panicking::rust_panic_with_hook
 
-error: casts from `u8` to `u32` can be expressed infallibly using `From`
+error: the compiler unexpectedly panicked. this is a bug.
+error: the compiler unexpectedly panicked. this is a bug.
 
-error: casts from `u8` to `u32` can be expressed infallibly using `From`
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
-error: aborting due to 40 previous errors
+note: please make sure that you have updated to the latest nightly
 
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
---
    |


FAILED TEST: tests/ui/allow_attributes.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--crate-type=lib" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/allow_attributes.rs" "--extern" "proc_macros=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libproc_macros.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--extern" "proc_macro_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libproc_macro_derive.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/allow_attributes.stderr` to the actual output
--- tests/ui/allow_attributes.stderr
+++ <stderr output>
+++ <stderr output>
 error: #[allow] attribute found
... 17 lines skipped ...
    |       ^^^^^ help: replace it with: `expect`
 
+
---
+   9:     0x7f651473cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7f651473f51d - rust_begin_unwind
+  11:     0x7f6514797e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7f6514797f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7f651433ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7f6514339bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x559ee56c6912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x559ee56704ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x559ee5ac1515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x559ee5ac10fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7f6512b64947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  21:     0x7f6512b7613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  22:     0x7f6510249836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  23:     0x7f651022bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  24:     0x7f65126d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  24:     0x7f65126d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  25:     0x7f65127a97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  26:     0x7f6512588c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  27:     0x7f6512a2b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  28:     0x7f650fdf51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  29:     0x7f650fe9db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  30:     0x7f650fe425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  31:     0x7f650fe214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  32:     0x7f650feeef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  33:     0x7f650fe54b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  34:     0x7f650fefa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  36:     0x7f650db84ac3 - <unknown>
+  37:     0x7f650dc16850 - <unknown>
+  38:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/default_union_representation.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/default_union_representation.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/default_union_representation.stderr` to the actual output
--- tests/ui/default_union_representation.stderr
+++ <stderr output>
---
 
-error: this union has the default representation
-  --> tests/ui/default_union_representation.rs:18:1
-   |
-LL | / union ReprPacked {
-LL | |     a: i32,
-LL | |     b: u32,
-LL | | }
-   | |_^
-   | |_^
-   |
-   = help: consider annotating `ReprPacked` with `#[repr(C)]` to explicitly specify memory layout
-error: this union has the default representation
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
-  --> tests/ui/default_union_representation.rs:37:1
+explicit panic
+explicit panic
-   |
+stack backtrace:
-LL | / union ReprAlign {
-LL | |
+   1:     0x7fdee9f9c5f3 - core[877970e523a29999]::fmt::write
-LL | |     a: i32,
+   2:     0x7fdee9f2f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
+   2:     0x7fdee9f2f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
-LL | |     b: u32,
+   3:     0x7fdee9f3c612 - <std[d416ba3efb7c0ea2]::sys::backtrace::BacktraceLock>::print
-LL | | }
+   4:     0x7fdee9f3f069 - std[d416ba3efb7c0ea2]::panicking::default_hook::{closure#0}
-   | |_^
+   5:     0x7fdee9f3ee78 - std[d416ba3efb7c0ea2]::panicking::default_hook
-   |
+   6:     0x7fdee56d70a2 - <alloc[fc3cf5992ff4a323]::boxed::Box<rustc_driver_impl[bac3d7b157dbef88]::install_ice_hook::{closure#1}> as core[877970e523a29999]::ops::function::Fn<(&dyn for<'a, 'b> core[877970e523a29999]::ops::function::Fn<(&'a std[d416ba3efb7c0ea2]::panic::PanicHookInfo<'b>,), Output = ()> + core[877970e523a29999]::marker::Send + core[877970e523a29999]::marker::Sync, &std[d416ba3efb7c0ea2]::panic::PanicHookInfo)>>::call
-   = help: consider annotating `ReprAlign` with `#[repr(C)]` to explicitly specify memory layout
 
-error: this union has the default representation
+error: the compiler unexpectedly panicked. this is a bug.
 
 
-error: aborting due to 4 previous errors
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---
   |


FAILED TEST: tests/ui/derive.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/derive.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/derive.stderr` to the actual output
--- tests/ui/derive.stderr
+++ <stderr output>
---
+   9:     0x7f3dd1d3cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7f3dd1d3f51d - rust_begin_unwind
+  11:     0x7f3dd1d97e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7f3dd1d97f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7f3dd193ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7f3dd1939bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x55d9c50ea912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x55d9c50944ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x55d9c54e5515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x55d9c54e50fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7f3dd0164947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  21:     0x7f3dd017613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  22:     0x7f3dcd849836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  23:     0x7f3dcd82bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  24:     0x7f3dcfcd70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  24:     0x7f3dcfcd70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  25:     0x7f3dcfda97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  26:     0x7f3dcfb88c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  27:     0x7f3dd002b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  28:     0x7f3dcd3f51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  29:     0x7f3dcd49db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  30:     0x7f3dcd4425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  31:     0x7f3dcd4214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  32:     0x7f3dcd4eef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  33:     0x7f3dcd454b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  34:     0x7f3dcd4fa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  36:     0x7f3dcb184ac3 - <unknown>
+  37:     0x7f3dcb216850 - <unknown>
+  38:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/eager_transmute.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/eager_transmute.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/eager_transmute.stderr` to the actual output
--- tests/ui/eager_transmute.stderr
+++ <stderr output>
+++ <stderr output>
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     (op < 4).then_some(unsafe { std::mem::transmute(op) })
-   |
-   = note: `-D clippy::eager-transmute` implied by `-D warnings`
-   = help: to override `-D warnings` add `#[allow(clippy::eager_transmute)]`
-help: consider using `bool::then` to only transmute if the condition holds
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-LL |     (op < 4).then(|| unsafe { std::mem::transmute(op) })
-   |              ~~~~ ++
 
-error: this transmute is always evaluated eagerly, even if the condition is false
-  --> tests/ui/eager_transmute.rs:27:33
+explicit panic
-   |
+stack backtrace:
+stack backtrace:
-LL |     (op < 4).then_some(unsafe { std::mem::transmute::<_, Opcode>(op) });
-   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   1:     0x7fb90f59c5f3 - core[877970e523a29999]::fmt::write
-   |
+   2:     0x7fb90f52f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
+   2:     0x7fb90f52f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
-help: consider using `bool::then` to only transmute if the condition holds
+   3:     0x7fb90f53c612 - <std[d416ba3efb7c0ea2]::sys::backtrace::BacktraceLock>::print
-   |
+   4:     0x7fb90f53f069 - std[d416ba3efb7c0ea2]::panicking::default_hook::{closure#0}
-LL |     (op < 4).then(|| unsafe { std::mem::transmute::<_, Opcode>(op) });
-   |              ~~~~ ++
+   6:     0x7fb90acd70a2 - <alloc[fc3cf5992ff4a323]::boxed::Box<rustc_driver_impl[bac3d7b157dbef88]::install_ice_hook::{closure#1}> as core[877970e523a29999]::ops::function::Fn<(&dyn for<'a, 'b> core[877970e523a29999]::ops::function::Fn<(&'a std[d416ba3efb7c0ea2]::panic::PanicHookInfo<'b>,), Output = ()> + core[877970e523a29999]::marker::Send + core[877970e523a29999]::marker::Sync, &std[d416ba3efb7c0ea2]::panic::PanicHookInfo)>>::call
 
 
-error: this transmute is always evaluated eagerly, even if the condition is false
 
 
-error: this transmute is always evaluated eagerly, even if the condition is false
 
 
-error: this transmute is always evaluated eagerly, even if the condition is false
 
 
-error: this transmute is always evaluated eagerly, even if the condition is false
+note: compiler flags: -Z ui-testing -Z deduplicate-diagnostics=no
 
-error: this transmute is always evaluated eagerly, even if the condition is false
-  --> tests/ui/eager_transmute.rs:35:84
+#0 [analysis] running analysis passes on this crate
-   |
+end of query stack
+end of query stack
-LL |     let _: Option<Opcode> = (op2.foo[0] > 0 && op2.foo[0] < 10).then_some(unsafe { std::mem::transmute(op2.foo[0]) });
+note: Clippy version: clippy 0.1.86 (91659aa43c 2025-02-06)
 
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<Opcode> = (1..=3).contains(&op).then_some(unsafe { std::mem::transmute(op) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<Opcode> = (1..=3).contains(&op).then(|| unsafe { std::mem::transmute(op) });
-   |                                                   ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<Opcode> = ((1..=3).contains(&op) || op == 4).then_some(unsafe { std::mem::transmute(op) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<Opcode> = ((1..=3).contains(&op) || op == 4).then(|| unsafe { std::mem::transmute(op) });
-   |                                                                ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<Opcode> = (1..3).contains(&op).then_some(unsafe { std::mem::transmute(op) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<Opcode> = (1..3).contains(&op).then(|| unsafe { std::mem::transmute(op) });
-   |                                                  ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<Opcode> = (1..).contains(&op).then_some(unsafe { std::mem::transmute(op) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<Opcode> = (1..).contains(&op).then(|| unsafe { std::mem::transmute(op) });
-   |                                                 ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<Opcode> = (..3).contains(&op).then_some(unsafe { std::mem::transmute(op) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<Opcode> = (..3).contains(&op).then(|| unsafe { std::mem::transmute(op) });
-   |                                                 ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<Opcode> = (..=3).contains(&op).then_some(unsafe { std::mem::transmute(op) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<Opcode> = (..=3).contains(&op).then(|| unsafe { std::mem::transmute(op) });
-   |                                                  ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     (op < 4).then_some(std::mem::transmute::<_, Opcode>(op));
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     (op < 4).then(|| std::mem::transmute::<_, Opcode>(op));
-   |              ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<NonZero<u8>> = (v1 > 0).then_some(unsafe { std::mem::transmute(v1) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<NonZero<u8>> = (v1 > 0).then(|| unsafe { std::mem::transmute(v1) });
-   |                                           ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<NonMaxU8> = (v2 < NonZero::new(255u8).unwrap()).then_some(unsafe { std::mem::transmute(v2) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<NonMaxU8> = (v2 < NonZero::new(255u8).unwrap()).then(|| unsafe { std::mem::transmute(v2) });
-   |                                                                   ~~~~ ++
-
-error: this transmute is always evaluated eagerly, even if the condition is false
-   |
-   |
-LL |     let _: Option<NonZeroNonMaxU8> = (v2 < NonZero::new(255u8).unwrap()).then_some(unsafe { std::mem::transmute(v2) });
-   |
-help: consider using `bool::then` to only transmute if the condition holds
-   |
-   |
-LL |     let _: Option<NonZeroNonMaxU8> = (v2 < NonZero::new(255u8).unwrap()).then(|| unsafe { std::mem::transmute(v2) });
-   |                                                                          ~~~~ ++
-error: aborting due to 17 previous errors
-




FAILED TEST: tests/ui/enum_clike_unportable_variant.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/enum_clike_unportable_variant.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/enum_clike_unportable_variant.stderr` to the actual output
--- tests/ui/enum_clike_unportable_variant.stderr
+++ <stderr output>
---
 
-error: C-like enum variant discriminant is not portable to 32-bit targets
+error: the compiler unexpectedly panicked. this is a bug.
 
-error: C-like enum variant discriminant is not portable to 32-bit targets
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
-error: C-like enum variant discriminant is not portable to 32-bit targets
+note: please make sure that you have updated to the latest nightly
 
-error: C-like enum variant discriminant is not portable to 32-bit targets
---
-error: aborting due to 9 previous errors
-


error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 8
  |
9 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
  |
  |

error: ``-D clippy::enum-clike-unportable-variant` implied by `-D warnings`` not found in diagnostics on line 8
   |
   |
10 |     //~| NOTE: `-D clippy::enum-clike-unportable-variant` implied by `-D warnings`
   |


error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 17
   |
18 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 21
   |
22 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 29
   |
30 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 31
   |
32 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 34
   |
35 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 41
   |
42 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 43
   |
44 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |

error: `C-like enum variant discriminant is not portable to 32-bit targets` not found in diagnostics on line 49
   |
50 |     //~^ ERROR: C-like enum variant discriminant is not portable to 32-bit targets
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |


FAILED TEST: tests/ui/exhaustive_items.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/exhaustive_items.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/exhaustive_items.stderr` to the actual output
--- tests/ui/exhaustive_items.stderr
+++ <stderr output>
---
-   | |_____^
-   |
-help: try adding #[non_exhaustive]
-   |
-LL ~     #[non_exhaustive]
-LL ~     pub enum ExhaustiveWithAttrs {
 
-error: exported structs should not be exhaustive
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
-  --> tests/ui/exhaustive_items.rs:53:5
---
-  --> tests/ui/exhaustive_items.rs:1:35
+   7:     0x7f1b5db3fd13 - std[d416ba3efb7c0ea2]::panicking::rust_panic_with_hook
-   |
+   8:     0x7f1b5db3f90e - std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}
-LL | #![deny(clippy::exhaustive_enums, clippy::exhaustive_structs)]
-   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
+  10:     0x7f1b5db3f51d - rust_begin_unwind
-help: try adding #[non_exhaustive]
+  11:     0x7f1b5db97e10 - core[877970e523a29999]::panicking::panic_fmt
+  11:     0x7f1b5db97e10 - core[877970e523a29999]::panicking::panic_fmt
-   |
+  12:     0x7f1b5db97f96 - core[877970e523a29999]::panicking::panic_explicit
-LL ~     #[non_exhaustive]
+  13:     0x7f1b5d73ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
-LL ~     pub struct Exhaustive {
+  14:     0x7f1b5d739bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
-   |
+  15:     0x55d3830a9b42 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
-error: aborting due to 3 previous errors
+error: the compiler unexpectedly panicked. this is a bug.
 
 
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/missing_transmute_annotations.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/missing_transmute_annotations.rs" "--extern" "macro_rules=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libmacro_rules.rlib" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/missing_transmute_annotations.stderr` to the actual output
--- tests/ui/missing_transmute_annotations.stderr
+++ <stderr output>
+++ <stderr output>
-error: transmute used without annotations
-  --> tests/ui/missing_transmute_annotations.rs:35:19
-   |
-LL |     i = std::mem::transmute([1u16, 2u16]);
-   |                   ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
-   = note: `-D clippy::missing-transmute-annotations` implied by `-D warnings`
-   = help: to override `-D warnings` add `#[allow(clippy::missing_transmute_annotations)]`
 
-error: transmute used without annotations
-error: transmute used without annotations
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
-  --> tests/ui/missing_transmute_annotations.rs:37:19
+explicit panic
-   |
+stack backtrace:
-LL |     i = std::mem::transmute::<_, _>([1u16, 2u16]);
-   |                   ^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
+   1:     0x7f91d279c5f3 - core[877970e523a29999]::fmt::write
 
-error: transmute used without annotations
-error: transmute used without annotations
+error: the compiler unexpectedly panicked. this is a bug.
 
-error: transmute used without annotations
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
-error: transmute used without annotations
+note: please make sure that you have updated to the latest nightly
 
-error: transmute used without annotations
---
-  --> tests/ui/missing_transmute_annotations.rs:54:19
+#0 [analysis] running analysis passes on this crate
-   |
+end of query stack
-LL |     i = std::mem::transmute([0i16, 0i16]);
+note: Clippy version: clippy 0.1.86 (91659aa43c 2025-02-06)
-error: transmute used without annotations
-  --> tests/ui/missing_transmute_annotations.rs:57:19
-   |
-LL |     i = std::mem::transmute(Foo::A);
-LL |     i = std::mem::transmute(Foo::A);
-   |                   ^^^^^^^^^ help: consider adding missing annotations: `transmute::<Foo, i32>`
-error: transmute used without annotations
-  --> tests/ui/missing_transmute_annotations.rs:64:35
-   |
-   |
-LL |     let x: _ = unsafe { std::mem::transmute::<_, i32>([1u16, 2u16]) };
-   |                                   ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
-error: transmute used without annotations
-  --> tests/ui/missing_transmute_annotations.rs:67:30
-   |
-   |
-LL |         let x: _ = std::mem::transmute::<_, i32>([1u16, 2u16]);
-   |                              ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
-error: aborting due to 11 previous errors
-


---
   |


FAILED TEST: tests/ui/must_use_unit.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/must_use_unit.rs" "--extern" "proc_macros=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libproc_macros.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/must_use_unit.stderr` to the actual output
--- tests/ui/must_use_unit.stderr
+++ <stderr output>
---
-  --> tests/ui/must_use_unit.rs:34:1
+explicit panic
-   |
+stack backtrace:
-LL | #[cfg_attr(all(), deprecated, doc = "foo", must_use)]
+   0:     0x7f765593c771 - <<std[d416ba3efb7c0ea2]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[877970e523a29999]::fmt::Display>::fmt
-   |                   --------------------------------- help: change these attributes to: `deprecated, doc = "foo"`
-LL | fn issue_12320_2() {}
+   2:     0x7f765592f399 - <std[d416ba3efb7c0ea2]::sys::pal::unix::stdio::Stderr as std[d416ba3efb7c0ea2]::io::Write>::write_fmt
-   | ^^^^^^^^^^^^^^^^^^
+   3:     0x7f765593c612 - <std[d416ba3efb7c0ea2]::sys::backtrace::BacktraceLock>::print
+   3:     0x7f765593c612 - <std[d416ba3efb7c0ea2]::sys::backtrace::BacktraceLock>::print
 
-error: aborting due to 5 previous errors
+error: the compiler unexpectedly panicked. this is a bug.
 
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/repr_packed_without_abi.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--crate-type=lib" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/repr_packed_without_abi.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/repr_packed_without_abi.stderr` to the actual output
--- tests/ui/repr_packed_without_abi.stderr
+++ <stderr output>
+++ <stderr output>
-error: item uses `packed` representation without ABI-qualification
-   |
-LL |   #[repr(packed)]
-   |          ------ `packed` representation set here
-   |          ------ `packed` representation set here
-LL | / struct NetworkPacketHeader {
-LL | |     header_version: u16,
-LL | | }
-   | |_^
-   |
-   |
-   = warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
-   = help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
-  --> tests/ui/repr_packed_without_abi.rs:1:9
-   |
-LL | #![deny(clippy::repr_packed_without_abi)]
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error: item uses `packed` representation without ABI-qualification
-  --> tests/ui/repr_packed_without_abi.rs:10:1
+explicit panic
-   |
+stack backtrace:
---
-   | |_^
+   6:     0x7f399c0d70a2 - <alloc[fc3cf5992ff4a323]::boxed::Box<rustc_driver_impl[bac3d7b157dbef88]::install_ice_hook::{closure#1}> as core[877970e523a29999]::ops::function::Fn<(&dyn for<'a, 'b> core[877970e523a29999]::ops::function::Fn<(&'a std[d416ba3efb7c0ea2]::panic::PanicHookInfo<'b>,), Output = ()> + core[877970e523a29999]::marker::Send + core[877970e523a29999]::marker::Sync, &std[d416ba3efb7c0ea2]::panic::PanicHookInfo)>>::call
-   |
+   7:     0x7f39a093fd13 - std[d416ba3efb7c0ea2]::panicking::rust_panic_with_hook
-   = warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
+   8:     0x7f39a093f90e - std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}
-   = help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
 
-error: aborting due to 2 previous errors
+error: the compiler unexpectedly panicked. this is a bug.
 
 
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/struct_excessive_bools.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/struct_excessive_bools.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/struct_excessive_bools.stderr` to the actual output
--- tests/ui/struct_excessive_bools.stderr
+++ <stderr output>
---
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
 
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---
+error: aborting due to 1 previous error
+


error: `more than 3 bools in a struct` not found in diagnostics on line 39
   |
40 |         //~^ ERROR: more than 3 bools in a struct
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
   |
   |


FAILED TEST: tests/ui/trailing_empty_array.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--test" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/trailing_empty_array.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/trailing_empty_array.stderr` to the actual output
--- tests/ui/trailing_empty_array.stderr
+++ <stderr output>
+++ <stderr output>
 error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
   --> tests/ui/trailing_empty_array.rs:6:1
... 123 lines skipped ...
    = help: consider annotating `LotsOfFields` with `#[repr(C)]` or another `repr` attribute
+
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
+explicit panic
+stack backtrace:
---
+   9:     0x7f3ec0f3cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7f3ec0f3f51d - rust_begin_unwind
+  11:     0x7f3ec0f97e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7f3ec0f97f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7f3ec0b3ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7f3ec0b39bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x5586f8759912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x5586f87034ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x5586f8b54515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x5586f8b540fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7f3ebf364947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  21:     0x7f3ebf37613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  22:     0x7f3ebca49836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  23:     0x7f3ebca2bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  24:     0x7f3ebeed70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  24:     0x7f3ebeed70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  25:     0x7f3ebefa97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  26:     0x7f3ebed88c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  27:     0x7f3ebf22b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  28:     0x7f3ebc5f51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  29:     0x7f3ebc69db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  30:     0x7f3ebc6425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  31:     0x7f3ebc6214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  32:     0x7f3ebc6eef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  33:     0x7f3ebc654b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  34:     0x7f3ebc6fa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  36:     0x7f3eba384ac3 - <unknown>
+  37:     0x7f3eba416850 - <unknown>
+  38:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/transmute_undefined_repr.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/transmute_undefined_repr.rs" "--edition" "2021"
error: actual output differed from expected
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/transmute_undefined_repr.stderr` to the actual output
--- tests/ui/transmute_undefined_repr.stderr
+++ <stderr output>
-error: transmute from `Ty2<u32, i32>` which has an undefined layout
-   |
-   |
-LL |         let _: Ty2C<u32, i32> = transmute(value::<Ty2<u32, i32>>());
-   |
-   = note: `-D clippy::transmute-undefined-repr` implied by `-D warnings`
-   = help: to override `-D warnings` add `#[allow(clippy::transmute_undefined_repr)]`
 
 
-error: transmute into `Ty2<u32, i32>` which has an undefined layout
-  --> tests/ui/transmute_undefined_repr.rs:38:32
+explicit panic
-   |
+stack backtrace:
+stack backtrace:
-LL |         let _: Ty2<u32, i32> = transmute(value::<Ty2C<u32, i32>>());
-   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   1:     0x7f95d5b9c5f3 - core[877970e523a29999]::fmt::write
 
 
-error: transmute from `Ty<Ty2<u32, i32>>` to `Ty2<u32, f32>`, both of which have an undefined layout
 
 
-error: transmute from `Ty2<u32, f32>` to `Ty<Ty2<u32, i32>>`, both of which have an undefined layout
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
 
-error: transmute from `Ty<&Ty2<u32, i32>>` to `&Ty2<u32, f32>`, both of which have an undefined layout
 
 
-error: transmute from `&Ty2<u32, f32>` to `Ty<&Ty2<u32, i32>>`, both of which have an undefined layout
 
 
-error: transmute from `std::boxed::Box<Ty2<u32, u32>>` to `&mut Ty2<u32, f32>`, both of which have an undefined layout
+note: compiler flags: -Z ui-testing -Z deduplicate-diagnostics=no
 
-error: transmute from `&mut Ty2<u32, f32>` to `std::boxed::Box<Ty2<u32, u32>>`, both of which have an undefined layout
-  --> tests/ui/transmute_undefined_repr.rs:97:37
+#0 [analysis] running analysis passes on this crate
-   |
+end of query stack
+end of query stack
-LL |         let _: Box<Ty2<u32, u32>> = transmute(value::<&'static mut Ty2<u32, f32>>());
+note: Clippy version: clippy 0.1.86 (91659aa43c 2025-02-06)
 
-error: transmute into `*const Ty2<u32, u32>` which has an undefined layout
-   |
-   |
-LL |         let _: *const Ty2<u32, u32> = transmute(value::<*const Ty2C<u32, Ty2<u32, u32>>>());
-   |
-   |
-   = note: the contained type `Ty2<u32, u32>` has an undefined layout
-
-error: transmute from `*const Ty2<u32, u32>` which has an undefined layout
-   |
-   |
-LL |         let _: *const Ty2C<u32, Ty2<u32, u32>> = transmute(value::<*const Ty2<u32, u32>>());
-   |
-   |
-   = note: the contained type `Ty2<u32, u32>` has an undefined layout
-
-error: transmute from `std::vec::Vec<Ty2<U, i32>>` to `std::vec::Vec<Ty2<T, u32>>`, both of which have an undefined layout
-   |
-   |
-LL |         let _: Vec<Ty2<T, u32>> = transmute(value::<Vec<Ty2<U, i32>>>());
-   |
-   |
-   = note: two instances of the same generic type (`Vec`) may have different layouts
-
-error: transmute from `std::vec::Vec<Ty2<T, u32>>` to `std::vec::Vec<Ty2<U, i32>>`, both of which have an undefined layout
-   |
-   |
-LL |         let _: Vec<Ty2<U, i32>> = transmute(value::<Vec<Ty2<T, u32>>>());
-   |
-   |
-   = note: two instances of the same generic type (`Vec`) may have different layouts
-error: aborting due to 12 previous errors
-



error: `transmute from `Ty2<u32, i32>` which has an undefined layout` not found in diagnostics on line 34
   |
   |
35 |         //~^ ERROR: transmute from `Ty2<u32, i32>` which has an undefined layout
   |


error: ``-D clippy::transmute-undefined-repr` implied by `-D warnings`` not found in diagnostics on line 34
   |
   |
36 |         //~| NOTE: `-D clippy::transmute-undefined-repr` implied by `-D warnings`
   |


error: `transmute into `Ty2<u32, i32>` which has an undefined layout` not found in diagnostics on line 38
   |
   |
39 |         //~^ ERROR: transmute into `Ty2<u32, i32>` which has an undefined layout
   |


error: `transmute from `Ty<Ty2<u32, i32>>` to `Ty2<u32, f32>`, both of which h` not found in diagnostics on line 47
   |
   |
48 |         //~^ ERROR: transmute from `Ty<Ty2<u32, i32>>` to `Ty2<u32, f32>`, both of which h
   |


error: `two instances of the same generic type (`Ty2`) may have different layou` not found in diagnostics on line 47
   |
   |
49 |         //~| NOTE: two instances of the same generic type (`Ty2`) may have different layou
   |


error: `transmute from `Ty2<u32, f32>` to `Ty<Ty2<u32, i32>>`, both of which h` not found in diagnostics on line 51
   |
   |
52 |         //~^ ERROR: transmute from `Ty2<u32, f32>` to `Ty<Ty2<u32, i32>>`, both of which h
   |


error: `two instances of the same generic type (`Ty2`) may have different layou` not found in diagnostics on line 51
   |
   |
53 |         //~| NOTE: two instances of the same generic type (`Ty2`) may have different layou
   |


error: `transmute from `Ty<&Ty2<u32, i32>>` to `&Ty2<u32, f32>`, both of which` not found in diagnostics on line 59
   |
   |
60 |         //~^ ERROR: transmute from `Ty<&Ty2<u32, i32>>` to `&Ty2<u32, f32>`, both of which
   |


error: `two instances of the same generic type (`Ty2`) may have different layou` not found in diagnostics on line 59
   |
   |
61 |         //~| NOTE: two instances of the same generic type (`Ty2`) may have different layou
   |


error: `transmute from `&Ty2<u32, f32>` to `Ty<&Ty2<u32, i32>>`, both of which` not found in diagnostics on line 63
   |
   |
64 |         //~^ ERROR: transmute from `&Ty2<u32, f32>` to `Ty<&Ty2<u32, i32>>`, both of which
   |


error: `two instances of the same generic type (`Ty2`) may have different layou` not found in diagnostics on line 63
   |
   |
65 |         //~| NOTE: two instances of the same generic type (`Ty2`) may have different layou
   |


error: `transmute from `std::boxed::Box<Ty2<u32, u32>>` to `&mut Ty2<u32, f32>` not found in diagnostics on line 93
   |
   |
94 |         //~^ ERROR: transmute from `std::boxed::Box<Ty2<u32, u32>>` to `&mut Ty2<u32, f32>
   |


error: `two instances of the same generic type (`Ty2`) may have different layou` not found in diagnostics on line 93
   |
   |
95 |         //~| NOTE: two instances of the same generic type (`Ty2`) may have different layou
   |


error: `transmute from `&mut Ty2<u32, f32>` to `std::boxed::Box<Ty2<u32, u32>>` not found in diagnostics on line 97
   |
   |
98 |         //~^ ERROR: transmute from `&mut Ty2<u32, f32>` to `std::boxed::Box<Ty2<u32, u32>>
   |


error: `two instances of the same generic type (`Ty2`) may have different layou` not found in diagnostics on line 97
   |
   |
99 |         //~| NOTE: two instances of the same generic type (`Ty2`) may have different layou
   |


error: `transmute into `*const Ty2<u32, u32>` which has an undefined layout` not found in diagnostics on line 194
    |
    |
195 |         //~^ ERROR: transmute into `*const Ty2<u32, u32>` which has an undefined layout
    |


error: `the contained type `Ty2<u32, u32>` has an undefined layout` not found in diagnostics on line 194
    |
    |
196 |         //~| NOTE: the contained type `Ty2<u32, u32>` has an undefined layout
    |


error: `transmute from `*const Ty2<u32, u32>` which has an undefined layout` not found in diagnostics on line 198
    |
    |
199 |         //~^ ERROR: transmute from `*const Ty2<u32, u32>` which has an undefined layout
    |


error: `the contained type `Ty2<u32, u32>` has an undefined layout` not found in diagnostics on line 198
    |
    |
200 |         //~| NOTE: the contained type `Ty2<u32, u32>` has an undefined layout
    |


error: `transmute from `std::vec::Vec<Ty2<U, i32>>` to `std::vec::Vec<Ty2<T, u` not found in diagnostics on line 245
    |
    |
246 |         //~^ ERROR: transmute from `std::vec::Vec<Ty2<U, i32>>` to `std::vec::Vec<Ty2<T, u
    |


error: `two instances of the same generic type (`Vec`) may have different layou` not found in diagnostics on line 245
    |
    |
247 |         //~| NOTE: two instances of the same generic type (`Vec`) may have different layou
    |


error: `transmute from `std::vec::Vec<Ty2<T, u32>>` to `std::vec::Vec<Ty2<U, i` not found in diagnostics on line 249
    |
    |
250 |         //~^ ERROR: transmute from `std::vec::Vec<Ty2<T, u32>>` to `std::vec::Vec<Ty2<U, i
    |


error: `two instances of the same generic type (`Vec`) may have different layou` not found in diagnostics on line 249
    |
    |
251 |         //~| NOTE: two instances of the same generic type (`Vec`) may have different layou
    |


FAILED TEST: tests/ui/transmutes_expressible_as_ptr_casts.rs
FAILED TEST: tests/ui/transmutes_expressible_as_ptr_casts.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/transmutes_expressible_as_ptr_casts.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/transmutes_expressible_as_ptr_casts.stderr` to the actual output
--- tests/ui/transmutes_expressible_as_ptr_casts.stderr
+++ <stderr output>
+++ <stderr output>
 error: transmute from an integer to a pointer
   --> tests/ui/transmutes_expressible_as_ptr_casts.rs:17:39
... 68 lines skipped ...
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `in_param as *const [i32; 1] as *const u8`
-error: transmute from `fn()` to `*const u8` which could be expressed as a pointer cast instead
-  --> tests/ui/transmutes_expressible_as_ptr_casts.rs:83:28
-   |
-   |
-LL |     let _x: u8 = unsafe { *std::mem::transmute::<fn(), *const u8>(f) };
-   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(f as *const u8)`
-error: aborting due to 10 previous errors
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
 
+error: the compiler unexpectedly panicked. this is a bug.
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/type_complexity.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/type_complexity.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/type_complexity.stderr` to the actual output
--- tests/ui/type_complexity.stderr
+++ <stderr output>
+++ <stderr output>
 error: very complex type used. Consider factoring parts into `type` definitions
... 89 lines skipped ...
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+
---
+   9:     0x7f946a53cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7f946a53f51d - rust_begin_unwind
+  11:     0x7f946a597e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7f946a597f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7f946a13ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7f946a139bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x558c064bc912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x558c064664ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x558c068b7515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x558c068b70fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7f9468964947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  21:     0x7f946897613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  22:     0x7f9466049836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  23:     0x7f946602bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  24:     0x7f94684d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  24:     0x7f94684d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  25:     0x7f94685a97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  26:     0x7f9468388c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  27:     0x7f946882b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  28:     0x7f9465bf51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  29:     0x7f9465c9db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  30:     0x7f9465c425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  31:     0x7f9465c214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  32:     0x7f9465ceef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  33:     0x7f9465c54b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  34:     0x7f9465cfa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  36:     0x7f9463a6bac3 - <unknown>
+  37:     0x7f9463afd850 - <unknown>
+  38:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/uninit_vec.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/uninit_vec.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/uninit_vec.stderr` to the actual output
--- tests/ui/uninit_vec.stderr
+++ <stderr output>
---
 
-error: calling `set_len()` immediately after reserving a buffer creates uninitialized values
-  --> tests/ui/uninit_vec.rs:179:9
-   |
-LL |         let mut vec: Vec<Enum<T>> = Vec::with_capacity(1);
-...
-LL |             vec.set_len(1);
-   |             ^^^^^^^^^^^^^^
-   |
-   |
-   = help: initialize the buffer or wrap the content in `MaybeUninit`
 
-error: aborting due to 14 previous errors
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
 
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---
    |


FAILED TEST: tests/ui/unnecessary_cast_unfixable.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/unnecessary_cast_unfixable.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/unnecessary_cast_unfixable.stderr` to the actual output
--- tests/ui/unnecessary_cast_unfixable.stderr
+++ <stderr output>
+++ <stderr output>
 error: casting raw pointers to the same type and constness is unnecessary (`*const u8` -> `*const u8`)
... 5 lines skipped ...
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
 
 
-error: casting raw pointers to the same type and constness is unnecessary (`*mut issue11113::Vtbl` -> `*mut issue11113::Vtbl`)
-   |
-   |
-LL |             ((*(*(self.object as *mut *mut _) as *mut Vtbl)).query)()
-   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*(self.object as *mut *mut _)`
-error: aborting due to 2 previous errors
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
 
+error: the compiler unexpectedly panicked. this is a bug.
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---
   |


FAILED TEST: tests/ui/useless_attribute.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/useless_attribute.rs" "--extern" "proc_macro_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libproc_macro_derive.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/useless_attribute.stderr` to the actual output
--- tests/ui/useless_attribute.stderr
+++ <stderr output>
---
+   9:     0x7fa73473cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7fa73473f51d - rust_begin_unwind
+  11:     0x7fa734797e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7fa734797f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7fa73433ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7fa734339bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x55ec96f82912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x55ec96f2c4ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x55ec9737d515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x55ec9737d0fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7fa732b64947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  20:     0x7fa732b71a6c - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_mod
+  21:     0x7fa732b64ac4 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  23:     0x7fa732b7613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  24:     0x7fa730249836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  25:     0x7fa73022bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  26:     0x7fa7326d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  26:     0x7fa7326d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  27:     0x7fa7327a97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  28:     0x7fa732588c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  29:     0x7fa732a2b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  30:     0x7fa72fdf51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  31:     0x7fa72fe9db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  32:     0x7fa72fe425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  33:     0x7fa72fe214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  34:     0x7fa72feeef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  35:     0x7fa72fe54b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  36:     0x7fa72fefa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  38:     0x7fa72db84ac3 - <unknown>
+  39:     0x7fa72dc16850 - <unknown>
+  40:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/use_self.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui" "tests/ui/use_self.rs" "--extern" "proc_macro_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libproc_macro_derive.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/use_self.stderr` to the actual output
--- tests/ui/use_self.stderr
+++ <stderr output>
---
 
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:468:13
-   |
-LL |             A::new::<submod::B>(submod::B {})
 
-error: unnecessary structure name repetition
+thread 'rustc' panicked at compiler/rustc_hir/src/hir.rs:1200:18:
-  --> tests/ui/use_self.rs:505:13
---
-error: unnecessary structure name repetition
+error: the compiler unexpectedly panicked. this is a bug.
 
-error: unnecessary structure name repetition
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
-error: unnecessary structure name repetition
+note: please make sure that you have updated to the latest nightly
 
-error: unnecessary structure name repetition
---
-  --> tests/ui/use_self.rs:575:17
+#0 [analysis] running analysis passes on this crate
-   |
+end of query stack
-LL |                 Something::StructNums { one, two: _ } => *one,
+note: Clippy version: clippy 0.1.86 (91659aa43c 2025-02-06)
-error: unnecessary structure name repetition
+error: aborting due to 27 previous errors
 
-error: unnecessary structure name repetition
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:582:17
-   |
-LL |                 crate::issue8845::Something::TupleNums(n, _m) => *n,
-
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:583:17
-   |
-   |
-LL |                 crate::issue8845::Something::StructNums { one, two: _ } => *one,
-
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:599:17
-   |
---
-
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:611:17
-   |
-LL |             let Bar { x, .. } = self;
-
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:616:17
-   |
-   |
-LL |             let crate::issue8845::Bar { x, .. } = self;
-
-error: unnecessary structure name repetition
-  --> tests/ui/use_self.rs:655:17
-   |
-   |
-LL |                 E::A => {},
-
-error: aborting due to 43 previous errors
-




FAILED TEST: tests/ui/doc/doc_include_without_cfg.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/doc" "tests/ui/doc/doc_include_without_cfg.rs" "--edition" "2021"
error: actual output differed from expected
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/doc/doc_include_without_cfg.stderr` to the actual output
--- tests/ui/doc/doc_include_without_cfg.stderr
-error: included a file in documentation unconditionally
-  --> tests/ui/doc/doc_include_without_cfg.rs:4:1
-   |
-   |
-LL | #![doc = include_str!("../approx_const.rs")]
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `cfg_attr(doc, doc = "...")`: `#![cfg_attr(doc, doc = include_str!("../approx_const.rs"))]`
-   = note: `-D clippy::doc-include-without-cfg` implied by `-D warnings`
-   = help: to override `-D warnings` add `#[allow(clippy::doc_include_without_cfg)]`
-
-error: included a file in documentation unconditionally
-error: included a file in documentation unconditionally
-  --> tests/ui/doc/doc_include_without_cfg.rs:31:1
-   |
-LL | #[doc = include_str!("../approx_const.rs")]
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `cfg_attr(doc, doc = "...")`: `#[cfg_attr(doc, doc = include_str!("../approx_const.rs"))]`
-error: aborting due to 2 previous errors
-



error: diagnostic code `clippy::doc_include_without_cfg` not found on line 4
##[error] --> tests/ui/doc/doc_include_without_cfg.rs:4:50
  |
4 | #![doc = include_str!("../approx_const.rs")] //~ doc_include_without_cfg
  |

error: diagnostic code `clippy::doc_include_without_cfg` not found on line 31
##[error]  --> tests/ui/doc/doc_include_without_cfg.rs:31:49
##[error]  --> tests/ui/doc/doc_include_without_cfg.rs:31:49
   |
31 | #[doc = include_str!("../approx_const.rs")] //~ doc_include_without_cfg
   |


FAILED TEST: tests/ui/declare_interior_mutable_const/others.rs
FAILED TEST: tests/ui/declare_interior_mutable_const/others.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/declare_interior_mutable_const" "tests/ui/declare_interior_mutable_const/others.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/declare_interior_mutable_const/others.stderr` to the actual output
--- tests/ui/declare_interior_mutable_const/others.stderr
+++ <stderr output>
---
+   9:     0x7f615913cd99 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_end_short_backtrace::<std[d416ba3efb7c0ea2]::panicking::begin_panic_handler::{closure#0}, !>
+  10:     0x7f615913f51d - rust_begin_unwind
+  11:     0x7f6159197e10 - core[877970e523a29999]::panicking::panic_fmt
+  12:     0x7f6159197f96 - core[877970e523a29999]::panicking::panic_explicit
+  13:     0x7f6158d3ce0e - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute as rustc_ast[a5dcdcdc68d2cbf5]::attr::AttributeExt>::style::panic_cold_explicit
+  14:     0x7f6158d39bea - <rustc_hir[9e5c45b4a901e52d]::hir::Attribute>::style
+  15:     0x55b9e1365912 - core[877970e523a29999]::iter::adapters::try_process::<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop, core[877970e523a29999]::option::Option<core[877970e523a29999]::convert::Infallible>, <core[877970e523a29999]::option::Option<alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>> as core[877970e523a29999]::iter::traits::collect::FromIterator<core[877970e523a29999]::option::Option<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>>::from_iter<core[877970e523a29999]::iter::adapters::map::Map<core[877970e523a29999]::iter::adapters::filter::Filter<core[877970e523a29999]::slice::iter::Iter<rustc_hir[9e5c45b4a901e52d]::hir::Attribute>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#0}>, clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check::{closure#1}>>::{closure#0}, alloc[fc3cf5992ff4a323]::vec::Vec<clippy_lints[18be51ce6e97a967]::doc::empty_line_after::Stop>>
+  16:     0x55b9e130f4ec - clippy_lints[18be51ce6e97a967]::doc::empty_line_after::check
+  17:     0x55b9e1760515 - clippy_lints[18be51ce6e97a967]::doc::check_attrs
+  18:     0x55b9e17600fd - <clippy_lints[18be51ce6e97a967]::doc::Documentation as rustc_lint[976148d8c5d28f6e]::passes::LateLintPass>::check_attributes
+  19:     0x7f6157564947 - <rustc_lint[976148d8c5d28f6e]::late::LateContextAndPass<rustc_lint[976148d8c5d28f6e]::late::RuntimeCombinedLateLintPass> as rustc_hir[9e5c45b4a901e52d]::intravisit::Visitor>::visit_nested_item
+  21:     0x7f615757613a - rustc_lint[976148d8c5d28f6e]::late::check_crate
+  22:     0x7f6154c49836 - <rustc_session[dba186e1fadba510]::session::Session>::time::<(), rustc_interface[80beeedfab3fe7a4]::passes::analysis::{closure#0}>
+  23:     0x7f6154c2bea3 - rustc_interface[80beeedfab3fe7a4]::passes::analysis
+  24:     0x7f61570d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  24:     0x7f61570d70f3 - rustc_query_impl[1b15fc6318825cbe]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>
+  25:     0x7f61571a97d1 - <rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::dynamic_query::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt, ())>>::call_once
+  26:     0x7f6156f88c41 - rustc_query_system[ef69bae11fd21403]::query::plumbing::try_execute_query::<rustc_query_impl[1b15fc6318825cbe]::DynamicConfig<rustc_query_system[ef69bae11fd21403]::query::caches::SingleCache<rustc_middle[7283328ab9aceb32]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[1b15fc6318825cbe]::plumbing::QueryCtxt, false>
+  27:     0x7f615742b778 - rustc_query_impl[1b15fc6318825cbe]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
+  28:     0x7f61547f51a2 - <std[d416ba3efb7c0ea2]::thread::local::LocalKey<core[877970e523a29999]::cell::Cell<*const ()>>>::with::<rustc_middle[7283328ab9aceb32]::ty::context::tls::enter_context<<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>::enter<rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#1}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>::{closure#0}, core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>>
+  29:     0x7f615489db07 - <rustc_middle[7283328ab9aceb32]::ty::context::TyCtxt>::create_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
+  30:     0x7f61548425b8 - <rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[877970e523a29999]::ops::function::FnOnce<(&rustc_session[dba186e1fadba510]::session::Session, rustc_middle[7283328ab9aceb32]::ty::context::CurrentGcx, &std[d416ba3efb7c0ea2]::sync::once_lock::OnceLock<rustc_middle[7283328ab9aceb32]::ty::context::GlobalCtxt>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_middle[7283328ab9aceb32]::arena::Arena>, &rustc_data_structures[13bd669f1b85fb55]::sync::worker_local::WorkerLocal<rustc_hir[9e5c45b4a901e52d]::Arena>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
+  31:     0x7f61548214ee - rustc_interface[80beeedfab3fe7a4]::passes::create_and_enter_global_ctxt::<core[877970e523a29999]::option::Option<rustc_interface[80beeedfab3fe7a4]::queries::Linker>, rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}::{closure#2}>
+  32:     0x7f61548eef35 - <scoped_tls[4836b2d70b7d2938]::ScopedKey<rustc_span[2af8e1d38330a72f]::SessionGlobals>>::set::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
+  33:     0x7f6154854b77 - std[d416ba3efb7c0ea2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
+  34:     0x7f61548fa03c - <<std[d416ba3efb7c0ea2]::thread::Builder>::spawn_unchecked_<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_with_globals<rustc_interface[80beeedfab3fe7a4]::util::run_in_thread_pool_with_globals<rustc_interface[80beeedfab3fe7a4]::interface::run_compiler<(), rustc_driver_impl[bac3d7b157dbef88]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[877970e523a29999]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
+  36:     0x7f615266bac3 - <unknown>
+  37:     0x7f61526fd850 - <unknown>
+  38:                0x0 - <unknown>
+
+
+error: the compiler unexpectedly panicked. this is a bug.
+
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
+note: please make sure that you have updated to the latest nightly
+
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
+
---



FAILED TEST: tests/ui/empty_line_after/outer_attribute.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/empty_line_after" "tests/ui/empty_line_after/outer_attribute.rs" "--extern" "proc_macro_attr=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary/libproc_macro_attr.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/auxiliary" "--edition" "2021"
error: actual output differed from expected
Execute `cargo uibless` to update `tests/ui/empty_line_after/outer_attribute.stderr` to the actual output
--- tests/ui/empty_line_after/outer_attribute.stderr
+++ <stderr output>
---
-error: empty line after outer attribute
+error: the compiler unexpectedly panicked. this is a bug.
 
-error: empty lines after outer attribute
+note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
-error: aborting due to 9 previous errors
+note: please make sure that you have updated to the latest nightly
 
+note: rustc 1.86.0-nightly (91659aa43 2025-02-06) running on x86_64-unknown-linux-gnu
---

error: diagnostic code `clippy::empty_line_after_outer_attr` not found on line 45
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:44:6
   |
44 | //~v empty_line_after_outer_attr
   |

error: diagnostic code `clippy::empty_line_after_outer_attr` not found on line 53
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:52:6
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:52:6
   |
52 | //~v empty_line_after_outer_attr
   |

error: diagnostic code `clippy::empty_line_after_outer_attr` not found on line 58
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:57:6
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:57:6
   |
57 | //~v empty_line_after_outer_attr
   |

error: diagnostic code `clippy::empty_line_after_outer_attr` not found on line 64
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:63:6
##[error]  --> tests/ui/empty_line_after/outer_attribute.rs:63:6
   |
63 | //~v empty_line_after_outer_attr
   |


FAILED TEST: tests/ui/missing_const_for_fn/cant_be_const.rs
FAILED TEST: tests/ui/missing_const_for_fn/cant_be_const.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "--extern=clippy_config=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_config-e6ea37cb638e63c2.rlib" "--extern=clippy_lints=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-d76aca92153d9a0d.rlib" "--extern=clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-2fc2dfabb8d9f9a4.rlib" "--extern=futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-c6b15f405131634a.rlib" "--extern=if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-45ef8a96f3e545c7.rlib" "--extern=itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-9656da8cc10b9684.rlib" "--extern=parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparking_lot-f91003c2878d7b70.rlib" "--extern=quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-fcde03586ffe7a98.rlib" "--extern=regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-96712d1447082581.rlib" "--extern=serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-dab342f989862ee6.rlib" "--extern=serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde_derive-d1c9d4326af97dc8.so" "--extern=syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-0bb941cb3a5dd37e.rlib" "--extern=tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtokio-a8ed6d19d4a7e1b0.rlib" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--crate-type=lib" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/tests/ui/missing_const_for_fn/auxiliary" "tests/ui/missing_const_for_fn/auxiliary/helper.rs" "--edition" "2021" "--emit=link"
error: aux build failed
##[error] --> tests/ui/missing_const_for_fn/cant_be_const.rs:5:14
  |
  |
5 | //@aux-build:helper.rs
  |              ^^^^^^^^^ tests/ui/missing_const_for_fn/cant_be_const.rs
error: compilation of aux build failed failed with exit status: 101


FAILURES:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: malformed malformed repr(align(N))