about summary refs log tree commit diff
path: root/src/libcore/unstable
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-2433/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20auto merge of #6647 : alexcrichton/rust/unnecessary-alloc, r=graydonbors-2/+2
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 #6626 : brson/rust/io-upstream, r=graydonbors-5/+6
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-20core::rt: Implement Local for TaskBrian Anderson-3/+4
2013-05-20core:rt:: Rename LocalServices to TaskBrian Anderson-5/+5
2013-05-20Replace all uses of rust-intrinsic ABI with calls to unstable::intrinsicsBrian Anderson-2/+3
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-2/+2
2013-05-20auto merge of #6635 : brson/rust/snapshot, r=brsonbors-67/+0
2013-05-19Register snapshotsBrian Anderson-67/+0
2013-05-19Remove more warnings.Steve Klabnik-1/+0
Mostly of the 'unused imports' kind.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-16/+16
2013-05-17Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-93/+22
2013-05-16core: Document some intrinsicsBrian Anderson-8/+68
2013-05-15core::rt: Initialize loggingBrian Anderson-1/+1
2013-05-15core: Replace use of libc::getenv with os::getenvBrian Anderson-4/+2
2013-05-15core::rt: Add a test of standalone use of the runtimeBrian Anderson-2/+17
2013-05-14Merge remote-tracking branch 'brson/io-upstream' into incomingBrian Anderson-87/+3
Conflicts: src/libcore/logging.rs src/libcore/rt/local_services.rs src/libcore/rt/uv/mod.rs src/libcore/rt/uv/net.rs src/libcore/rt/uv/uvio.rs src/libcore/unstable.rs
2013-05-14core: Move unstable::exchange_alloc to rt::global_heapBrian Anderson-86/+3
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-3/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-11/+3
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-13auto merge of #6387 : brson/rust/unstable, r=brsonbors-14/+373
r? @pcwalton * Move `SharedMutableState`, `LittleLock`, and `Exclusive` from `core::unstable` to `core::unstable::sync` * Modernize the `SharedMutableState` interface with methods * Rename `SharedMutableState` to `UnsafeAtomicRcBox` to match `RcBox`.
2013-05-13auto merge of #6417 : pcwalton/rust/exprs-in-patterns, r=pcwaltonbors-18/+18
r? @graydon
2013-05-13core: Rename SharedMutableState to UnsafeAtomicRcBoxBrian Anderson-90/+88
2013-05-13core: Move locks, atomic rc to unstable::syncBrian Anderson-277/+293
2013-05-13core: Move unstable to unstable/mod.rsBrian Anderson-0/+345
2013-05-13TidyMatthijs Hofstra-2/+2
2013-05-12libsyntax: Tighten up expressions in patterns to only allow identifiers or ↵Patrick Walton-18/+18
literals (possibly with a minus). This had very minimal fallout.
2013-05-12Adds atomic_load, atomic_load_acq, atomic_store, and atomic_store_rel ↵Matthijs Hofstra-0/+10
intrinsics. The default versions (atomic_load and atomic_store) are sequentially consistent. The atomic_load_acq intrinsic acquires as described in [1]. The atomic_store_rel intrinsic releases as described in [1]. [1]: http://llvm.org/docs/Atomics.html
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-09Add uninit intrinsicJames Miller-0/+3
2013-05-08libcore: Fix tests.Patrick Walton-3/+5
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-2/+2
2013-05-08libcore: Remove mutable fields from the task builder APIPatrick Walton-2/+6
2013-05-08libcore: Remove mutable fields from rand.Patrick Walton-1/+2
2013-05-08Move core::simd to core::unstable::simdSeo Sanghyeon-0/+43
2013-05-06Remove debug_mem since @graydon said it conflicted with GC changesNiko Matsakis-21/+1
2013-05-06Use rust_try_get_task for compat with new rt, and strenghten assumptions ↵Niko Matsakis-30/+32
about borrow list
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-30/+25
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-05disable lang debug for perfNiko Matsakis-1/+1
2013-05-04Register snapshotsBrian Anderson-51/+0
2013-05-04improve DEBUG_BORROW printoutsNiko Matsakis-44/+95
2013-05-04Reduce code bloat from managed allocationsBjörn Steinbrink-2/+0
In commit d7f5e43 "core::rt: Add the local heap to newsched tasks", local_malloc and local_free have become rather big and their forced inlining causes quite a bit of code bloat. Compile times for crates affected by the bloat (e.g. rustc) improve, while others (e.g. libstd) seem to be unaffected, so I guess the inlining doesn't gain us much. Sizes: | librustc | libsytax ---------------|–-----------|------------ with inlining | 18,547,824 | 7,110,848 w/o inlining | 15,092,040 | 5,518,608
2013-05-04auto merge of #6230 : thestinger/rust/whitespace, r=catamorphismbors-2/+0
I just had `git apply` fix most of them and then did a quick skim over the diff to fix a few cases where it did the wrong thing (mostly replacing tabs with 4 spaces, when someone's editor had them at 8 spaces).
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-2/+0
2013-05-03core: Warning policeTim Chevalier-0/+2
2013-05-03lang: um, actually set locking bits! this code got lost.Niko Matsakis-1/+11
2013-05-03Change borrow debugging so it is disabled by -ONiko Matsakis-55/+66
2013-05-02Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-0/+41
Conflicts: mk/rt.mk src/libcore/run.rs
2013-05-02free the borrow list propertly instead of crashingNiko Matsakis-1/+10