diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-19 20:32:17 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-19 20:44:06 +1000 |
| commit | 41ca0cb020fd2440a015f053f675303869bd17c6 (patch) | |
| tree | 4e2eeceea8cb2d03cf6c01de3507efe881ee4c0d /compiler/rustc_codegen_llvm/src/allocator.rs | |
| parent | 1bb335244c311a07cee165c28c553c869e6f64a9 (diff) | |
| download | rust-41ca0cb020fd2440a015f053f675303869bd17c6.tar.gz rust-41ca0cb020fd2440a015f053f675303869bd17c6.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
0 files changed, 0 insertions, 0 deletions
