Repository: rust
Issue: Unexpected panic on Aarch64
Labels: I-ICE,T-compiler,C-bug,O-AArch64

<!--
Thank you for finding an Internal Compiler Error! 🧊  If possible, try to provide
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
how to create smaller examples.
http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/
-->


```Rust
// for the code and crate that produces the error (in the form github actions log info)
// see here: https://github.com/mert-kurttutan/mathfun-rs/actions/runs/13000183891/job/36257044721

```


### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.84.0 (9fc6b4312 2025-01-07) running on aarch64-unknown-linux-gnu
```

### Error output

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

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.84.0 (9fc6b4312 2025-01-07) running on aarch[64](https://github.com/mert-kurttutan/mathfun-rs/actions/runs/13000183891/job/36257044721#step:5:65)-unknown-linux-gnu

note: compiler flags: -C opt-level=3 -C embed-bitcode=no -C strip=debuginfo

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [module_children] collecting child items of module `std`
#1 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
error: could not compile `mathfun` (lib test)

Caused by:
  process didn't exit successfully: `/home/runner/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name mathfun --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --test --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "std"))' -C metadata=204[68](https://github.com/mert-kurttutan/mathfun-rs/actions/runs/13000183891/job/36257044721#step:5:69)bf63416aaa8 -C extra-filename=-20468bf63416aaa8 --out-dir /home/runner/work/mathfun-rs/mathfun-rs/target/release/deps -C strip=debuginfo -L dependency=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps --extern criterion=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps/libcriterion-568a2f1ed[69](https://github.com/mert-kurttutan/mathfun-rs/actions/runs/13000183891/job/36257044721#step:5:70)f7c25.rlib --extern libc=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps/liblibc-0[70](https://github.com/mert-kurttutan/mathfun-rs/actions/runs/13000183891/job/36257044721#step:5:71)c2e4fd579957f.rlib --extern libloading=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps/liblibloading-ff4[71](https://github.com/mert-kurttutan/mathfun-rs/actions/runs/13000183891/job/36257044721#step:5:72)d9e02bcfa6e.rlib --extern once_cell=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps/libonce_cell-bea0138bc7ff6d31.rlib --extern rand=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps/librand-ac532ae89949bc32.rlib --extern raw_cpuid=/home/runner/work/mathfun-rs/mathfun-rs/target/release/deps/libraw_cpuid-20c384d344ab9c34.rlib -Dwarnings` (exit status: 101)
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
<backtrace>
```

</p>
</details>

Some additional details:
This occurred when testing some simd (with neon intrinsics) enabled functions on GitHub runners machine, `ubuntu-24.04-arm`,
As you can check jobs page, it gives error both on stable, but not 1.81.0.
I know this is not really ideal for reproducibility. But, since the message claims it is a bug, I wanted to report early.