diff options
| author | bors <bors@rust-lang.org> | 2014-12-06 23:12:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-06 23:12:17 +0000 |
| commit | a31ad6bfcd55fd58218ab005be5eb7229de88ef9 (patch) | |
| tree | b6cc2f0bd687e9c0454c3a658f612ae1329cd53a /src/libcore | |
| parent | de83d7dd191bf5564855057a29f9b5d9dcfcb201 (diff) | |
| parent | 9b443289cf32cbcff16768614340f0c844675340 (diff) | |
| download | rust-a31ad6bfcd55fd58218ab005be5eb7229de88ef9.tar.gz rust-a31ad6bfcd55fd58218ab005be5eb7229de88ef9.zip | |
auto merge of #19579 : alexcrichton/rust/snapshots, r=nikomatsakis
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops.rs | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index fdc8b9e7400..ce774a66381 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -832,53 +832,3 @@ impl<F,A,R> FnOnce<A,R> for F self.call_mut(args) } } - -#[cfg(stage0)] -mod fn_impls { - use super::Fn; - - impl<Result> Fn<(),Result> for extern "Rust" fn() -> Result { - #[allow(non_snake_case)] - extern "rust-call" fn call(&self, _args: ()) -> Result { - (*self)() - } - } - - impl<Result,A0> Fn<(A0,),Result> for extern "Rust" fn(A0) -> Result { - #[allow(non_snake_case)] - extern "rust-call" fn call(&self, args: (A0,)) -> Result { - let (a0,) = args; - (*self)(a0) - } - } - - macro_rules! def_fn( - ($($args:ident)*) => ( - impl<Result$(,$args)*> - Fn<($($args,)*),Result> - for extern "Rust" fn($($args: $args,)*) -> Result { - #[allow(non_snake_case)] - extern "rust-call" fn call(&self, args: ($($args,)*)) -> Result { - let ($($args,)*) = args; - (*self)($($args,)*) - } - } - ) - ) - - def_fn!(A0 A1) - def_fn!(A0 A1 A2) - def_fn!(A0 A1 A2 A3) - def_fn!(A0 A1 A2 A3 A4) - def_fn!(A0 A1 A2 A3 A4 A5) - def_fn!(A0 A1 A2 A3 A4 A5 A6) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14) - def_fn!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15) -} |
