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/abi.rs | |
| parent | 18a30aff4564437ccd2698be367ca98c81122ac0 (diff) | |
| download | rust-492677ec1e4e66a57a2fce78962db2f89932dd74.tar.gz rust-492677ec1e4e66a57a2fce78962db2f89932dd74.zip | |
libsyntax: Change all uses of `&fn` to `||`.
Diffstat (limited to 'src/libsyntax/abi.rs')
| -rw-r--r-- | src/libsyntax/abi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/abi.rs b/src/libsyntax/abi.rs index 972d2f43e73..c2283bf1227 100644 --- a/src/libsyntax/abi.rs +++ b/src/libsyntax/abi.rs @@ -84,7 +84,7 @@ static AbiDatas: &'static [AbiData] = &[ AbiData {abi: RustIntrinsic, name: "rust-intrinsic", abi_arch: RustArch}, ]; -fn each_abi(op: &fn(abi: Abi) -> bool) -> bool { +fn each_abi(op: |abi: Abi| -> bool) -> bool { /*! * * Iterates through each of the defined ABIs. @@ -201,7 +201,7 @@ impl AbiSet { self.bits |= (1 << abi.index()); } - pub fn each(&self, op: &fn(abi: Abi) -> bool) -> bool { + pub fn each(&self, op: |abi: Abi| -> bool) -> bool { each_abi(|abi| !self.contains(abi) || op(abi)) } |
