From 5f66c701b108bfaa65cfff175074afa008e98294 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 21 Sep 2015 14:21:30 +0530 Subject: [PATCH] Make function pointers implement traits for up to 12 parameters (12 was chosen to be consistent with what we do for tuples) Fixes #28559 --- src/libcore/ptr.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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")]