diff options
| author | Jon Gjengset <jon@thesquareplanet.com> | 2019-09-27 17:15:17 -0400 |
|---|---|---|
| committer | Jon Gjengset <jon@thesquareplanet.com> | 2019-09-27 17:36:45 -0400 |
| commit | 06e4ff4d61f44d7e239e02256829ecf1e5598657 (patch) | |
| tree | d6e8a9c4fb57b4b43bbe3b85808d6b2b54b030e1 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | a37fe2de697bb1a9d304e4e811836e125f944cd5 (diff) | |
| download | rust-06e4ff4d61f44d7e239e02256829ecf1e5598657.tar.gz rust-06e4ff4d61f44d7e239e02256829ecf1e5598657.zip | |
Scope format! temporaries
This places the temporaries that `format!` generates to refer to its arguments (through `&dyn Trait`) in a short-lived scope surrounding just the invocation of `format!`. This enables `format!` to be used in generators without the temporaries preventing the generator from being `Send` (due to `dyn Trait` not being `Sync`). See rust-lang/rust#64477 for details.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
