Merge find_linkage_attrs with find_linkage_metas
This gets rid of a gratuitous `match check`.
This commit is contained in:
parent
0a5f88a240
commit
1b804ce343
4 changed files with 11 additions and 24 deletions
|
@ -117,10 +117,6 @@ fn item_to_str(i: @ast::item, intr: ident_interner) -> ~str {
|
|||
to_str(i, print_item, intr)
|
||||
}
|
||||
|
||||
fn attr_to_str(i: ast::attribute, intr: ident_interner) -> ~str {
|
||||
to_str(i, print_attribute, intr)
|
||||
}
|
||||
|
||||
fn typarams_to_str(tps: ~[ast::ty_param], intr: ident_interner) -> ~str {
|
||||
to_str(tps, print_type_params, intr)
|
||||
}
|
||||
|
@ -165,8 +161,8 @@ fn block_to_str(blk: ast::blk, intr: ident_interner) -> ~str {
|
|||
io::mem_buffer_str(buffer)
|
||||
}
|
||||
|
||||
fn meta_item_to_str(mi: ast::meta_item, intr: ident_interner) -> ~str {
|
||||
to_str(@mi, print_meta_item, intr)
|
||||
fn meta_item_to_str(mi: @ast::meta_item, intr: ident_interner) -> ~str {
|
||||
to_str(mi, print_meta_item, intr)
|
||||
}
|
||||
|
||||
fn attribute_to_str(attr: ast::attribute, intr: ident_interner) -> ~str {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue