diff options
| author | bors <bors@rust-lang.org> | 2018-07-02 20:12:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-02 20:12:00 +0000 |
| commit | c8df60a1462b4b83573573c6e08259a731b60a20 (patch) | |
| tree | 9cbebb0f4f49577abb3f97ef8f622e0ef6b433e7 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 9363342be956d1bf7781a3b7455d80fc5d94b1f8 (diff) | |
| parent | e666c2bd0742cbf88ff9fa26cfc194099a139589 (diff) | |
| download | rust-c8df60a1462b4b83573573c6e08259a731b60a20.tar.gz rust-c8df60a1462b4b83573573c6e08259a731b60a20.zip | |
Auto merge of #51944 - MajorBreakfast:generic-future-obj, r=cramertj
Make custom trait object for `Future` generic - `TaskObj` -> `FutureObj<'static, ()>` - The `impl From<...> for FutureObj<'a, T>` impls are impossible because of the type parameter `T`. The impl has to live in libstd, but `FutureObj<'a, T>` is from libcore. Therefore `Into<FutureObj<'a, T>>` was implemented instead. Edit: This didn‘t compile without warnings. I am now using non-generic Form impls. See https://github.com/rust-lang-nursery/futures-rs/issues/1058 r? @cramertj Edit: Added lifetime
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
