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

Rollup of 9 pull requests #139216

Closed
wants to merge 19 commits into from

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

xizheyin and others added 19 commits March 22, 2025 11:41
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
We also have to remove the LLVM argument in cast-target-abi.rs for LLVM
21. I'm not really sure what the best approach here is since that test
already uses revisions. We could also fork the test into a copy for LLVM
19-20 and another for LLVM 21, but what I did for now was drop the
lint-abort-on-error flag to LLVM figuring that some coverage was better
than none, but I'm happy to change this if that was a bad direction.

The above also applies for ffi-out-of-bounds-loads.rs.

r? dianqk
@rustbot label llvm-main
…r, r=GuillaumeGomez

rustdoc-json: Add test for #[automatically_derived] attribute

~~Will fail CI due to freestrings/jsonpath#91, but I wrote the test and don't want to forget it.~~

~~We should look into fixing the freestrings impl, or moving to a different one, so we can test things like this. [Zulip Disussion](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/jsonpath-plus.20integration)~~

FIXED!!! By rust-lang#138763

r? ```@ghost```

```@rustbot``` blocked
…errors

Note potential but private items in show_candidates

Closes rust-lang#138626 .
We should add potential private items to give ample hints.
And for the other seemingly false positive ` pub use crate::one::Foo;` should be kept because we don't know if the user wants to import other module's items or not, and therefore should be given the full option to do so.
r? compiler
replace extra_filename with strict version hash in metrics file names

Should resolve the potential issue of overwriting metrics from the same crate when compiled with different features or flags.

r? ```@estebank```
Add release notes for 1.86.0

Closes rust-lang#138795 (the draft)

cc ```@rust-lang/release```
```@rustbot``` ping relnotes-interest-group
increment depth of nested obligations

properly fixes the root cause of rust-lang#109268. While we didn't get hangs here before, I ended up encountering its root cause again with rust-lang#138785.

r? types
…-check-optimization, r=fee1-dead

Add tests for slice bounds check optimization

Closes rust-lang#134466
PassWrapper: adapt for llvm/llvm-project@94122d58fc77079a291a3d008914…

…006cb509d9db

We also have to remove the LLVM argument in cast-target-abi.rs for LLVM
21. I'm not really sure what the best approach here is since that test already uses revisions. We could also fork the test into a copy for LLVM 19-20 and another for LLVM 21, but what I did for now was drop the lint-abort-on-error flag to LLVM figuring that some coverage was better than none, but I'm happy to change this if that was a bad direction.

r? dianqk
```@rustbot``` label llvm-main
…r=eholk

Feed HIR for by-move coroutine body def, since the inliner tries to read its attrs

See the comments in the test.

I'm surprised that nobody found this[^1] (edit: nvm haha), but you have to go out of your way to construct the by-move body and then inline it w/ a poll call, so I guess the inliner just never really gets into this situation before.

Fixes rust-lang#134335

r? oli-obk

[^1]: Well, ```@eholk``` found this when working on the `iter! {}` macro, since it more dramatically affects those.
@rustbot rustbot added A-rustdoc-json Area: Rustdoc JSON backend S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-release Relevant to the release subteam, 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. rollup A PR which is a rollup labels Apr 1, 2025
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Apr 1, 2025

📌 Commit dba6300 has been approved by matthiaskrgr

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 1, 2025
@bors
Copy link
Collaborator

bors commented Apr 1, 2025

⌛ Testing commit dba6300 with merge cb70c56...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 1, 2025
…iaskrgr

Rollup of 9 pull requests

Successful merges:

 - rust-lang#110406 (rustdoc-json: Add test for #[automatically_derived] attribute)
 - rust-lang#138790 (Note potential but private items in show_candidates)
 - rust-lang#138950 (replace extra_filename with strict version hash in metrics file names)
 - rust-lang#139002 (Add release notes for 1.86.0)
 - rust-lang#139022 (increment depth of nested obligations)
 - rust-lang#139129 (Add tests for slice bounds check optimization)
 - rust-lang#139188 (PassWrapper: adapt for llvm/llvm-project@94122d58fc77079a291a3d008914…)
 - rust-lang#139193 (Feed HIR for by-move coroutine body def, since the inliner tries to read its attrs)
 - rust-lang#139202 (Improve docs of ValTreeKind)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

