libsyntax: Change all uses of &fn to ||.

This commit is contained in:
Patrick Walton
2013-11-19 12:21:21 -08:00
parent 18a30aff45
commit 492677ec1e
16 changed files with 139 additions and 111 deletions

View File

@@ -39,7 +39,7 @@ pub fn string_to_parser(source_str: @str) -> Parser {
p
}
fn with_error_checking_parse<T>(s: @str, f: &fn(&mut Parser) -> T) -> T {
fn with_error_checking_parse<T>(s: @str, f: |&mut Parser| -> T) -> T {
let mut p = string_to_parser(s);
let x = f(&mut p);
p.abort_if_errors();