about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2013-05-10Stop using the '<->' operatorAlex Crichton-99/+75
2013-05-10Implement util::swap without the '<->' operatorAlex Crichton-5/+63
2013-05-10auto merge of #6205 : brson/rust/flate, r=brsonbors-108/+0
r? @graydon I don't think this is necessary in core.
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-167/+1537
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10test: Use the new `for` protocolAlex Crichton-7/+56
2013-05-10Move flate from core to stdBrian Anderson-108/+0
2013-05-11Removed test_hashmap() for the time, being. All tests pass with make check.Samuel Chase-10/+11
2013-05-11Add to_str() for HashMaps, and some basic tests as well.Samuel Chase-0/+36
2013-05-10auto merge of #6366 : catamorphism/rust/issue-3920, r=catamorphismbors-2/+7
r? @nikomatsakis as per #3920
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-19/+19
2013-05-10auto merge of #6358 : crabtw/rust/mips-segstk, r=brsonbors-2/+115
I changed ```RED_ZONE_SIZE``` to ```RZ_MAC_32``` because of stack canary failure. Here is a LLVM patch for MIPS segmented stacks. http://people.cs.nctu.edu.tw/~jyyou/rust/mips-segstk.patch Current test results ``` failures: rand::tests::test_rng_seeded_custom_seed2 run::tests::test_forced_destroy_actually_kills run::tests::test_unforced_destroy_actually_kills time::tests::run_tests uv_ll::test::test_uv_ll_struct_size_addrinfo uv_ll::test::test_uv_ll_struct_size_uv_timer_t segfaults: rt::io::option::test::test_option_writer_error rt::local_services::test::unwind rt::sched::test_swap_tasks_then stackwalk::test_simple stackwalk::test_simple_deep ```
2013-05-10renamed vec::from_slice to vec::to_ownedYoungsoo Son-6/+6
2013-05-10core: Use the new `for` protocolAlex Crichton-171/+1492
2013-05-10Move core::task::local_data to core::local_dataYoungsoo Son-10/+11
2013-05-09core: Make intrinsics::forget unsafe, tooTim Chevalier-1/+3
2013-05-09core: Make intrinsics::init unsafeTim Chevalier-1/+4
as per #3920
2013-05-09auto merge of #6354 : Aatch/rust/uninit-intrinsic, r=graydonbors-5/+107
Adds an `uninit` intrinsic. It's just an empty function, so llvm optimizes it down to nothing. I changed all of the `init` intrinsic usages to `uninit` where it seemed appropriate to.
2013-05-09auto merge of #6349 : thestinger/rust/explicit_copy, r=thestingerbors-1/+0
I removed some of the copies, but most are just made explicit. The usage in `libcore` was already fixed, but the attribute was only set to warn (not removed).
2013-05-09remove vecs_implicitly_copyable from libstd/libcoreDaniel Micay-1/+0
2013-05-09Make staged versions of the functions that use uninitJames Miller-0/+104
2013-05-09auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiynbors-6/+6
Hi there, Really enjoying Rust. Noticed a few typos so I searched around for a few more--here's some fixes. Ran `make check` and got `summary of 24 test runs: 4868 passed; 0 failed; 330 ignored`. Thanks! Sean
2013-05-09Replace init() with uninit() where appropriateJames Miller-10/+5
2013-05-09Add uninit intrinsicJames Miller-0/+3
2013-05-09auto merge of #6343 : thestinger/rust/new_iter, r=brsonbors-7/+6
it's silly to duplicate the namespace in the fn name
2013-05-09improve MIPS backend and implement segmented stacksJyun-Yan You-2/+115
2013-05-09auto merge of #6337 : thestinger/rust/fix_region, r=thestingerbors-0/+6
also removes unnecessary casts from the RcMut implementation
2013-05-08Created utility uninhabited typeSteven Stewart-Gallus-1/+15
In this commit I added a useful utility type, named Void, that encapsulates the doable but annoying job of creating an uninhabited type. As well, a function on that type, named absurd, was created which is useful for ignoring the result of matching on that type. No unit tests were created because it is not possible to create an instance of this type to test the usage of. This type is useful because it is like NonCopyable in that it can be used to create a type with special characteristics without special bloat. For instance, instead of typing pub struct PhantomType { priv contents : () } for each void type one may want to use one can simply type pub struct PhantomType (Void);. This type make such special cases much easier to write.
2013-05-09libstd: rename vec::each(var) to var.eachYoungmin Yoo-1/+0
2013-05-09libcore: rename vec::each(variable) to variable.eachYoungmin Yoo-17/+17
2013-05-08auto merge of #6327 : z0w0/rust/rm-notest, r=brsonbors-129/+129
Makes it more consistent, imo.
2013-05-08libcore: Fix more merge fallout.Patrick Walton-2/+2
2013-05-08libcore: Fix tests.Patrick Walton-86/+98
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-29/+31
2013-05-08librustc: Fix merge fallout.Patrick Walton-8/+11
2013-05-08test: Fix tests and the pipe compilerPatrick Walton-49/+21
2013-05-08libcore: Remove more mutable fields from commPatrick Walton-56/+96
2013-05-08Remove mutable fields from comm by using casts. Also mark the cast in cell.Patrick Walton-36/+55
2013-05-08libcore: Remove mutable fields from reprPatrick Walton-13/+58
2013-05-08libcore: Remove mutable fields from pipesPatrick Walton-187/+224
2013-05-08libcore: Remove mutable fields from the task builder APIPatrick Walton-121/+67
2013-05-08libcore: Remove mutable fields from task::spawnPatrick Walton-46/+85
2013-05-08libcore: Remove mutable fields from hashPatrick Walton-85/+123
2013-05-08libcore: Remove mutable fields from os and ptrPatrick Walton-2/+8
2013-05-08libcore: Remove mutable fields from rand.Patrick Walton-88/+105
2013-05-08rename iter::iter_to_vec to iter::to_vecDaniel Micay-7/+6
it's silly to duplicate the namespace in the fn name
2013-05-08auto merge of #6214 : sanxiyn/rust/simd-2, r=graydonbors-0/+45
At the moment this only includes type checking and there is no code generation support yet. I wanted to get the design reviewed first. From discussion with @graydon at #5841, re-implemented as `#[simd]` attribute on structs. Progressing towards #3499.
2013-05-08fix incorrect region code based on the old 'selfDaniel Micay-0/+6
also removes unnecessary casts from the RcMut implementation
2013-05-09Fix typosSean Moon-6/+6
2013-05-08auto merge of #6323 : brson/rust/nullary, r=thestingerbors-6/+19
There's no need to delegate to C to call the Rust main function.
2013-05-08auto merge of #6317 : brson/rust/durable, r=z0w0bors-16/+24
#6312