The job test-various failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- [run-make] tests/run-make/dump-ice-to-disk stdout ----

error: rmake recipe failed to complete
status: exit status: 101
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/dump-ice-to-disk/rmake_out" && env -u RUSTFLAGS AR="/wasi-sdk-25.0-x86_64-linux/bin/llvm-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="/wasi-sdk-25.0-x86_64-linux/bin/wasm32-wasip1-clang" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fno-exceptions --target=wasm32-wasip1" CXX="/wasi-sdk-25.0-x86_64-linux/bin/wasm32-wasip1-clang++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fno-exceptions --target=wasm32-wasip1" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" NODE="/node/bin/node" PYTHON="/usr/bin/python3" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="wasm32-wasip1" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/wasm32-wasip1/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/dump-ice-to-disk/rmake"
stdout: none
--- stderr -------------------------------
=== baseline ICE MESSAGE (59 lines) ====
thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:1824:17:
aborting due to `-Z treat-err-as-bug=1`
stack backtrace:
   0:     0x7f681de35285 - std::backtrace::Backtrace::create::h523ab7a16e1c8631
   1:     0x7f681de351d5 - std::backtrace::Backtrace::force_capture::he374cebd077cea5b
   2:     0x7f681a735322 - <alloc[a53298f35f25e932]::boxed::Box<rustc_driver_impl[11f42122908164]::install_ice_hook::{closure#1}> as core[e454a0f465485116]::ops::function::Fn<(&dyn for<'a, 'b> core[e454a0f465485116]::ops::function::Fn<(&'a std[f0ff6654284e725f]::panic::PanicHookInfo<'b>,), Output = ()> + core[e454a0f465485116]::marker::Send + core[e454a0f465485116]::marker::Sync, &std[f0ff6654284e725f]::panic::PanicHookInfo)>>::call
   3:     0x7f681de529c3 - std::panicking::rust_panic_with_hook::h8e41f503511d3370
   4:     0x7f681de52646 - std::panicking::begin_panic_handler::{{closure}}::h895798e85f8b5948
   5:     0x7f681de4e919 - std::sys::backtrace::__rust_end_short_backtrace::h405ed553a224f672
   6:     0x7f681de5230d - __rustc[a1c7c7e5ad6927fc]::rust_begin_unwind
   7:     0x7f681de9c640 - core::panicking::panic_fmt::h57548fb08316fd25
   8:     0x7f681d9f65ab - <rustc_errors[4e7a8fa7eda018d2]::DiagCtxtInner>::panic_if_treat_err_as_bug
   9:     0x7f681d9f5948 - <rustc_errors[4e7a8fa7eda018d2]::DiagCtxtInner>::emit_diagnostic::{closure#3}
  10:     0x7f681a942fc9 - rustc_interface[f4e50fb5c6bd53a9]::callbacks::track_diagnostic::<core[e454a0f465485116]::option::Option<rustc_span[814a24eaafcc2536]::ErrorGuaranteed>>
  11:     0x7f681d9f508c - <rustc_errors[4e7a8fa7eda018d2]::DiagCtxtInner>::emit_diagnostic
  12:     0x7f681d9f3a77 - <rustc_errors[4e7a8fa7eda018d2]::DiagCtxtHandle>::emit_diagnostic
  13:     0x7f681da05abb - <rustc_errors[4e7a8fa7eda018d2]::diagnostic::Diag>::emit_producing_error_guaranteed
  14:     0x7f681ac0d4b2 - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::report_arg_errors
  15:     0x7f681ac07711 - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::check_argument_types
  16:     0x7f681abd0dfe - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::confirm_builtin_call
  17:     0x7f681ac74548 - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::check_expr_kind
  18:     0x7f681abe46fd - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  19:     0x7f681ac1197e - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::check_expr_block
  20:     0x7f681abe46fd - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  21:     0x7f681abe5688 - <rustc_hir_typeck[d0daf39d9680cead]::fn_ctxt::FnCtxt>::check_return_or_body_tail
  22:     0x7f681ae484f1 - rustc_hir_typeck[d0daf39d9680cead]::check::check_fn
  23:     0x7f681aeac8ea - rustc_hir_typeck[d0daf39d9680cead]::typeck_with_inspect
  24:     0x7f681c66e730 - rustc_query_impl[84d40f582768db81]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[84d40f582768db81]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ae685df50b02b3f6]::query::erase::Erased<[u8; 8usize]>>
  25:     0x7f681c70390c - <rustc_query_impl[84d40f582768db81]::query_impl::typeck::dynamic_query::{closure#2} as core[e454a0f465485116]::ops::function::FnOnce<(rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt, rustc_span[814a24eaafcc2536]::def_id::LocalDefId)>>::call_once
  26:     0x7f681c6049f1 - rustc_query_system[1516103932015671]::query::plumbing::try_execute_query::<rustc_query_impl[84d40f582768db81]::DynamicConfig<rustc_data_structures[cbb70abdc166a49f]::vec_cache::VecCache<rustc_span[814a24eaafcc2536]::def_id::LocalDefId, rustc_middle[ae685df50b02b3f6]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[1516103932015671]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[84d40f582768db81]::plumbing::QueryCtxt, false>
  27:     0x7f681c88baf8 - rustc_query_impl[84d40f582768db81]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  28:     0x7f681b1ee882 - <rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis[f05cd43d49c69464]::check_crate::{closure#3}>::{closure#0}
  29:     0x7f681b1dd67b - <rustc_data_structures[cbb70abdc166a49f]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[cbb70abdc166a49f]::sync::parallel::par_for_each_in<&rustc_span[814a24eaafcc2536]::def_id::LocalDefId, &[rustc_span[814a24eaafcc2536]::def_id::LocalDefId], <rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt>::par_hir_body_owners<rustc_hir_analysis[f05cd43d49c69464]::check_crate::{closure#3}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
  30:     0x7f681b1dca3e - rustc_hir_analysis[f05cd43d49c69464]::check_crate
  31:     0x7f681a94b36e - rustc_interface[f4e50fb5c6bd53a9]::passes::analysis
  32:     0x7f681c66e80a - rustc_query_impl[84d40f582768db81]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[84d40f582768db81]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ae685df50b02b3f6]::query::erase::Erased<[u8; 0usize]>>
  33:     0x7f681c704288 - <rustc_query_impl[84d40f582768db81]::query_impl::analysis::dynamic_query::{closure#2} as core[e454a0f465485116]::ops::function::FnOnce<(rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt, ())>>::call_once
  34:     0x7f681c5937c5 - rustc_query_system[1516103932015671]::query::plumbing::try_execute_query::<rustc_query_impl[84d40f582768db81]::DynamicConfig<rustc_query_system[1516103932015671]::query::caches::SingleCache<rustc_middle[ae685df50b02b3f6]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[84d40f582768db81]::plumbing::QueryCtxt, false>
  35:     0x7f681c7fe1d4 - rustc_query_impl[84d40f582768db81]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  36:     0x7f681a677f8b - <std[f0ff6654284e725f]::thread::local::LocalKey<core[e454a0f465485116]::cell::Cell<*const ()>>>::with::<rustc_middle[ae685df50b02b3f6]::ty::context::tls::enter_context<<rustc_middle[ae685df50b02b3f6]::ty::context::GlobalCtxt>::enter<rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>>::{closure#1}, core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>>::{closure#0}, core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>>
  37:     0x7f681a6ba337 - <rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt>::create_global_ctxt::<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  38:     0x7f681a70bb8d - <rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[e454a0f465485116]::ops::function::FnOnce<(&rustc_session[6c503d09e657efcd]::session::Session, rustc_middle[ae685df50b02b3f6]::ty::context::CurrentGcx, &std[f0ff6654284e725f]::sync::once_lock::OnceLock<rustc_middle[ae685df50b02b3f6]::ty::context::GlobalCtxt>, &rustc_data_structures[cbb70abdc166a49f]::sync::worker_local::WorkerLocal<rustc_middle[ae685df50b02b3f6]::arena::Arena>, &rustc_data_structures[cbb70abdc166a49f]::sync::worker_local::WorkerLocal<rustc_hir[dc75039542a74d0a]::Arena>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  39:     0x7f681a70a061 - rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt::<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>
  40:     0x7f681a71d9aa - rustc_span[814a24eaafcc2536]::create_session_globals_then::<(), rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_with_globals<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_pool_with_globals<rustc_interface[f4e50fb5c6bd53a9]::interface::run_compiler<(), rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  41:     0x7f681a681622 - std[f0ff6654284e725f]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_with_globals<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_pool_with_globals<rustc_interface[f4e50fb5c6bd53a9]::interface::run_compiler<(), rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  42:     0x7f681a6b5336 - <<std[f0ff6654284e725f]::thread::Builder>::spawn_unchecked_<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_with_globals<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_pool_with_globals<rustc_interface[f4e50fb5c6bd53a9]::interface::run_compiler<(), rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[e454a0f465485116]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0x7f681de56b1b - std::sys::pal::unix::thread::Thread::new::thread_start::hcfd2e763a3cd719e
  44:     0x7f6818c6bac3 - <unknown>
  45:     0x7f6818cfd850 - <unknown>
  46:                0x0 - <unknown>


rustc version: 1.88.0-nightly (cb70c564d 2025-04-01)
platform: x86_64-unknown-linux-gnu

query stack during panic:
#0 [typeck] type-checking `main`
#1 [analysis] running analysis passes on this crate
end of query stack

=== -Zmetrics-dir only ICE MESSAGE (37 lines) ====
thread 'rustc' panicked at compiler/rustc_middle/src/hir/map.rs:1135:44:
HIR hash missing while computing crate hash
stack backtrace:
   0:     0x7f82f9035285 - std::backtrace::Backtrace::create::h523ab7a16e1c8631
   1:     0x7f82f90351d5 - std::backtrace::Backtrace::force_capture::he374cebd077cea5b
   2:     0x7f82f5935322 - <alloc[a53298f35f25e932]::boxed::Box<rustc_driver_impl[11f42122908164]::install_ice_hook::{closure#1}> as core[e454a0f465485116]::ops::function::Fn<(&dyn for<'a, 'b> core[e454a0f465485116]::ops::function::Fn<(&'a std[f0ff6654284e725f]::panic::PanicHookInfo<'b>,), Output = ()> + core[e454a0f465485116]::marker::Send + core[e454a0f465485116]::marker::Sync, &std[f0ff6654284e725f]::panic::PanicHookInfo)>>::call
   3:     0x7f82f90529c3 - std::panicking::rust_panic_with_hook::h8e41f503511d3370
   4:     0x7f82f905267a - std::panicking::begin_panic_handler::{{closure}}::h895798e85f8b5948
   5:     0x7f82f904e919 - std::sys::backtrace::__rust_end_short_backtrace::h405ed553a224f672
   6:     0x7f82f905230d - __rustc[a1c7c7e5ad6927fc]::rust_begin_unwind
   7:     0x7f82f909c640 - core::panicking::panic_fmt::h57548fb08316fd25
   8:     0x7f82f909c50b - core::option::expect_failed::h3280896d706ee739
   9:     0x7f82f8a8410b - rustc_middle[ae685df50b02b3f6]::hir::map::crate_hash
  10:     0x7f82f7867df3 - rustc_query_impl[84d40f582768db81]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[84d40f582768db81]::query_impl::crate_hash::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ae685df50b02b3f6]::query::erase::Erased<[u8; 16usize]>>
  11:     0x7f82f78d6e80 - <rustc_query_impl[84d40f582768db81]::query_impl::crate_hash::dynamic_query::{closure#2} as core[e454a0f465485116]::ops::function::FnOnce<(rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt, rustc_span[814a24eaafcc2536]::def_id::CrateNum)>>::call_once
  12:     0x7f82f7806216 - rustc_query_system[1516103932015671]::query::plumbing::try_execute_query::<rustc_query_impl[84d40f582768db81]::DynamicConfig<rustc_data_structures[cbb70abdc166a49f]::vec_cache::VecCache<rustc_span[814a24eaafcc2536]::def_id::CrateNum, rustc_middle[ae685df50b02b3f6]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[1516103932015671]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[84d40f582768db81]::plumbing::QueryCtxt, false>
  13:     0x7f82f7ab7f57 - rustc_query_impl[84d40f582768db81]::query_impl::crate_hash::get_query_non_incr::__rust_end_short_backtrace
  14:     0x7f82f58da407 - rustc_driver_impl[11f42122908164]::dump_feature_usage_metrics
  15:     0x7f82f5877520 - <std[f0ff6654284e725f]::thread::local::LocalKey<core[e454a0f465485116]::cell::Cell<*const ()>>>::with::<rustc_middle[ae685df50b02b3f6]::ty::context::tls::enter_context<<rustc_middle[ae685df50b02b3f6]::ty::context::GlobalCtxt>::enter<rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>>::{closure#1}, core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>>::{closure#0}, core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>>
  16:     0x7f82f58ba337 - <rustc_middle[ae685df50b02b3f6]::ty::context::TyCtxt>::create_global_ctxt::<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  17:     0x7f82f590bb8d - <rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[e454a0f465485116]::ops::function::FnOnce<(&rustc_session[6c503d09e657efcd]::session::Session, rustc_middle[ae685df50b02b3f6]::ty::context::CurrentGcx, &std[f0ff6654284e725f]::sync::once_lock::OnceLock<rustc_middle[ae685df50b02b3f6]::ty::context::GlobalCtxt>, &rustc_data_structures[cbb70abdc166a49f]::sync::worker_local::WorkerLocal<rustc_middle[ae685df50b02b3f6]::arena::Arena>, &rustc_data_structures[cbb70abdc166a49f]::sync::worker_local::WorkerLocal<rustc_hir[dc75039542a74d0a]::Arena>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  18:     0x7f82f590a061 - rustc_interface[f4e50fb5c6bd53a9]::passes::create_and_enter_global_ctxt::<core[e454a0f465485116]::option::Option<rustc_interface[f4e50fb5c6bd53a9]::queries::Linker>, rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}::{closure#2}>
  19:     0x7f82f591d9aa - rustc_span[814a24eaafcc2536]::create_session_globals_then::<(), rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_with_globals<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_pool_with_globals<rustc_interface[f4e50fb5c6bd53a9]::interface::run_compiler<(), rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  20:     0x7f82f5881622 - std[f0ff6654284e725f]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_with_globals<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_pool_with_globals<rustc_interface[f4e50fb5c6bd53a9]::interface::run_compiler<(), rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  21:     0x7f82f58b5336 - <<std[f0ff6654284e725f]::thread::Builder>::spawn_unchecked_<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_with_globals<rustc_interface[f4e50fb5c6bd53a9]::util::run_in_thread_pool_with_globals<rustc_interface[f4e50fb5c6bd53a9]::interface::run_compiler<(), rustc_driver_impl[11f42122908164]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[e454a0f465485116]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  22:     0x7f82f9056b1b - std::sys::pal::unix::thread::Thread::new::thread_start::hcfd2e763a3cd719e
  23:     0x7f82f3e6bac3 - <unknown>
  24:     0x7f82f3efd850 - <unknown>
  25:                0x0 - <unknown>


rustc version: 1.88.0-nightly (cb70c564d 2025-04-01)
platform: x86_64-unknown-linux-gnu

query stack during panic:
#0 [crate_hash] looking up the hash a crate
end of query stack

====================================

thread 'main' panicked at /checkout/tests/run-make/dump-ice-to-disk/rmake.rs:180:9:
ICE message length mismatch: baseline has 59 lines but -Zmetrics-dir only has 37 lines
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [run-make] tests/run-make/unstable-feature-usage-metrics stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/unstable-feature-usage-metrics/rmake_out" && env -u RUSTFLAGS AR="/wasi-sdk-25.0-x86_64-linux/bin/llvm-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="/wasi-sdk-25.0-x86_64-linux/bin/wasm32-wasip1-clang" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fno-exceptions --target=wasm32-wasip1" CXX="/wasi-sdk-25.0-x86_64-linux/bin/wasm32-wasip1-clang++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fno-exceptions --target=wasm32-wasip1" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" NODE="/node/bin/node" PYTHON="/usr/bin/python3" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="wasm32-wasip1" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/wasm32-wasip1/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/unstable-feature-usage-metrics/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 49
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/unstable-feature-usage-metrics/temporary-directory:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/unstable-feature-usage-metrics/temporary-directory" "lib.rs" "-Zmetrics-dir=/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/unstable-feature-usage-metrics/temporary-directory/metrics", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_location: Location { file: "/checkout/tests/run-make/unstable-feature-usage-metrics/rmake.rs", line: 45, col: 9 } }, already_executed: true }
output status: `exit status: 101`
=== STDOUT ===



=== STDERR ===

thread 'rustc' panicked at compiler/rustc_middle/src/hir/map.rs:1135:44:
HIR hash missing while computing crate hash
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::option::expect_failed
   3: rustc_middle::hir::map::crate_hash
      [... omitted 2 frames ...]
   4: rustc_driver_impl::dump_feature_usage_metrics
   5: <std::thread::local::LocalKey<core::cell::Cell<*const ()>>>::with::<rustc_middle::ty::context::tls::enter_context<<rustc_middle::ty::context::GlobalCtxt>::enter<rustc_interface::passes::create_and_enter_global_ctxt<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core::option::Option<rustc_interface::queries::Linker>>::{closure#1}, core::option::Option<rustc_interface::queries::Linker>>::{closure#0}, core::option::Option<rustc_interface::queries::Linker>>
   6: <rustc_middle::ty::context::TyCtxt>::create_global_ctxt::<core::option::Option<rustc_interface::queries::Linker>, rustc_interface::passes::create_and_enter_global_ctxt<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
   7: <rustc_interface::passes::create_and_enter_global_ctxt<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core::ops::function::FnOnce<(&rustc_session::session::Session, rustc_middle::ty::context::CurrentGcx, &std::sync::once_lock::OnceLock<rustc_middle::ty::context::GlobalCtxt>, &rustc_data_structures::sync::worker_local::WorkerLocal<rustc_middle::arena::Arena>, &rustc_data_structures::sync::worker_local::WorkerLocal<rustc_hir::Arena>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
   8: rustc_interface::passes::create_and_enter_global_ctxt::<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>
   9: rustc_span::create_session_globals_then::<(), rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.
---

note: compiler flags: -Z metrics-dir=/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/unstable-feature-usage-metrics/temporary-directory/metrics

query stack during panic:
#0 [crate_hash] looking up the hash a crate
end of query stack
------------------------------------------



@bors
Copy link
Collaborator

bors commented Apr 1, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-json Area: Rustdoc JSON backend rollup A PR which is a rollup S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-release Relevant to the release subteam, 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.