Files
rust/compiler/rustc_mir_transform
Jonathan Brouwer b61a76f895 Rollup merge of #162354 - Zalathar:comptime, r=oli-obk
Make comptime functions ineligible for coverage

- https://github.com/rust-lang/rust/pull/159777
- https://github.com/rust-lang/rust/pull/161808
---

As reported in https://github.com/rust-lang/rust/pull/161808, the assertion in https://github.com/rust-lang/rust/pull/159777 causes the compiler to ICE when it tries to generate an unused-function record for comptime functions, because comptime functions aren't allowed to have a symbol name. This can occur when trying to instrument `core`, for example.

Compile-time-only functions don't generate code, so instrumenting them for coverage is useless anyway. This PR therefore makes them ineligible for coverage, which avoids the problem.
2026-09-07 17:08:10 +02:00
..
2026-08-21 10:33:56 +02:00