1
Fork 0
rust/src/libstd
Alex Crichton 4538369566 std: Expose that LocalIo may not always be available
It is not the case that all programs will always be able to acquire an instance
of the LocalIo borrow, so this commit exposes this limitation by returning
Option<LocalIo> from LocalIo::borrow().

At the same time, a helper method LocalIo::maybe_raise() has been added in order
to encapsulate the functionality of raising on io_error if there is on local I/O
available.
2013-12-24 14:42:00 -08:00
..
comm Fixing more doc tests 2013-12-23 09:10:37 -08:00
fmt Fixing more doc tests 2013-12-23 09:10:37 -08:00
io std: Expose that LocalIo may not always be available 2013-12-24 14:42:00 -08:00
num std: Fix all code examples 2013-12-23 09:10:36 -08:00
path std: Fix all code examples 2013-12-23 09:10:36 -08:00
rand std: Fix all code examples 2013-12-23 09:10:36 -08:00
rt std: Expose that LocalIo may not always be available 2013-12-24 14:42:00 -08:00
sync std: Introduce std::sync 2013-12-24 14:42:00 -08:00
task std: silence warnings when compiling test. 2013-12-20 01:26:03 +11:00
unstable std: Introduce std::sync 2013-12-24 14:42:00 -08:00
any.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
ascii.rs Rename To{Str,Bytes}Consume traits to Into*. 2013-12-15 01:04:22 +11:00
at_vec.rs librustc: Remove identifiers named box, since it's about to become a keyword. 2013-12-15 10:41:15 -08:00
bool.rs test: Remove non-procedure uses of do from compiletest, libstd tests, 2013-11-26 08:25:27 -08:00
borrow.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
c_str.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00
cast.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00
cell.rs Register new snapshots 2013-12-18 09:32:03 -08:00
char.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
cleanup.rs librustc: Remove identifiers named box, since it's about to become a keyword. 2013-12-15 10:41:15 -08:00
clone.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
cmp.rs Now inline default 'ne' methods 2013-08-30 22:02:24 -04:00
condition.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00
container.rs container: inline contains_key default method 2013-08-20 22:05:03 -04:00
default.rs std: Add a bunch of Default impls 2013-09-12 18:54:13 -07:00
either.rs Remove {As,Into,To}{Option,Either,Result} traits. 2013-12-14 23:22:01 +11:00
from_str.rs Add from_str docs 2013-09-05 00:58:12 -04:00
gc.rs libstd: Fix Win32 and other bustage. 2013-11-26 08:25:27 -08:00
hash.rs Don't allow impls to force public types 2013-12-17 09:38:57 -08:00
hashmap.rs vec: make the move iterator fast for all types 2013-12-16 05:56:42 -05:00
iter.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00
kinds.rs Register new snapshots 2013-12-18 09:32:03 -08:00
lib.rs std: Introduce std::sync 2013-12-24 14:42:00 -08:00
libc.rs std::libc: Simplify win32/win64 type definitions 2013-11-24 19:08:41 +09:00
local_data.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00
logging.rs Fixing more doc tests 2013-12-23 09:10:37 -08:00
managed.rs Fix an off-by-one in managed::refcount 2013-10-18 09:33:18 -07:00
mem.rs Cleaned, documented, wrote tests for up std::bool 2013-10-24 17:21:39 +02:00
ops.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
option.rs std: Remove some @-boxes 2013-12-21 17:50:54 -08:00
os.rs std::str: replace .as_imm_buf with .as_ptr. 2013-12-19 10:18:02 +11:00
owned.rs std: implement Total{Ord,Eq} for pointers. 2013-08-04 19:46:52 +10:00
prelude.rs std::vec: make the sorting closure use Ordering rather than just being 2013-12-22 18:16:50 +11:00
ptr.rs std: silence warnings when compiling test. 2013-12-20 01:26:03 +11:00
rc.rs librustc: Fix merge fallout. 2013-11-26 11:04:39 -08:00
reflect.rs libstd: Remove all non-proc uses of do from libstd 2013-11-26 08:23:57 -08:00
repr.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
result.rs Remove {As,Into,To}{Option,Either,Result} traits. 2013-12-14 23:22:01 +11:00
rtdeps.rs Stop using C++ exceptions for stack unwinding. 2013-12-24 12:13:42 -08:00
run.rs std: silence warnings when compiling test. 2013-12-20 01:26:03 +11:00
send_str.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
str.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00
to_bytes.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
to_str.rs Rename To{Str,Bytes}Consume traits to Into*. 2013-12-15 01:04:22 +11:00
trie.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
tuple.rs Removed a few macro-expanding-to-module workarounds 2013-11-29 17:33:36 +01:00
unicode.rs Remove dead codes 2013-12-08 02:55:28 -05:00
unit.rs Reordered the methods in std::Option and std::Result 2013-11-01 15:00:46 +01:00
util.rs Move std::util::ignore to std::prelude::drop 2013-12-03 20:40:38 -08:00
vec.rs std: Fix all code examples 2013-12-23 09:10:36 -08:00