diff options
| author | bors <bors@rust-lang.org> | 2013-11-19 13:31:19 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-19 13:31:19 -0800 |
| commit | c159acb05d95d832de3cebb5e1e91ee34e550c9d (patch) | |
| tree | 5663e1c00b8b8a4aad67b706807900f43a2ea600 /src/libsyntax/util/parser_testing.rs | |
| parent | eef913b290f668b4f131ead5be65a1615616426b (diff) | |
| parent | 7e3f20133a0f38e4f18dce9992d1b4c13215f91f (diff) | |
| download | rust-c159acb05d95d832de3cebb5e1e91ee34e550c9d.tar.gz rust-c159acb05d95d832de3cebb5e1e91ee34e550c9d.zip | |
auto merge of #10568 : pcwalton/rust/more-bars, r=alexcrichton
r? @alexcrichton
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -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(); |
