Commit Graph

1594 Commits

Author SHA1 Message Date
Patrick Walton
9f387926fc librustc: Fold rt items into lang items. Shaves another 10% or so off hello world compile time. 2013-01-07 12:21:34 -08:00
Tim Chevalier
89acd1f57f Rename option::get_default => get_or_default, get_zero => get_or_zero 2013-01-04 16:01:26 -08:00
Tim Chevalier
4d8cc3f003 Make either::{partition, flip, to_result} take their arguments by-value
Addresses an XXX

r=pcwalton
2013-01-04 15:39:31 -08:00
Graydon Hoare
62f6f46072 core: fix windows breakage, r=burningtree. 2013-01-04 15:38:56 -08:00
Tim Chevalier
1f1e7e9616 Add option::get_zero
r=brson

Closes #3797
2013-01-04 00:46:55 -08:00
Andrew Paseltiner
a933cdfbf1 clean up condition module:
* use Drop trait in Guard
* fix formatting
* remove bare function in Condition.raise_default
* use moved types instead of borrowed pointers in Condition.{raise,trap}
* import common functions
2013-01-03 15:53:06 -08:00
Erick Tryzelaar
392708e3b1 core: convert an XXX into a FIXME. 2013-01-02 10:40:47 -05:00
Tim Taubert
4b1d2dc884 reset LinearMap.size when expanding buckets 2012-12-30 19:38:42 +01:00
Tim Chevalier
cef153947d Long lines 2012-12-28 13:35:15 -08:00
Tim Chevalier
7af1080f5e Merge pull request #4308 from steveklabnik/patch-1
Improve documentation for each.
2012-12-28 11:52:16 -08:00
Steve Klabnik
5ec3aba8cc Improve documentation for each.
Add description of arguments, and an example.
2012-12-28 01:12:28 -05:00
Patrick Walton
e26ca35b08 librustc: Fix the test runner, the condition system, and core test. rs=bustage 2012-12-27 17:53:04 -08:00
Patrick Walton
57c599914a librustc: Terminate name searches at the nearest module scope for paths that contain at least two components. r=graydon 2012-12-27 10:02:54 -08:00
Patrick Walton
6b659392ea libcore: Add symlink(2) to libc. rs=trivial 2012-12-27 10:02:51 -08:00
Tim Chevalier
6dbb025267 Fix wayward search and replace; unbreak build 2012-12-24 18:29:02 -08:00
gareth
fddc849d75 Convert core::io to use explicit self (for issue #4118 and issue #2004) 2012-12-24 18:29:02 -08:00
Chris Peterson
c1e58aad70 core: Mark some functions as pure 2012-12-24 18:29:02 -08:00
Graydon Hoare
329316ce15 bump 0.5 => 0.6, redirect some URLs in docs. 2012-12-24 18:29:01 -08:00
Erick Tryzelaar
50902bb302 Fix Option::unwrap_err. 2012-12-24 18:29:01 -08:00
Tim Chevalier
46122bf333 Fix wayward search and replace; unbreak build 2012-12-24 12:37:45 -08:00
Tim Chevalier
66dc4898c7 Merge pull request #4278 from cpeterso/incoming-pure-functions
Mark some more core and std functions as pure
2012-12-24 11:33:22 -08:00
gareth
feff3a9c6c Convert core::io to use explicit self (for issue #4118 and issue #2004) 2012-12-24 18:52:53 +00:00
Chris Peterson
6d8621ae7f core: Mark some functions as pure 2012-12-23 14:37:44 -08:00
Tim Chevalier
197a1f9cfe Merge pull request #4243 from erickt/incoming
Fix a bug in Result::unwrap_err (and minor cleanup)
2012-12-23 13:49:32 -08:00
Graydon Hoare
dbd36111fe bump 0.5 => 0.6, redirect some URLs in docs. 2012-12-21 15:35:49 -08:00
Erick Tryzelaar
5e94407a94 Fix Option::unwrap_err. 2012-12-20 21:16:02 -08:00
Erick Tryzelaar
e8102e73a9 core: Add a Zero and One trait to num
I believe these are the last traits we need in order
to start grouping our numerical types into mathematical
groups and rings.
2012-12-20 07:15:04 -08:00
Erick Tryzelaar
2ad41b881c core: add unwrap methods to dvec, either, and mutable 2012-12-18 20:54:13 -08:00
Erick Tryzelaar
a0ef334179 core: use movable self to clean up option/result. 2012-12-18 20:54:13 -08:00
Erick Tryzelaar
938058b004 Fix vec::flat_map_to_vec method 2012-12-18 20:48:51 -08:00
Graydon Hoare
8e28f23c60 core: add macro_rules! for "condition! { c: in -> out; }". 2012-12-18 17:22:27 -08:00
Graydon Hoare
6d4fbd4f9e core: fix remaining repr bugs, r=burningtree. 2012-12-18 14:35:20 -08:00
Erick Tryzelaar
85bb1fc2c4 Change iter::find's closure to take a ref 2012-12-17 22:01:38 -08:00
Erick Tryzelaar
88962eeed8 core: Add &self to core::iter methods 2012-12-17 22:01:38 -08:00
Graydon Hoare
7ab66a46b7 core: remove old repr system, enable newer one. Close #3109. 2012-12-17 16:55:40 -08:00
Brian Anderson
5bf7ba0773 Register snapshots 2012-12-17 16:44:27 -08:00
Brian Anderson
68998724c6 Revert "Register snapshots"
This reverts commit d6d12d90ff.
2012-12-17 16:26:44 -08:00
Brian Anderson
d6d12d90ff Register snapshots 2012-12-17 16:22:21 -08:00
Brian Anderson
8311c94db4 Merge pull request #4200 from ttaubert/issue-2649-rewrite-to_str_bytes
rewrite uint::to_str_bytes to avoid raw pointers
2012-12-17 12:43:28 -08:00
Tim Taubert
2f3d4f6181 rewrite uint::to_str_bytes to avoid raw pointers 2012-12-15 18:45:40 +01:00
Brian Anderson
309cdfd835 Remove more uses of 'move' from core::vec 2012-12-14 17:12:41 -08:00
Brian Anderson
2c21f348a4 Rewrite core::vec::shift to not allocate 2012-12-14 17:09:44 -08:00
Brian Anderson
e6d1b02359 Rename core::comm to core::oldcomm 2012-12-14 14:59:32 -08:00
Brian Anderson
80ef7243ea Remove spawn_listener, spawn_conversation
These are not needed in a pipe-based Rustiverse
2012-12-14 14:59:32 -08:00
Brian Anderson
01a6524d00 Stop using spawn_conversation in chan_from_global_ptr 2012-12-14 14:59:32 -08:00
Brian Anderson
ebc19034ee Fix broken tests 2012-12-14 14:26:57 -08:00
Brian Anderson
e7ef82dd70 Change some uses of static methods to use the trait path 2012-12-13 16:15:08 -08:00
Brian Anderson
d809e89c26 Replace some Eq impls with deriving_eq 2012-12-13 16:14:28 -08:00
Brian Anderson
ed4fac01b5 Rename Send trait to Owned 2012-12-13 15:52:50 -08:00
Brian Anderson
a277081ee4 Rename Owned trait to Durable 2012-12-13 15:52:50 -08:00