Auto merge of #27493 - GSam:master, r=nrc

In order to test the validity of identifiers, exposing the name resolution module is necessary. Other changes mostly comprise of exposing modules publicly like parts of save-analysis, so they can be called appropriately.
This commit is contained in:
bors 2015-08-19 03:50:05 +00:00
commit e47eb7c2c8
2 changed files with 91 additions and 31 deletions

View file

@ -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;
@ -645,7 +645,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)
}
}