diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-11-19 12:21:21 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-11-19 12:40:19 -0800 |
| commit | 492677ec1e4e66a57a2fce78962db2f89932dd74 (patch) | |
| tree | 7215ca2d3af530efb17aee207f95365ca374ac00 /src/libsyntax/util | |
| parent | 18a30aff4564437ccd2698be367ca98c81122ac0 (diff) | |
| download | rust-492677ec1e4e66a57a2fce78962db2f89932dd74.tar.gz rust-492677ec1e4e66a57a2fce78962db2f89932dd74.zip | |
libsyntax: Change all uses of `&fn` to `||`.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 59a6f0adeb4..3a2a8b10c96 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -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(); |
