about summary refs log tree commit diff
path: root/src/libcore/unstable
AgeCommit message (Collapse)AuthorLines
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
2013-05-02fix numerous dynamic borrow failuresNiko Matsakis-1/+1
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-16/+0
2013-05-01lang: fix code for maintaining borrow listNiko Matsakis-10/+40
2013-05-01core: add more debugging printouts to borrowingNiko Matsakis-5/+18
2013-05-01wip---work on making rooting work properlyNiko Matsakis-11/+56
2013-05-01add an option to debug borrows (RUST_DEBUG_BORROW) so you canNiko Matsakis-7/+71
find out where the offending borrow occurred. This ... still needs some work.
2013-05-01rustc: print out filename/line-number when a borrow failsNiko Matsakis-6/+19
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-0/+41
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-30allover: numerous unused muts etcNiko Matsakis-3/+3
2013-04-30new borrow checker (mass squash)Niko Matsakis-3/+44
2013-04-30adapt to snapshotNiko Matsakis-26/+0
2013-04-29core: Turn off the local heap in newsched in stage0 to work around windows ↵Brian Anderson-0/+19
bustage core won't compile in stage0 without.
2013-04-29librustc: Rename `reinterpret_cast` to `transmute_copy` and remove the intrinsicPatrick Walton-0/+1
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-2/+0
2013-04-24Merge remote-tracking branch 'brson/io'Brian Anderson-2/+24
Conflicts: src/libcore/rt/uvio.rs
2013-04-24Fixed typo... And a billion other things.Marvin Löbel-3/+6
2013-04-24Removed ascii functions from other modulesMarvin Löbel-1/+4
Replaced str::to_lowercase and str::to_uppercase
2013-04-24libcore: remove @Rng from rand, and use traits instead.Huon Wilson-1/+1
Also, rename RandRes -> IsaacRng, and make the constructors static methods.