diff options
| author | Garming Sam <garming_sam@outlook.com> | 2015-08-03 20:05:57 +1200 |
|---|---|---|
| committer | Garming Sam <garming_sam@outlook.com> | 2015-08-09 20:54:12 +1200 |
| commit | ed9f8f83c90e995ad41f8c3c26f81d34900ec631 (patch) | |
| tree | af1ee256b10c8d5ef0f70f178c3b68117fd66f17 | |
| parent | 8b98256f64362cc524952c0641f4e23c27937db1 (diff) | |
| download | rust-ed9f8f83c90e995ad41f8c3c26f81d34900ec631.tar.gz rust-ed9f8f83c90e995ad41f8c3c26f81d34900ec631.zip | |
Expose more of the save analysis module
| -rw-r--r-- | src/librustc_trans/save/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_trans/save/mod.rs b/src/librustc_trans/save/mod.rs index 8d3be7c8c60..083461cdc47 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) } } |
