Uh oh!
There was an error while loading. Please reload this page.
Make function pointers implement traits for up to 12 parameters - #28560
Conversation
(12 was chosen to be consistent with what we do for tuples) Fixesrust-lang#28559
rust-highfive
commented
Sep 21, 2015
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
nrc
commented
Sep 21, 2015
@bors: r+ |
bors
commented
Sep 21, 2015
📌 Commit 5f66c70 has been approved by |
(12 was chosen to be consistent with what we do for tuples) Fixes#28559
bors
commented
Sep 21, 2015
bors
commented
Sep 21, 2015
petrochenkov
commented
Sep 21, 2015
@Manishearth |
Manishearth
commented
Sep 21, 2015
Functions with a large number of arguments being used in other structs are basically inevitable in bindings. |
alexcrichton
commented
Sep 21, 2015
It's always good to do a bit of investigation into what caused regressions if they do happen, and as @petrochenkov mentioned we did indeed cut these back to reduce the massive metadata size of libcore. The number chosen for tuples was completely arbitrary, so there's not real reason to match it for functions, and I would prefer to have only the bare minimum necessary to get things working until we find a better solution. This is ok because it already landed, but always nice to not be too hasty! |
Manishearth
commented
Sep 21, 2015
Will do, sorry about the trouble. |
gkoz
commented
Sep 21, 2015
Is there an issue documenting the bloat problem? |
alexcrichton
commented
Oct 7, 2015
triage: beta-nominated Nominating for a backport as this fixes a reported regression with chipmunk-sys and is pretty harmless. |
alexcrichton
commented
Oct 8, 2015
The libs team decided to accept this for a backport to beta |
(12 was chosen to be consistent with what we do for tuples)
Fixes#28559