summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Fix merge fallout.Patrick Walton-2207/+0
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-52811/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-22fix arm stack alignmentJyun-Yan You-1/+3
2013-05-21auto merge of #6650 : crabtw/rust/mips-rt, r=sanxiynbors-1/+3
Results of libcore and libstd tests ``` failures: rand::tests::test_rng_seeded_custom_seed2 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: stackwalk::test_simple stackwalk::test_simple_deep ```
2013-05-21auto merge of #6648 : alexcrichton/rust/issue-6633, r=graydonbors-1/+1
Resolves #6633 and removes an unnecessary import in libcore
2013-05-20auto merge of #6647 : alexcrichton/rust/unnecessary-alloc, r=graydonbors-4/+4
This adds a lint mode for detecting unnecessary allocations on the heap. This isn't super fancy, currently it only has two rules 1. For a function's arguments, if you allocate a `[~|@]str` literal, when the type of the argument is a `&str`, emit a warning. 2. For the same case, emit warnings for boxed vectors when slices are required. After adding the lint, I rampaged through the libraries and removed all the unnecessary allocations I could find.
2013-05-20auto merge of #6646 : dotdash/rust/method_lookup, r=brsonbors-3/+3
2013-05-20auto merge of #6626 : brson/rust/io-upstream, r=graydonbors-318/+463
r? Mostly refactoring, and adding some of the remaining types described in #4419. The [`Local`](https://github.com/brson/rust/blob/3b4ff41511cfaa5e311b03d16b47bf40c117fa2f/src/libcore/rt/local.rs#L17) trait collects some common, often unsafe patterns around task-local and thread-local values. Making all these types safe is largely the aim of #6210.
2013-05-21fix mips stack alignmentJyun-Yan You-1/+3
2013-05-20auto merge of #6604 : bjz/rust/ptr-to-option, r=brsonbors-0/+51
2013-05-20auto merge of #6528 : brson/rust/docs, r=brsonbors-4/+6
Remove the uncommon term 'object tree' in favor of 'value'.
2013-05-20core::rt: Convert unsafe_borrow_io to a Local implBrian Anderson-18/+29
2013-05-20core::rt: Implement Local for TaskBrian Anderson-49/+60
2013-05-20core::rt: Remove local_sched moduleBrian Anderson-53/+20
2013-05-20core::rt: Convert users of local_sched to Local traitBrian Anderson-145/+143
2013-05-20core::rt: Make local_sched a wrapper around LocalBrian Anderson-8/+20
2013-05-20core::rt: Move more TLS functionality into local_ptrBrian Anderson-58/+94
2013-05-20core::rt: Move some TLS functions from local_sched to local_ptrBrian Anderson-59/+82
2013-05-20rt: Rename rust_initialize_global_state to rust_initialize_rt_tls_keyBrian Anderson-5/+12
2013-05-20core::rt: Store Task as a ~ pointerBrian Anderson-11/+11
2013-05-20core::rt: Add Local traitBrian Anderson-0/+21
2013-05-20core:rt:: Rename LocalServices to TaskBrian Anderson-78/+67
2013-05-20core::rt: Queues MessageQueue and WorkQueue are cloneableBrian Anderson-1/+19
2013-05-20core::rt: Add MessageQueue typeBrian Anderson-1/+48
This is the queue used to send messages to Schedulers
2013-05-20core::rt: Put a lock on the work queueBrian Anderson-13/+22
2013-05-20core::rt: Rename WorkQueue methods, remove extra push methodBrian Anderson-12/+8
2013-05-20core: Update clone docsBrian Anderson-4/+6
2013-05-20Replace all uses of rust-intrinsic ABI with calls to unstable::intrinsicsBrian Anderson-42/+19
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-4/+4
2013-05-20Correctly track the source of imports with the same nameAlex Crichton-1/+1
2013-05-20Avoid range checks in HashMap::each()Björn Steinbrink-3/+3
2013-05-20Update to stop unsolicited copying and mark methods as unsafeBrendan Zabarauskas-11/+29
2013-05-20Remove outdated function transmute_for_stage0Björn Steinbrink-19/+15
The function was a workaround for bootstrapping that isn't required anymore and just degrades hashmap performance, as it doesn't get inlined cross-crate and turns a no-op into a call.
2013-05-20auto merge of #6635 : brson/rust/snapshot, r=brsonbors-1818/+16
2013-05-20auto merge of #6632 : steveklabnik/rust/remove_more_warnings, r=thestingerbors-2/+2
With this, the build is almost 100% warning free. One more can be fixed after the next snapshot, and there's one other that I filed an issue about already.
2013-05-20auto merge of #6629 : steveklabnik/rust/remove_uvio_warnings, r=catamorphismbors-8/+1
Mostly of the 'unused imports' kind. I'm unsure about the 'no unsafe' bit, but that's what it says...
2013-05-19Register snapshotsBrian Anderson-1818/+16
2013-05-19auto merge of #6621 : steveklabnik/rust/expand_reader_docs, r=thestingerbors-3/+13
Had a conversation with @cmr in IRC about some places that these docs were confusing. The functions that advance the stream now say so. In addition, I think that calling out the similarities to familliar C functions should help people coming from other languages.
2013-05-19auto merge of #6627 : steveklabnik/rust/remove_warnings, ↵bors-5/+0
r=thestinger,catamorphism These imports were not being used.
2013-05-19Add a few 'function's.Steve Klabnik-2/+2
This is now 100% consistent. Whoops!
2013-05-19Fix many warnings.Steve Klabnik-2/+2
2013-05-19auto merge of #6624 : steveklabnik/rust/io_prelude, r=catamorphismbors-1/+31
Let's actually give a top-level description of what's in here, eh?
2013-05-19Remove more warnings.Steve Klabnik-8/+1
Mostly of the 'unused imports' kind.
2013-05-19Removing some warnings from logging.rsSteve Klabnik-5/+0
These imports were not being used.
2013-05-19Fix wording per feedbackSteve Klabnik-2/+2
Thanks @catamorphism!
2013-05-19Add a better introduction for the io module.Steve Klabnik-1/+31
Let's actually give a top-level description of what's in here, eh?
2013-05-19auto merge of #6619 : steveklabnik/rust/stdout_docs, r=thestingerbors-0/+44
Added docs for stdout, stderr, print, and println.
2013-05-19Fix trailing whitespaceSteve Klabnik-2/+2
2013-05-19Elaborate a bit in the Reader docs regarding stream position.Steve Klabnik-3/+13
Had a conversation with @cmr in IRC about some places that these docs were confusing. The functions that advance the stream now say so. In addition, I think that calling out the similarities to familliar C functions should help people coming from other languages.
2013-05-19Added note about prelude inclusion.Steve Klabnik-2/+4