From ed9f8f83c90e995ad41f8c3c26f81d34900ec631 Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Mon, 3 Aug 2015 20:05:57 +1200 Subject: [PATCH] Expose more of the save analysis module --- src/librustc_trans/save/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc_trans/save/mod.rs b/src/librustc_trans/save/mod.rs index 8d3be7c8c607..083461cdc479 100644 --- a/src/librustc_trans/save/mod.rs +++ b/src/librustc_trans/save/mod.rs @@ -28,8 +28,8 @@ use syntax::print::pprust::ty_to_string; use self::span_utils::SpanUtils; -mod span_utils; -mod recorder; +pub mod span_utils; +pub mod recorder; mod dump_csv; @@ -661,7 +661,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> { } #[inline] - fn enclosing_scope(&self, id: NodeId) -> NodeId { + pub fn enclosing_scope(&self, id: NodeId) -> NodeId { self.tcx.map.get_enclosing_scope(id).unwrap_or(0) } }