Switch to new param kind bound syntax
And remove support for the old syntax
This commit is contained in:
parent
1f71a0f48d
commit
60ae1590af
87 changed files with 251 additions and 252 deletions
|
|
@ -21,7 +21,7 @@ fn hash_def(d: ast::def_id) -> uint {
|
|||
ret h;
|
||||
}
|
||||
|
||||
fn new_def_hash<copy V>() -> std::map::hashmap<ast::def_id, V> {
|
||||
fn new_def_hash<V: copy>() -> std::map::hashmap<ast::def_id, V> {
|
||||
let hasher: std::map::hashfn<ast::def_id> = hash_def;
|
||||
let eqer: std::map::eqfn<ast::def_id> = def_eq;
|
||||
ret std::map::mk_hashmap::<ast::def_id, V>(hasher, eqer);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ fn mk_filesearch(maybe_sysroot: option::t<fs::path>,
|
|||
}
|
||||
|
||||
// FIXME #1001: This can't be an obj method
|
||||
fn search<copy T>(filesearch: filesearch, pick: pick<T>) -> option::t<T> {
|
||||
fn search<T: copy>(filesearch: filesearch, pick: pick<T>) -> option::t<T> {
|
||||
for lib_search_path in filesearch.lib_search_paths() {
|
||||
#debug("searching %s", lib_search_path);
|
||||
for path in fs::list_dir(lib_search_path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue