Skip to content

Commit de3000a

Browse files
committed
auto merge of rust-lang#6948 : huonw/rust/less-alloc, r=bstrie
2 parents e2d0a30 + b871c46 commit de3000a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ast_map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl cmp::Eq for path_elt {
5454

5555
pub type path = ~[path_elt];
5656

57-
pub fn path_to_str_with_sep(p: &[path_elt], sep: ~str, itr: @ident_interner)
57+
pub fn path_to_str_with_sep(p: &[path_elt], sep: &str, itr: @ident_interner)
5858
-> ~str {
5959
let strs = do p.map |e| {
6060
match *e {
@@ -75,7 +75,7 @@ pub fn path_ident_to_str(p: &path, i: ident, itr: @ident_interner) -> ~str {
7575
}
7676

7777
pub fn path_to_str(p: &[path_elt], itr: @ident_interner) -> ~str {
78-
path_to_str_with_sep(p, ~"::", itr)
78+
path_to_str_with_sep(p, "::", itr)
7979
}
8080

8181
pub fn path_elt_to_str(pe: path_elt, itr: @ident_interner) -> ~str {

0 commit comments

Comments
 (0)