Skip to content

Commit

Permalink
Make function pointers implement traits for up to 12 parameters
Browse files Browse the repository at this point in the history
(12 was chosen to be consistent with what we do for tuples)

Fixes #28559
  • Loading branch information
Manishearth committed Sep 21, 2015
1 parent b7f49ca commit 5f66c70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libcore/ptr.rs
Expand Up @@ -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")]
Expand Down

0 comments on commit 5f66c70

Please sign in to comment.