diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2024-01-15 22:31:02 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2024-01-16 23:49:38 +0000 |
| commit | b99c3ae6d66762b9faf863fa8078f5aad8b36205 (patch) | |
| tree | b57cb6d80226018092f0dd185aca2933913a7335 /compiler/rustc_hir/src | |
| parent | 92f2e0aa62113a5f31076a9414daca55722556cf (diff) | |
| download | rust-b99c3ae6d66762b9faf863fa8078f5aad8b36205.tar.gz rust-b99c3ae6d66762b9faf863fa8078f5aad8b36205.zip | |
Get rid of the hir_owner query.
Diffstat (limited to 'compiler/rustc_hir/src')
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 6b347f7035a..309850d04d3 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -841,7 +841,7 @@ pub struct OwnerNodes<'tcx> { } impl<'tcx> OwnerNodes<'tcx> { - fn node(&self) -> OwnerNode<'tcx> { + pub fn node(&self) -> OwnerNode<'tcx> { use rustc_index::Idx; let node = self.nodes[ItemLocalId::new(0)].as_ref().unwrap().node; let node = node.as_owner().unwrap(); // Indexing must ensure it is an OwnerNode. |
