diff options
Diffstat (limited to 'src/librustc/ty/item_path.rs')
| -rw-r--r-- | src/librustc/ty/item_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/item_path.rs b/src/librustc/ty/item_path.rs index 8ddd8bef36a..5e4e7b342d6 100644 --- a/src/librustc/ty/item_path.rs +++ b/src/librustc/ty/item_path.rs @@ -305,7 +305,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { /// Returns the def-id of `def_id`'s parent in the def tree. If /// this returns `None`, then `def_id` represents a crate root or /// inlined root. - fn parent_def_id(&self, def_id: DefId) -> Option<DefId> { + pub fn parent_def_id(&self, def_id: DefId) -> Option<DefId> { let key = self.def_key(def_id); key.parent.map(|index| DefId { krate: def_id.krate, index: index }) } |
