about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2019-09-27 17:15:17 -0400
committerJon Gjengset <jon@thesquareplanet.com>2019-09-27 17:36:45 -0400
commit06e4ff4d61f44d7e239e02256829ecf1e5598657 (patch)
treed6e8a9c4fb57b4b43bbe3b85808d6b2b54b030e1 /src/libstd/sys/unix/stack_overflow.rs
parenta37fe2de697bb1a9d304e4e811836e125f944cd5 (diff)
downloadrust-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