Rollup merge of #27029 - nrc:save-pub-gen-code, r=alexcrichton

This commit is contained in:
Manish Goregaokar 2015-07-16 10:49:37 +05:30
commit 43bb514984

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
}