deprecate fn exprs and the fn() type, preferring fn@ and native fn
This commit is contained in:
parent
d2be5b6c7a
commit
455f8b0d45
50 changed files with 177 additions and 175 deletions
|
@ -32,7 +32,7 @@ fn next_line(file: filemap, chpos: uint, byte_pos: uint) {
|
|||
file.lines += [{ch: chpos, byte: byte_pos}];
|
||||
}
|
||||
|
||||
type lookup_fn = fn(file_pos) -> uint;
|
||||
type lookup_fn = fn@(file_pos) -> uint;
|
||||
|
||||
fn lookup_pos(map: codemap, pos: uint, lookup: lookup_fn) -> loc {
|
||||
let len = vec::len(map.files);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue