Huon Wilson
29b0649a6a
Convert vec::{push, push_all, push_all_move} to methods.
2013-06-28 00:20:42 +10:00
Huon Wilson
1cb0a567d1
Convert vec::{pop, shift, unshift, insert, remove, swap_remove} to methods.
2013-06-28 00:20:42 +10:00
Huon Wilson
d2e3e1e52b
Convert vec::{head, tail, init, last} (and similar fns) to methods.
2013-06-27 22:37:00 +10:00
Huon Wilson
d0512b1055
Convert vec::[mut_]slice to methods, remove vec::const_slice.
2013-06-27 22:36:09 +10:00
bors
a28f9ba526
auto merge of #7361 : brson/rust/incoming, r=brson
2013-06-27 01:04:33 -07:00
bors
f1e09d6f1f
auto merge of #7420 : mozilla/rust/rollup, r=thestinger
2013-06-26 23:07:41 -07:00
Brian Anderson
ddbccecc27
std::rt: Some cleanup
2013-06-26 17:00:42 -07:00
Daniel Micay
9f5f609b1c
vec: remove superseded reverse_part function
...
`reverse(xs.mut_slice(a, b))` replaces `reverse_part(xs, a, b)`
2013-06-26 19:42:34 -04:00
Ben Blum
12e09afd6d
Work-around 'static bound requirement in io::with_bytes_reader (note: does not fix #5723 , interface still unsafe)
2013-06-26 18:14:43 -04:00
Kevin Ballard
3df37326cf
Add methods .move_from() and .copy_from() to vec
...
Add method .move_from() to MutableVector, which consumes another vector
and moves elements into the receiver.
Add new trait MutableCloneableVector with one method .copy_from(), which
clones elements from another vector into the receiver.
2013-06-26 18:12:29 -04:00
Kevin Ballard
524a92c72f
Add method .set_memory in vec::bytes for &[u8]
...
Add new trait vec::bytes::MutableByteVector which currently defines one
method .set_memory().
2013-06-26 18:11:18 -04:00
gifnksm
8edb8f6d39
iterator: Add IteratorUtil::max_by/min_by
method
2013-06-27 06:55:22 +09:00
Eric Reed
42f3f069fa
changed NOTE to TODO
2013-06-26 13:48:49 -07:00
Eric Reed
ce97bd4c8b
cleaned up uv/net
2013-06-26 10:17:10 -07:00
bors
3433851a37
auto merge of #7345 : blake2-ppc/rust/iterator-flat-map, r=thestinger
...
flat_map_ produces an iterator that maps each element to an iterator,
and yields the elements of the produced iterators.
This is the monadic bind :: M a -> (a -> M b) -> M b for iterators.
Named just like the vec method, but with a trailing underline until the
method resolution bug is resolved.
We discussed the name chain_map, but I decided to go with flat_map_ for consistency with vec.
Since it.map(f).flatten() would be the same as it.flat_map(f), we could choose
to just implement a flatten method instead. Either way the possibilities are the same but flat_map is more convenient.
2013-06-26 09:47:16 -07:00
Eric Reed
87ecfb7435
converted TCP interface to newtype structs
2013-06-26 09:37:48 -07:00
Eric Reed
d0dc6970d8
removed unecessary method
2013-06-26 09:37:16 -07:00
bors
4ec05e02fa
auto merge of #7216 : kballard/rust/task_rng, r=brson
2013-06-26 03:08:04 -07:00
bors
09b4525f84
auto merge of #7113 : alexcrichton/rust/banned-warnings, r=cmr
...
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-26 00:56:04 -07:00
bors
22408d9ad5
auto merge of #7269 : luqmana/rust/drop, r=thestinger
...
Finally rename finalize to drop.
Closes #4332 .
2013-06-25 20:29:06 -07:00
Brian Anderson
5d3ca4b843
Merge remote-tracking branch 'mozilla/master' into incoming
...
Conflicts:
src/librustc/middle/astencode.rs
src/librustc/middle/check_const.rs
2013-06-25 19:32:00 -07:00
Luqman Aden
ca2966c6d0
Change finalize -> drop.
2013-06-25 21:14:39 -04:00
Alex Crichton
c109bed15b
Deny common lints by default for lib{std,extra}
2013-06-25 17:39:43 -07:00
Eric Reed
34b1135b59
Converted UdpSocket into a newtype struct and (dis)connecting uses move semantics rather than ~.
2013-06-25 17:05:59 -07:00
Eric Reed
f604686295
converted UvUdpSocket into a newtype struct
2013-06-25 17:04:28 -07:00
Eric Reed
c5b19f0bf9
changed outdated match on IpAddr
2013-06-25 16:04:09 -07:00
Eric Reed
d0c812f2a8
IPv6 struct
2013-06-25 16:03:24 -07:00
Eric Reed
2c5cfe1037
removed obsolete FIXMEs. formatting changes.
2013-06-25 16:02:51 -07:00
Eric Reed
f202713b73
satisfy the formatting check
2013-06-25 14:40:36 -07:00
Daniel Micay
e67c48a591
remove each
from vec, HashMap and HashSet
2013-06-25 16:28:02 -04:00
Daniel Micay
64ee9668a2
container: remove internal iterators from Map
...
the maps are being migrated to external iterators
2013-06-25 16:26:23 -04:00
Eric Reed
1af2016358
removed unncessary unsafe block that was stopping compliation.
2013-06-25 11:59:47 -07:00
Eric Reed
4870dce3eb
Merge remote-tracking branch 'upstream/io' into io
...
Conflicts:
src/rt/rustrt.def.in
2013-06-25 11:45:44 -07:00
Eric Reed
794923c995
UDP networking with tests
2013-06-25 11:43:40 -07:00
bors
032dcc57e8
auto merge of #7371 : alexcrichton/rust/trying, r=cmr
...
This is an attempt at a smaller request than #7113 , it's just the first two commits
2013-06-25 10:47:01 -07:00
Alex Crichton
42b44b21b1
Rename all files with the 'rc' extension
2013-06-25 08:55:15 -07:00
bors
d161e630d8
auto merge of #7317 : Aatch/rust/no-drop-flag, r=thestinger
...
This adds a `#[no_drop_flag]` attribute. This attribute tells the compiler to omit the drop flag from the struct, if it has a destructor. When the destructor is run, instead of setting the drop flag, it instead zeroes-out the struct. This means the destructor can run multiple times and therefore it is up to the developer to use it safely.
The primary usage case for this is smart-pointer types like `Rc<T>` as the extra flag caused the struct to be 1 word larger because of alignment.
This closes #7271 and #7138
2013-06-25 07:23:06 -07:00
bors
7aee5da08d
auto merge of #7254 : Blei/rust/intrinsic-overhaul, r=cmr
...
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-25 04:38:06 -07:00
bors
5a089c252e
auto merge of #7370 : Aatch/rust/snapshot, r=huonw
...
I also cleaned up the warnings.
2013-06-24 23:14:01 -07:00
James Miller
122f25dd5e
Add missing import to tests
2013-06-25 18:02:56 +12:00
James Miller
6ad31ffb53
Warning police
2013-06-25 17:13:52 +12:00
James Miller
caa50ce15d
Remove stage0 cfgs
2013-06-25 17:08:26 +12:00
James Miller
d9f6dd263c
Set #[no_drop_flag] on Rc<T> and AtomicOption. Add Test
2013-06-25 16:11:34 +12:00
Brian Anderson
e65d0cbabe
extra: Make test runner compatible with newsched
2013-06-24 17:07:03 -07:00
Brian Anderson
d071f51cdc
std::rt: deny(unused_unsafe)
2013-06-24 17:07:03 -07:00
Brian Anderson
b530ca1033
std: Make unlinking and task notification work with newsched
2013-06-24 17:07:03 -07:00
Brian Anderson
5e7c5d6c3d
std: Make box annihilator work with newsched
2013-06-24 17:07:03 -07:00
Brian Anderson
a09972db35
std: Move dynamic borrowck code from unstable::lang to rt::borrowck
2013-06-24 17:07:03 -07:00
Brian Anderson
aa9210d25a
std: Rewrite vec_reserve_shared_actual in Rust
2013-06-24 17:07:01 -07:00
Brian Anderson
ac9481a438
Merge remote-tracking branch 'reusee/master' into HEAD
2013-06-24 14:09:37 -07:00