about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-10-29 14:21:40 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-11-19 11:33:48 +1100
commit952c6d5c965bace1b329537579c287de7569c621 (patch)
tree282009ca8b00342fba612ecb27137eda686a93a2 /compiler/rustc_pattern_analysis/src
parented11fbe5dfc4abab912f5b6b80191730d9e64e61 (diff)
downloadrust-952c6d5c965bace1b329537579c287de7569c621.tar.gz
rust-952c6d5c965bace1b329537579c287de7569c621.zip
Clean up `UniversalRegions`.
There is an `Rc<UniversalRegions>` within `UniversalRegionRelations`,
and yet the two types get passed around in tandem a lot.

This commit makes `UniversalRegionRelations` own `UniversalRegions`,
removing the `Rc` (which wasn't truly needed) and the tandem-passing.
This requires adding a `universal_relations` method to
`UniversalRegionRelations`, and renaming a couple of existing methods
producing iterators to avoid a name clash.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions