diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-04-01 11:12:30 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-04-01 14:41:21 -0400 |
| commit | cade32acf6f5ff209ee082d70350d9bc0362985a (patch) | |
| tree | 79c4fd475c0b8e9f75972eb505800399025fba06 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | ed63d32651105e56afceb94cbb86f115db235825 (diff) | |
| download | rust-cade32acf6f5ff209ee082d70350d9bc0362985a.tar.gz rust-cade32acf6f5ff209ee082d70350d9bc0362985a.zip | |
Remove `Thunk` struct and `Invoke` trait; change `Thunk` to be an alias
for `Box<FnBox()>`. I found the alias was still handy because it is shorter than the fully written type. This is a [breaking-change]: convert code using `Invoke` to use `FnBox`, which is usually pretty straight-forward. Code using thunk mostly works if you change `Thunk::new => Box::new` and `foo.invoke(arg)` to `foo(arg)`.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
