parent
58c82a8da2
commit
cfdf193c46
94 changed files with 289 additions and 288 deletions
|
@ -2,7 +2,7 @@ import std::{str, option};
|
|||
import codemap::span;
|
||||
import ast::*;
|
||||
|
||||
fn respan<@T>(sp: span, t: T) -> spanned<T> { ret {node: t, span: sp}; }
|
||||
fn respan<T>(sp: span, t: T) -> spanned<T> { ret {node: t, span: sp}; }
|
||||
|
||||
/* assuming that we're not in macro expansion */
|
||||
fn mk_sp(lo: uint, hi: uint) -> span {
|
||||
|
@ -186,7 +186,7 @@ fn eq_def_id(&&a: def_id, &&b: def_id) -> bool {
|
|||
a == b
|
||||
}
|
||||
|
||||
fn new_def_id_hash<@T>() -> std::map::hashmap<def_id, T> {
|
||||
fn new_def_id_hash<T>() -> std::map::hashmap<def_id, T> {
|
||||
std::map::mk_hashmap(hash_def_id, eq_def_id)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue