path -> Path
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user