Files
rust/compiler
bors 2170b4da84 Auto merge of #144607 - camsteffen:impl-trait-header-option, r=lcnr
Limit impl_trait_header query to only trait impls

Changes `impl_trait_header` to panic on inherent impls intstead of returning None. A few downstream functions are split into option and non-option returning functions. This gets rid of a lot of unwraps where we know we have a trait impl, while there are still some cases where the Option is helpful.

Summary of changes to tcx methods:
* `impl_is_of_trait` (new)
* `impl_trait_header` -> `impl_trait_header`/`impl_opt_trait_header`
* `impl_trait_ref` -> `impl_trait_ref`/`impl_opt_trait_ref`
* `trait_id_of_impl` -> `impl_trait_id`/`impl_opt_trait_id`
2025-10-18 00:08:18 +00:00
..
2025-10-12 08:08:30 +00:00
2025-10-12 08:08:30 +00:00
2025-10-12 08:08:30 +00:00
2025-10-11 20:50:21 +00:00
2025-10-17 08:36:34 -05:00
2025-10-17 08:36:34 -05:00
2025-10-17 08:36:34 -05:00