about summary refs log tree commit diff
path: root/src/libstd/sys/unix/sync.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-02 14:10:36 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-11 13:51:21 +0100
commit2c9d81b2d47d1c8d0e4c771b778238948c269c20 (patch)
treee1c6b8df6d8acb7549c7306afa4503ef4cd68932 /src/libstd/sys/unix/sync.rs
parentc1cda0793e4e7b92a73cc13ee6e4a6b14a1b633f (diff)
downloadrust-2c9d81b2d47d1c8d0e4c771b778238948c269c20.tar.gz
rust-2c9d81b2d47d1c8d0e4c771b778238948c269c20.zip
Added lifetime param to Arena.
It (1.) is invariant, (2.) must strictly outlive the arena itself,
(3.) constrains the inputs to the arena so that their borrows must
also strictly outlive the arena itself.

This implies that, for now, one can no longer have cross-references
between data allocated via the same `Arena` (even when the data is not
subject to the Drop Check rule).  Instead one must carry multiple
`Arena` instances, or (more commonly), use one or more `TypedArena`
instances with enums encoding the different variants of allocated
data.
Diffstat (limited to 'src/libstd/sys/unix/sync.rs')
0 files changed, 0 insertions, 0 deletions