diff options
| author | bors <bors@rust-lang.org> | 2013-06-05 06:46:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-05 06:46:51 -0700 |
| commit | de3000af8fa2aa9965453a2b8909c3f52244fb2e (patch) | |
| tree | d133edbed000f72e6f3d4da46451dd584c6f46ac /src/libsyntax | |
| parent | e2d0a30fa2236d6e1277a22cfe4454228183bde8 (diff) | |
| parent | b871c46934046ef6d58c3c0d54910c00ac6f9d53 (diff) | |
| download | rust-de3000af8fa2aa9965453a2b8909c3f52244fb2e.tar.gz rust-de3000af8fa2aa9965453a2b8909c3f52244fb2e.zip | |
auto merge of #6948 : huonw/rust/less-alloc, r=bstrie
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 58769ede961..53150bb1010 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -54,7 +54,7 @@ impl cmp::Eq for path_elt { pub type path = ~[path_elt]; -pub fn path_to_str_with_sep(p: &[path_elt], sep: ~str, itr: @ident_interner) +pub fn path_to_str_with_sep(p: &[path_elt], sep: &str, itr: @ident_interner) -> ~str { let strs = do p.map |e| { match *e { @@ -75,7 +75,7 @@ pub fn path_ident_to_str(p: &path, i: ident, itr: @ident_interner) -> ~str { } pub fn path_to_str(p: &[path_elt], itr: @ident_interner) -> ~str { - path_to_str_with_sep(p, ~"::", itr) + path_to_str_with_sep(p, "::", itr) } pub fn path_elt_to_str(pe: path_elt, itr: @ident_interner) -> ~str { |
