save-analysis: make generated_code pub

This commit is contained in:
Nick Cameron 2015-07-14 13:40:02 +12:00
parent dd46cf8b22
commit e6e6368454

View file

@ -753,6 +753,6 @@ fn escape(s: String) -> String {
// If the expression is a macro expansion or other generated code, run screaming
// and don't index.
fn generated_code(span: Span) -> bool {
pub fn generated_code(span: Span) -> bool {
span.expn_id != NO_EXPANSION || span == DUMMY_SP
}