Expose more of the save analysis module
This commit is contained in:
parent
8b98256f64
commit
ed9f8f83c9
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue