about summary refs log tree commit diff
path: root/src/libstd/local_data.rs
AgeCommit message (Collapse)AuthorLines
2013-08-16syntax: add a local_data_key macro that creates a key for access to the TLS.Huon Wilson-2/+2
This allows the internal implementation details of the TLS keys to be changed without requiring the update of all the users. (Or, applying changes that have to be applied for the keys to work correctly, e.g. forcing LLVM to not merge these constants.)
2013-08-07std: add result.map_move, result.map_err_moveErick Tryzelaar-6/+6
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-7/+7
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-07-22new snapshotDaniel Micay-43/+4
2013-07-17librustc: Remove all uses of the `Copy` bound.Patrick Walton-1/+1
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-3/+5
2013-07-16Add a `get_mut` method for TLSAlex Crichton-1/+76
Simulates borrow checks for '@mut' boxes, or at least it's the same idea.
2013-07-14Make TLS keys actually take up spaceAlex Crichton-40/+40
If the TLS key is 0-sized, then the linux linker is apparently smart enough to put everything at the same pointer. OSX on the other hand, will reserve some space for all of them. To get around this, the TLS key now actuall consumes space to ensure that it gets a unique pointer
2013-07-14Purge the last remnants of the old TLS apiAlex Crichton-119/+121
Closes #3273
2013-07-11Fix testsAlex Crichton-1/+1
2013-07-11Remove all external requirements of `@` from TLSAlex Crichton-11/+11
Closes #6004
2013-07-11Fix a soundness problem with `get`Alex Crichton-0/+8
2013-07-11Work around stage0 to remove '@' requirements from TLSAlex Crichton-0/+40
2013-07-09Rename local_data methods/types for less keystrokesAlex Crichton-48/+59
2013-07-09Change TLS to almost be able to contain owned typesAlex Crichton-12/+6
2013-07-09Change the elements in the task-local map to be actual key-value pairsAlex Crichton-2/+6
2013-06-29Change taskgroup key type to fn:Copy in prep for noncopyable stack closures.Ben Blum-1/+1
2013-06-28std: silence some test warnings.Huon Wilson-13/+10
2013-05-30Remove unnecessary 'use' formsDaniel Farina-2/+3
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+226
This only changes the directory names; it does not change the "real" metadata names.