summary refs log tree commit diff
path: root/src/libstd/rt
AgeCommit message (Collapse)AuthorLines
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
2013-06-20std: Port SharedChan to newschedBrian Anderson-0/+12
2013-06-20Merge remote-tracking branch 'brson/io' into io-upstreamBrian Anderson-788/+3024
Conflicts: src/rt/rust_builtin.cpp src/rt/rustrt.def.in
2013-06-20std::rt: WhitespaceBrian Anderson-2/+2
2013-06-20Merge remote-tracking branch 'brson/io-wip' into ioBrian Anderson-21/+55
2013-06-20Merge remote-tracking branch 'upstream/io' into ioEric Reed-62/+239
2013-06-19derived instances of Eq and TotalEq for IpAddr rather than implement them ↵Eric Reed-21/+1
manually.
2013-06-19socket based UDP ioEric Reed-70/+157
2013-06-19std::rt: Update GC metadata in initBrian Anderson-0/+5
2013-06-19Changed visibility from being on the impl to being on methods per language ↵Eric Reed-13/+13
syntax change.
2013-06-19Modified a match in resume_task_from_queue that was returning an int that ↵toddaaro-17/+17
was then matched on to instead use an enum.
2013-06-19Wrote the Eq instance of IpAddr in a slightly different way.Eric Reed-3/+3
2013-06-19std::rt: Document and cleanup the run functionBrian Anderson-10/+30