mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
auto merge of #6948 : huonw/rust/less-alloc, r=bstrie
This commit is contained in:
commit
de3000af8f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user