librustc: Remove @str from the language

This commit is contained in:
Patrick Walton 2014-01-31 18:25:08 -08:00 committed by Huon Wilson
parent 449a7a817f
commit c594e675eb
13 changed files with 36 additions and 19 deletions

View file

@ -874,11 +874,14 @@ impl Clean<PathSegment> for ast::PathSegment {
}
fn path_to_str(p: &ast::Path) -> ~str {
use syntax::parse::token::interner_get;
use syntax::parse::token;
let mut s = ~"";
let mut first = true;
for i in p.segments.iter().map(|x| interner_get(x.identifier.name)) {
for i in p.segments.iter().map(|x| {
let string = token::get_ident(x.identifier.name);
string.get().to_str()
}) {
if !first || p.global {
s.push_str("::");
} else {