From b02f5c2090340a9007989b3eb384facb0f0286f2 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Thu, 21 Feb 2013 00:16:31 -0800 Subject: Get rid of structural records in libsyntax and the last bit in librustc. --- src/libsyntax/print/pprust.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/print/pprust.rs') diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index ab7e3204b7b..d5a09e087a0 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -108,17 +108,18 @@ pub fn print_crate(cm: @CodeMap, intr: @ident_interner, span_diagnostic: diagnostic::span_handler, crate: @ast::crate, filename: ~str, in: io::Reader, out: io::Writer, ann: pp_ann, is_expanded: bool) { - let r = comments::gather_comments_and_literals(span_diagnostic, - filename, in); + let (cmnts, lits) = + comments::gather_comments_and_literals(span_diagnostic, + filename, in); let s = @ps { s: pp::mk_printer(out, default_columns), cm: Some(cm), intr: intr, - comments: Some(r.cmnts), + comments: Some(cmnts), // If the code is post expansion, don't use the table of // literals, since it doesn't correspond with the literals // in the AST anymore. - literals: if is_expanded { None } else { Some(r.lits) }, + literals: if is_expanded { None } else { Some(lits) }, cur_cmnt_and_lit: @mut CurrentCommentAndLiteral { cur_cmnt: 0, cur_lit: 0 -- cgit 1.4.1-3-g733a5