rust/compiler/rustc_resolve
Nicholas Nethercote 41ca0cb020 Adjust with_generic_param_rib.
Currently all of its call sites construct a `LifetimeRibKind::Generics`
value, which `with_generic_param_rib` then deconstructs (and panics if
it's a different `LifetimeRibKind` variant).

This commit makes the code simpler and shorter: the call sites just pass
in the three values and `with_generic_param_rib` constructs the
`LifetimeRibKind::Generics` value from them.
2025-06-19 20:44:06 +10:00
..
2025-06-19 20:44:06 +10:00