1
Fork 0

make get_relocations private

This limits access to the relocations data a bit (instead of increasing it just
for the purposes of interning).
This commit is contained in:
Rémy Rakic 2022-06-13 10:30:59 +02:00
parent 97a0b2e2d0
commit 266bab2ab0
2 changed files with 12 additions and 7 deletions

View file

@ -945,7 +945,7 @@ impl<'tcx, 'a, Tag: Provenance, Extra> AllocRef<'a, 'tcx, Tag, Extra> {
/// Returns whether the allocation has relocations for the entire range of the `AllocRef`.
pub(crate) fn has_relocations(&self) -> bool {
!self.alloc.get_relocations(&self.tcx, self.range).is_empty()
self.alloc.has_relocations(&self.tcx, self.range)
}
}