Skip to content

Commit ed9f8f8

Browse files
committed
Expose more of the save analysis module
1 parent 8b98256 commit ed9f8f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_trans/save/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ use syntax::print::pprust::ty_to_string;
2828
use self::span_utils::SpanUtils;
2929

3030

31-
mod span_utils;
32-
mod recorder;
31+
pub mod span_utils;
32+
pub mod recorder;
3333

3434
mod dump_csv;
3535

@@ -661,7 +661,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
661661
}
662662

663663
#[inline]
664-
fn enclosing_scope(&self, id: NodeId) -> NodeId {
664+
pub fn enclosing_scope(&self, id: NodeId) -> NodeId {
665665
self.tcx.map.get_enclosing_scope(id).unwrap_or(0)
666666
}
667667
}

0 commit comments

Comments
 (0)