https://pantsbuild.org/ logo
#development
Title
# development
a

average-vr-56795

09/29/2017, 10:36 AM
Also, why do we box all of our futures?
w

witty-crayon-22786

09/29/2017, 4:48 PM
Because
impl Trait
isn't stable yet (https://github.com/rust-lang/rust/issues/34511), meaning that a function must return something of a known size... we box to put them on the heap when the type isn't known in advance.
a

average-vr-56795

09/29/2017, 4:50 PM
ok, cool 🙂 BoxedFuture has been deprecated upstream, with the suggested replacement that you manually Box::new all the things. I guess I can put together that replacement, but I'll land it after re-formatting, because I imagine a formatter would make that a nicer thing to land
w

witty-crayon-22786

09/29/2017, 4:52 PM
The BoxFuture deprecation is a funny one, because it's not actually deprecated last I checked, and
impl Trait
is on the way to remove the constraint? I think we have a ticket about it, but.