about summary refs log tree commit diff
path: root/src/libcore/rt
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-3/+3
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-3/+12
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-12librustc: Make `self` and `static` into keywordsPatrick Walton-24/+24
2013-05-11Warning policeTim Chevalier-9/+5
2013-05-10Move core::task::local_data to core::local_dataYoungsoo Son-1/+1
2013-05-09auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiynbors-1/+1
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-08libcore: Fix more merge fallout.Patrick Walton-2/+2
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-12/+14
2013-05-09Fix typosSean Moon-1/+1
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-07rt: Remove rust_call_nullary_fnBrian Anderson-6/+19
There's no need to delegate to C to call the Rust main function.
2013-05-07core::rt: Add a test that rng works with new tasksBrian Anderson-0/+9
2013-05-07auto merge of #6271 : pnkfelix/rust/issue6009-condition-pub-priv-variants, ↵bors-1/+2
r=graydon @brson: r? [please ignore the other one that was accidentally based off master due to back-button-bugs in github.com] My goal is to resolve the question of whether we want to encourage (by example) consistent use of pub to make identifiers publicly-accessible, even in syntax extensions. (If people don't want that, then we can just let this pull request die.) This is part one of two. Part two, whose contents should be clear from the FIXME's in this commit, would land after this gets incorporated into a snapshot. (The eventual goal is to address issue #6009 , which was implied by my choice of branch name, but not mentioned in the pull request, so github did not notice it.)
2013-05-06Step one for 'proper' pub condition: support pub keyword in form.Felix S. Klock II-1/+2
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-251/+1001
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-04Register snapshotsBrian Anderson-45/+0
2013-05-04improve DEBUG_BORROW printoutsNiko Matsakis-0/+2
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-7/+0
2013-05-03Change borrow debugging so it is disabled by -ONiko Matsakis-2/+0
2013-05-01add an option to debug borrows (RUST_DEBUG_BORROW) so you canNiko Matsakis-2/+4
find out where the offending borrow occurred. This ... still needs some work.
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-245/+1002
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-30allover: numerous unused muts etcNiko Matsakis-2/+0
2013-04-30new borrow checker (mass squash)Niko Matsakis-1/+1
2013-04-30desnapshotNiko Matsakis-3/+0
2013-04-30adapt to snapshotNiko Matsakis-42/+0
2013-04-29test: Fix tests.Patrick Walton-11/+13
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-3/+3
2013-04-24Merge remote-tracking branch 'brson/io'Brian Anderson-245/+1001
Conflicts: src/libcore/rt/uvio.rs
2013-04-24core: Warning policeBrian Anderson-11/+3
2013-04-23TidyBrian Anderson-1/+1
2013-04-23core::rt: Add more I/O docsBrian Anderson-22/+153
2013-04-23Merge remote-tracking branch 'brson/io'Brian Anderson-228/+862
This also reverts some changes to TLS that were leaking memory. Conflicts: src/libcore/rt/uv/net.rs src/libcore/task/local_data_priv.rs src/libcore/unstable/lang.rs
2013-04-23Fixing some various warnings about unused importsAlex Crichton-1/+2
2013-04-23Removing more unnecessary unsafe blocks throughoutAlex Crichton-6/+4
2013-04-23core::rt: Tasks to not require an unwinderBrian Anderson-45/+69
A task without an unwinder will abort the process on failure. I'm using this in the runtime tests to guarantee that a call to `assert!` actually triggers some kind of failure (an abort) instead of silently doing nothing. This is essentially in lieu of a working linked failure implementation.
2013-04-23core, rustc: Warning policeTim Chevalier-3/+3
2013-04-22core::rt: Fix a use after free in uv 'write'Brian Anderson-12/+21
2013-04-22core::rt: Add unwinding to newsched tasksBrian Anderson-10/+117
2013-04-22core::rt: Add implementations of Reader, Writer, and Listener for OptionBrian Anderson-3/+174
These will make it easier to write I/O code without worrying about errors
2013-04-22core::rt: Move the definition of Listener to rt::ioBrian Anderson-34/+21
2013-04-22core::rt: Make I/O constructors return Option instead of ResultBrian Anderson-7/+7
For consistency, for all I/O calls, inspecting the error can be done with the io_error condition.
2013-04-22core::rt Wire up task-local storage to the new schedulerBrian Anderson-4/+61
2013-04-21core::rt: Add the local heap to newsched tasksBrian Anderson-2/+99
Reusing the existing boxed_region implementation from the runtime
2013-04-21core::rt: Add LocalServices for thread-local language servicesBrian Anderson-2/+70
Things like the GC heap and unwinding are desirable everywhere the language might be used, not just in tasks. All Rust code should have access to LocalServices.
2013-04-20core: remove unused 'mut' variablesAlex Crichton-3/+3
2013-04-20core::rt:: Implement Reader/Writer for MemReader/MemWriterBrian Anderson-7/+70
2013-04-20core: Speed up a test caseBrian Anderson-1/+1
2013-04-20core::rt: Listener constructors are called and return aBrian Anderson-3/+30
2013-04-20core::rt: Improve docs for run_in_newsched_task testing functionBrian Anderson-1/+2
2013-04-20core::rt: Add `next_test_ip4` for generating test addressesBrian Anderson-7/+14