diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-20 18:15:39 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-20 18:15:39 -0700 |
| commit | f5be40384fc3a0815600ee44670b313f9cf6a4eb (patch) | |
| tree | 7f7b62a50a8375b8c96d70f9272e21189afc1f8a /src/libsyntax/print | |
| parent | 90e3665fa79d32c3188169cfa992516fb36b81a8 (diff) | |
Revert "syntax: Make attributes sendable for rustdoc's benefit"
This reverts commit 90e3665fa79d32c3188169cfa992516fb36b81a8.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index a218e866710..f41cdae7e03 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -159,7 +159,7 @@ fn block_to_str(blk: ast::blk, intr: ident_interner) -> ~str { } } -fn meta_item_to_str(mi: ast::meta_item, intr: ident_interner) -> ~str { +fn meta_item_to_str(mi: @ast::meta_item, intr: ident_interner) -> ~str { to_str(mi, print_meta_item, intr) } @@ -800,11 +800,11 @@ fn print_attribute(s: ps, attr: ast::attribute) { maybe_print_comment(s, attr.span.lo); if attr.node.is_sugared_doc { let meta = attr::attr_meta(attr); - let comment = attr::get_meta_item_value_str(&meta).get(); + let comment = attr::get_meta_item_value_str(meta).get(); word(s.s, comment); } else { word(s.s, ~"#["); - print_meta_item(s, attr.node.value); + print_meta_item(s, @attr.node.value); word(s.s, ~"]"); } } @@ -1701,7 +1701,7 @@ fn print_type_params(s: ps, &¶ms: ~[ast::ty_param]) { } } -fn print_meta_item(s: ps, &&item: ast::meta_item) { +fn print_meta_item(s: ps, &&item: @ast::meta_item) { ibox(s, indent_unit); match item.node { ast::meta_word(name) => word(s.s, name), |
