diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-21 14:21:30 +0530 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-10-16 15:47:00 -0700 |
| commit | b672349a23e6e0587589cbfd9f2b7ff176218ec2 (patch) | |
| tree | 40658296b0766ca103f91d9e0870673c9351abac | |
| parent | 98aabbc899972cb239db5058da66b405c10c05f2 (diff) | |
| download | rust-b672349a23e6e0587589cbfd9f2b7ff176218ec2.tar.gz rust-b672349a23e6e0587589cbfd9f2b7ff176218ec2.zip | |
Make function pointers implement traits for up to 12 parameters
(12 was chosen to be consistent with what we do for tuples) Fixes #28559
| -rw-r--r-- | src/libcore/ptr.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 406a5dffdb0..831616293cd 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -385,6 +385,13 @@ fnptr_impls_args! { A, B } fnptr_impls_args! { A, B, C } fnptr_impls_args! { A, B, C, D } fnptr_impls_args! { A, B, C, D, E } +fnptr_impls_args! { A, B, C, D, E, F } +fnptr_impls_args! { A, B, C, D, E, F, G } +fnptr_impls_args! { A, B, C, D, E, F, G, H } +fnptr_impls_args! { A, B, C, D, E, F, G, H, I } +fnptr_impls_args! { A, B, C, D, E, F, G, H, I, J } +fnptr_impls_args! { A, B, C, D, E, F, G, H, I, J, K } +fnptr_impls_args! { A, B, C, D, E, F, G, H, I, J, K, L } // Comparison for pointers #[stable(feature = "rust1", since = "1.0.0")] |
