summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-07-09std: Remove ThreadPerCore spawn mode. UnusedBrian Anderson-21/+1
2013-07-09Rename local_data methods/types for less keystrokesAlex Crichton-66/+76
2013-07-09Change TLS to almost be able to contain owned typesAlex Crichton-87/+145
2013-07-09Change the elements in the task-local map to be actual key-value pairsAlex Crichton-127/+111
2013-07-09Use purely an owned vector for storing TLS dataAlex Crichton-47/+36
2013-07-09std::rt: Ignore 0-byte udp readsBrian Anderson-0/+7
2013-07-09std::rt: Do local tests in a bare thread to not interfere with the schedulerBrian Anderson-21/+30
2013-07-09auto merge of #7657 : thestinger/rust/rollup, r=thestingerbors-3/+78
d3be8ab r=brson 05eb3cf r=thestinger c80f4e1 r=huonw 8c27af1 r=huonw 0eee0b6 r=cmr ea2756a r=thestinger
2013-07-09Fix typo in docs for MutableCloneableVectorKevin Ballard-1/+1
2013-07-09Impl Not for boolBrendan Zabarauskas-0/+25
2013-07-09std: Implement `Iterator::size_hint` method for `Option` iteratorsAndrew Paseltiner-0/+50
2013-07-09remove the unused exchange_malloc `align` parameterDaniel Micay-2/+2
`malloc` already returns memory correctly aligned for every possible type in standard C, and that's enough for all types in Rust too
2013-07-09auto merge of #7117 : jensnockert/rust/freestanding, r=cmrbors-283/+105
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. This means that instead of having to know everywhere what the type is, like ~~~ f64::sin(x) ~~~ You can simply write code that uses the type-generic versions in num instead, this works for all types that implement the corresponding trait in num. ~~~ num::sin(x) ~~~ Note 1: If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note 2: If you were using a function that corresponds to an operator, use the operator instead. Note 3: This is just https://github.com/mozilla/rust/pull/7090 reopened against master.
2013-07-09std: Make os::set_exit_status work with newschedBrian Anderson-3/+40
2013-07-09std::rt: size_t, not u64Brian Anderson-2/+2
2013-07-09auto merge of #7528 : indutny/rust/feature/memory-api, r=cmrbors-9/+829
@cmr this is still WIP and I haven't tested it on windows, but anyway.
2013-07-09os: introduce cross-platform MemoryMap bindingsFedor Indutny-4/+358
Basically, one may just do: MemoryMap::new(16, ~[ MapExecutable, MapReadable, MapWritable ]) And executable+readable+writable chunk of at least 16 bytes size will be allocated and freed with the result of `MemoryMap::new`.
2013-07-08auto merge of #7578 : alexcrichton/rust/overflow, r=thestingerbors-1/+14
This should never cause a segfault, but rather fail somehow. Possibly a condition could be used here, but for now there's not much else to do.
2013-07-08auto merge of #7262 : nikomatsakis/rust/ref-bindings-in-irrefut-patterns, ↵bors-49/+159
r=catamorphism Correct treatment of irrefutable patterns. The old code was wrong in many, many ways. `ref` bindings didn't work, it sometimes copied when it should have moved, the borrow checker didn't even look at such patterns at all, we weren't consistent about preventing values with destructors from being pulled apart, etc. Fixes #3224. Fixes #3225. Fixes #3255. Fixes #6225. Fixes #6386. r? @catamorphism
2013-07-08std: Add a yield implementation for newschedBrian Anderson-4/+19
2013-07-08TidyBrian Anderson-14/+16
2013-07-08Merge remote-tracking branch 'mozilla/master'Brian Anderson-1341/+1018
Conflicts: src/libextra/test.rs src/libstd/rt/global_heap.rs src/libstd/unstable/lang.rs src/libstd/vec.rs
2013-07-08auto merge of #7612 : thestinger/rust/utf8, r=huonwbors-22/+2
2013-07-08Merge remote-tracking branch 'anasazi/io'Brian Anderson-686/+1512
Conflicts: src/libstd/rt/test.rs
2013-07-08std::rt: Add a hack to allocate different test port ranges to different botsBrian Anderson-2/+44
2013-07-08auto merge of #7608 : glinscott/rust/json_perf, r=pcwaltonbors-1/+2
Avoids the overhead of read_char for every character. Benchmark reading example.json 10 times from https://code.google.com/p/rapidjson/wiki/Performance Before: 2.55s After: 0.16s Regression testing is already done by isrustfastyet.
2013-07-08changed .each() to .iter().advance()Eric Reed-10/+10
2013-07-08renamed finalize to drop in Drop impl for UvUdpSocketEric Reed-1/+1
2013-07-08Merge remote-tracking branch 'upstream/io' into ioEric Reed-3296/+3651
Conflicts: src/libstd/rt/uvio.rs
2013-07-08auto merge of #7577 : brson/rust/vers, r=cmrbors-1/+1
2013-07-08Correct merge errorsNiko Matsakis-1/+1
2013-07-08Correct illegal pattern in windows-only codeNiko Matsakis-2/+2
2013-07-08Correct merge failuresNiko Matsakis-3/+3
2013-07-08Address nits by @catamorphismNiko Matsakis-1/+1
2013-07-08Patch up some code that was using irrefutable patterns incorrectly.Niko Matsakis-9/+15
2013-07-08update ptr intrinsics and rewrite vec routines to be more correct.Niko Matsakis-40/+144
In particular, it is not valid to go around passing uninitialized or zero'd memory as arguments. Rust should generally be free to assume that the arguments it gets are valid input values, but the output of intrinsics::uninit() and intrinsics::init() are not (e.g., an @T is just null, leading to an error if we should try to increment the ref count).
2013-07-08Bump version numbers to 0.8-preBrian Anderson-1/+1
2013-07-08auto merge of #7604 : apasel422/rust/peek, r=huonwbors-0/+65
This can be useful for inserting debugging code at different steps in an iterator pipeline.
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-283/+105
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-07-08auto merge of #7605 : thestinger/rust/vec, r=Aatchbors-21/+33
This is work continued from the now landed #7495 and #7521 pulls. Removing the headers from unique vectors is another project, so I've separated the allocator.
2013-07-08remove headers from exchange allocationsDaniel Micay-3/+20
2013-07-08Merge pull request #7595 from thestinger/iteratorDaniel Micay-19/+19
remove some method resolve workarounds
2013-07-08add a temporary vector_exchange_malloc lang itemDaniel Micay-0/+8
2013-07-08vec: make vec_reserve_shared_actual privateDaniel Micay-20/+7
2013-07-08libc: add errno valuesFedor Indutny-0/+281
2013-07-08libc: VirtualAlloc and FileMapping bindingsFedor Indutny-4/+132
2013-07-08libc: add _SC_* consts for non-mips linux tooFedor Indutny-0/+57
They was previously missing
2013-07-08libc: fix MAP_ANON value on linuxFedor Indutny-4/+4
2013-07-07auto merge of #7497 : alexcrichton/rust/issue-7394, r=huonwbors-2/+8
2013-07-07remove some method resolve workaroundsDaniel Micay-19/+19