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:
parent
97a0b2e2d0
commit
266bab2ab0
2 changed files with 12 additions and 7 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue