1
Fork 0

libsyntax: Remove the old-style borrowed closure type syntax from the

language.
This commit is contained in:
Patrick Walton 2013-11-19 18:15:10 -08:00
parent 9e610573ba
commit 6801bc8f55
15 changed files with 32 additions and 23 deletions

View file

@ -301,8 +301,8 @@ pub fn is_test(config: &config, testfile: &Path) -> bool {
return valid;
}
pub fn make_test(config: &config, testfile: &Path,
f: &fn()->test::TestFn) -> test::TestDescAndFn {
pub fn make_test(config: &config, testfile: &Path, f: || -> test::TestFn)
-> test::TestDescAndFn {
test::TestDescAndFn {
desc: test::TestDesc {
name: make_test_name(config, testfile),