path -> Path

This commit is contained in:
John Clements
2013-03-26 17:00:35 -07:00
parent 5d01f649b4
commit 48e7bda826
21 changed files with 92 additions and 92 deletions

View File

@@ -30,7 +30,7 @@ pub fn path_name_i(idents: &[ident], intr: @token::ident_interner) -> ~str {
}
pub fn path_to_ident(p: @path) -> ident { copy *p.idents.last() }
pub fn path_to_ident(p: @Path) -> ident { copy *p.idents.last() }
pub fn local_def(id: node_id) -> def_id {
ast::def_id { crate: local_crate, node: id }
@@ -223,8 +223,8 @@ pub fn default_block(
}
}
pub fn ident_to_path(s: span, +i: ident) -> @path {
@ast::path { span: s,
pub fn ident_to_path(s: span, +i: ident) -> @Path {
@ast::Path { span: s,
global: false,
idents: ~[i],
rp: None,