about summary refs log tree commit diff
path: root/src/libstd/rt
AgeCommit message (Collapse)AuthorLines
2013-07-04Convert vec::{as_imm_buf, as_mut_buf} to methods.Huon Wilson-1/+2
2013-07-02converted TODOs into XXXsEric Reed-8/+7
2013-07-02Merge remote-tracking branch 'upstream/io' into ioEric Reed-555/+377
Conflicts: src/libstd/rt/test.rs src/rt/rustrt.def.in
2013-07-02IPv6 support for UDP and TCP.Eric Reed-131/+768
2013-07-02A missing ! made it so that the testcase schedule_home_states was throwing ↵toddaaro-1/+1
spurious assert failures. Why this did not result in the test case failing previously is beyond me.
2013-07-01removed unnecessary import that slipped in during mergetoddaaro-1/+0
2013-07-01merging task/coroutine refactoring back into upstreamtoddaaro-19/+18
2013-07-01Refactored the runtime to view coroutines as a component of tasks, instead ↵toddaaro-542/+362
of tasks as a component of coroutines.
2013-06-30pass exchange_malloc an alignment, not a tydescDaniel Micay-7/+2
2013-06-30global_heap: inline get_box_size and align_toDaniel Micay-0/+2
2013-06-30global_heap: inline malloc_raw and add realloc_rawDaniel Micay-1/+13
2013-06-30add a closure_exchange_malloc lang itemDaniel Micay-0/+14
this makes the exchange allocation header completely unused, and leaves it uninitialized
2013-06-30stop initializing ref_count in exchange_allocDaniel Micay-1/+21
this is never read anymore
2013-06-30simplify the exchange allocatorDaniel Micay-53/+41
* stop using an atomic counter, this has a significant cost and valgrind will already catch these leaks * remove the extra layer of function calls * remove the assert of non-null in free, freeing null is well defined but throwing a failure from free will not be * stop initializing the `prev`/`next` pointers * abort on out-of-memory, failing won't necessarily work
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-2/+5
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-9/+9
2013-06-28std: silence some test warnings.Huon Wilson-2/+2
2013-06-28Convert vec::{reserve, reserve_at_least, capacity} to methods.Huon Wilson-1/+1
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-2/+2
2013-06-26std::rt: Some cleanupBrian Anderson-20/+18
2013-06-26changed NOTE to TODOEric Reed-5/+5
2013-06-26cleaned up uv/netEric Reed-68/+32
2013-06-26converted TCP interface to newtype structsEric Reed-24/+9
2013-06-26removed unecessary methodEric Reed-3/+1
2013-06-26auto merge of #7113 : alexcrichton/rust/banned-warnings, r=cmrbors-2/+2
Reopening of #7031, Closes #6963 I imagine though that this will bounce in bors once or twice... Because attributes can't be cfg(stage0)'d off, there's temporarily a lot of new stage0/stage1+ code.
2013-06-25Change finalize -> drop.Luqman Aden-13/+13
2013-06-25Deny common lints by default for lib{std,extra}Alex Crichton-2/+2
2013-06-25Converted UdpSocket into a newtype struct and (dis)connecting uses move ↵Eric Reed-27/+12
semantics rather than ~.
2013-06-25converted UvUdpSocket into a newtype structEric Reed-14/+5
2013-06-25changed outdated match on IpAddrEric Reed-4/+2
2013-06-25IPv6 structEric Reed-2/+4
2013-06-25removed obsolete FIXMEs. formatting changes.Eric Reed-54/+24
2013-06-25satisfy the formatting checkEric Reed-15/+19
2013-06-25removed unncessary unsafe block that was stopping compliation.Eric Reed-1/+1
2013-06-25Merge remote-tracking branch 'upstream/io' into ioEric Reed-60/+641
Conflicts: src/rt/rustrt.def.in
2013-06-25UDP networking with testsEric Reed-61/+366
2013-06-25auto merge of #7254 : Blei/rust/intrinsic-overhaul, r=cmrbors-7/+3
This sets the `get_tydesc()` return type correctly and removes the intrinsic module. See #3730, #3475. Update: this now also removes the unused shape fields in tydescs.
2013-06-24extra: Make test runner compatible with newschedBrian Anderson-7/+14
2013-06-24std::rt: deny(unused_unsafe)Brian Anderson-4/+5
2013-06-24std: Make unlinking and task notification work with newschedBrian Anderson-0/+25
2013-06-24std: Make box annihilator work with newschedBrian Anderson-14/+71
2013-06-24std: Move dynamic borrowck code from unstable::lang to rt::borrowckBrian Anderson-0/+286
2013-06-24std: Rewrite vec_reserve_shared_actual in RustBrian Anderson-0/+9
2013-06-24remove old_iterDaniel Micay-1/+0
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-23Remove intrinsic modulePhilipp Brüschweiler-7/+3
To achieve this, the following changes were made: * Move TyDesc, TyVisitor and Opaque to std::unstable::intrinsics * Convert TyDesc, TyVisitor and Opaque to lang items instead of specially handling the intrinsics module * Removed TypeDesc, FreeGlue and get_type_desc() from sys Fixes #3475.
2013-06-23Split out starting a listener from accepting incoming connections.Eric Reed-112/+181
The Listener trait takes two type parameters, the type of connection and the type of Acceptor, and specifies only one method, listen, which consumes the listener and produces an Acceptor. The Acceptor trait takes one type parameter, the type of connection, and defines two methods. The accept() method waits for an incoming connection attempt and returns the result. The incoming() method creates an iterator over incoming connections and is a default method. Example: let listener = TcpListener.bind(addr); // Bind to a socket let acceptor = listener.listen(); // Start the listener for stream in acceptor.incoming() { // Process incoming connections forever (or until you break out of the loop) }
2013-08-27Add a variant of home_for_io that consumes the handle. Refactor out common ↵Eric Reed-48/+53
parts of the home_for_io variants.
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+2
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21std: Make console log off/on controls work with newschedBrian Anderson-4/+16
2013-06-21std::rt: Support os::argsBrian Anderson-7/+144