Commit Graph

791 Commits

Author SHA1 Message Date
Brian Anderson
d55917ea59 std: Fix net::url constructor names 2012-09-04 11:28:38 -07:00
Patrick Walton
2d690ae43f libstd: "import" -> "use" 2012-09-04 11:23:53 -07:00
Jyun-Yan You
ff4b754958 use native log2 function and enable freebsd tests in uv_ll 2012-09-05 02:03:56 +08:00
Patrick Walton
7550e45930 libstd: Make ToBase64 take slices 2012-09-03 22:41:10 -07:00
Patrick Walton
0c2674f947 libstd: Make URL parsing not require unique strings, and have URLs implement FromStr.
I considered changing FromStr to return a Result<E> parameterized
over an error type E, but I decided that was premature abstraction.
If you want the URL parsing error, call url::from_str() directly.
2012-09-03 17:03:19 -07:00
Patrick Walton
bb348ccab1 libstd: Export query_to_str from net::url 2012-09-03 16:10:01 -07:00
Patrick Walton
8f840f9ea0 libstd: Implement a Sort trait.
This depends on the previous fix to not assert.
2012-09-03 15:59:10 -07:00
Patrick Walton
199ed4d940 libstd: Export the url() constructor from net_url 2012-09-03 13:25:32 -07:00
Patrick Walton
07ee2997e6 libstd: Make net_url::encode no longer require a unique string 2012-09-03 12:33:51 -07:00
Patrick Walton
68704e4ca7 libstd: Make URLs structs 2012-09-02 20:59:46 -07:00
Brian Anderson
f393100b7c Camel case core::ops 2012-09-02 18:13:56 -07:00
Brian Anderson
cb0eb66672 std: Camel case the rope module 2012-09-02 17:32:22 -07:00
Brian Anderson
512a769f6f std: Allow camel case for list type 2012-09-02 15:57:49 -07:00
Brian Anderson
1397c83f11 std: warn(non_camel_case_types) everywhere. still some exceptions 2012-09-02 15:49:36 -07:00
Brian Anderson
80c4f74c29 Remove the 'to' keyword 2012-09-01 18:38:18 -07:00
Brian Anderson
d777e51333 Demode reinterpret_cast 2012-09-01 18:18:29 -07:00
Kevin Cantu
134e5c85a2 Demode sort.rs 2012-09-01 13:08:20 -07:00
Kevin Cantu
b06599a7a8 Demode fun_treemap.rs 2012-09-01 13:08:20 -07:00
Kevin Cantu
bf430b7032 Confirm demode of map.rs and prettyprint.rs 2012-09-01 13:08:20 -07:00
Kevin Cantu
2d8b3471e7 Confirm demode of base64.rs 2012-09-01 13:08:20 -07:00
Kevin Cantu
36a04bdd85 Confirm demode of cell.rs 2012-09-01 13:08:20 -07:00
Kevin Cantu
2095aee71d Confirm demode of unicode.rs 2012-09-01 13:08:20 -07:00
Tim Chevalier
329281ebcc Remove type annotation that is no longer necessary
Closes #2617
2012-08-31 16:29:30 -07:00
Tim Chevalier
4128cc4cb4 Make utility funs in core::int, core::uint, etc. not by-reference
Closes #3302
2012-08-31 16:21:47 -07:00
Brian Anderson
dbf6abf6bf std: Camel case net modules 2012-08-31 15:01:48 -07:00
Kevin Cantu
7d57b4864a Remove deprecated modes from list.rs (and temporarily delete list::push) 2012-08-31 12:55:39 -07:00
Kevin Cantu
34bf84649e Remove deprecated modes from rope.rs 2012-08-31 12:55:39 -07:00
Kevin Cantu
e2667fda87 Remove deprecated modes from dbg.rs 2012-08-31 12:55:39 -07:00
Kevin Cantu
2580040995 Remove deprecated modes from FuzzyEq in cmp.rs
This commit may require changes to the following Servo files:
 * rust-geom/matrix.rs
 * servo/platform/osmain.rs
 * rust-layers/layers.rs
 * rust-geom/matrix.rs
2012-08-31 12:55:39 -07:00
Kevin Cantu
cf386188c8 Various JSON pretty printing tweaks 2012-08-31 07:11:07 -07:00
Kevin Cantu
4fb675be2f Fix JSON parsing of unicode escapes 2012-08-31 07:11:07 -07:00
Kevin Cantu
272c5ab0e9 Pretty print JSON: sorting object keys 2012-08-31 07:11:07 -07:00
Kevin Cantu
d47cb101bf Pretty print JSON: indentation and newlines 2012-08-31 07:11:06 -07:00
Graydon Hoare
536cb90a21 Migrate core::send_map to random, keyed hashes w/ hash::Hash trait. 2012-08-30 19:05:54 -07:00
Graydon Hoare
11871b8baa Fix json test. 2012-08-30 16:27:31 -07:00
Brian Anderson
65b05a6ce8 Bump version to 0.4 2012-08-30 14:05:59 -07:00
Patrick Walton
ab53819a2c libstd: Fix another std test 2012-08-30 12:25:48 -07:00
Patrick Walton
5c721bd810 libstd: More test fixes 2012-08-30 12:15:53 -07:00
Patrick Walton
a1c11cab2d rustc: Make <=, >=, and > use traits as well 2012-08-29 19:23:15 -07:00
Patrick Walton
70d3633c0b libstd: Fix some build breakage 2012-08-29 18:29:21 -07:00
Patrick Walton
96534365c2 rustc: Make < and = into traits 2012-08-29 18:25:22 -07:00
Brian Anderson
94720fcea7 std: More camel casing 2012-08-29 17:44:29 -07:00
Brian Anderson
c0c8d3aa8f core: Demode int/uint mods 2012-08-29 16:23:36 -07:00
Brian Anderson
ee2ce036cc Camel case more std types 2012-08-29 16:09:50 -07:00
Brian Anderson
aab4d6b8d7 std: Camel case some constructors 2012-08-29 15:34:38 -07:00
Niko Matsakis
e9ac7489b5 Refactor representation of borrowing so that it is tracked by fn_ctxt and not infer 2012-08-29 05:27:43 -07:00
Ben Striegel
a605fd0cad CamelCasify lots of std 2012-08-28 18:52:44 -07:00
Brian Anderson
cfbc7cbdc7 Convert core::pipes to camel case 2012-08-28 14:33:18 -07:00
Jed Davis
c5528198ab De-abstract std::sort:qsort3, which uses only the trait-based lt/eq.
quick_sort3 was converted from fn parameters to traits in d9cdddeb, but
was still passing around closures over core::cmp::{eq,lt} internally,
and LLVM doesn't and/or can't pick up that they're effectively constant.

Reduces time spent to sort a large random ~[uint] by 16% in my testing.
2012-08-28 06:37:06 -07:00
Niko Matsakis
0a01d82f6f preliminary work on making future's sendable
also various improvements to the ptr casting fns:
- rename assimilate() to to_unsafe_ptr() (fixes #3110)
- introduce `unsafe::copy_lifetime()` to copy the lifetime from one ptr to another
2012-08-27 19:56:16 -07:00
Brian Anderson
161a82e433 Camel case various core constructors 2012-08-27 17:22:18 -07:00
Kevin Cantu
4ba9fdd362 Remove deprecated modes from libstd/getopts.rs 2012-08-27 17:17:10 -07:00
Graydon Hoare
9fafb63d5e Turn off the verbose-mode of ebml. 2012-08-27 16:59:30 -07:00
Brian Anderson
0c6e470a25 Convert core::result to camel case 2012-08-27 14:37:04 -07:00
Niko Matsakis
8453097dd5 remove ipv4 match which looks like it was... purposeless 2012-08-27 14:10:55 -07:00
Ben Blum
a831726b94 Fix region-related unsafety in arc::get's signature 2012-08-27 14:03:23 -04:00
Ben Blum
09ae370c62 convert std::arc types to camelcase 2012-08-26 21:28:36 -04:00
Ben Blum
5dadee1ee7 minor core/std cleanup 2012-08-26 21:17:39 -04:00
Ben Blum
edd6d9ea37 convert std::sync types to camelcase 2012-08-26 21:17:36 -04:00
Brian Anderson
8337fa1a54 Camel case the option type 2012-08-26 15:56:16 -07:00
Brian Anderson
0de379fdf0 Merge pull request #3282 from killerswan/modes5
Removing more deprecated modes
2012-08-25 18:56:07 -07:00
Patrick Walton
ed1ab9a598 libstd: Don't make task-local GC data when creating TCP streams.
This exposed an ICE in a test; it's commented out for now.
2012-08-25 18:43:38 -07:00
Kevin Cantu
4f326dd650 Remove deprecated modes from SHA1 and MD4 in libstd 2012-08-25 15:28:57 -07:00
Kevin Cantu
b26084475c Remove deprecated modes from libstd/timer.rs 2012-08-25 15:28:57 -07:00
Erick Tryzelaar
dab3339971 libstd: Suppress warning about unused variable in net_tcp. 2012-08-25 12:22:44 -07:00
Erick Tryzelaar
f2f0ac9fe0 libstd: serialization should use &strs. 2012-08-25 12:22:44 -07:00
Ben Blum
4cfb92f459 Use region variance to remove a bunch of unsafety in sync/arc (#2282) 2012-08-25 03:07:30 -04:00
Graydon Hoare
23deed12ce Merge pull request #3269 from killerswan/modes3
Remove deprecated modes from libstd/time.rs
2012-08-24 16:08:38 -07:00
Graydon Hoare
c284b8b1dc Start using core::path2::Path in a lot of places. 2012-08-24 15:51:16 -07:00
Niko Matsakis
a8f1bee457 fix some unused pattern binding warnings 2012-08-24 15:37:21 -07:00
Michael Sullivan
b5dd01eb2a Add a bunch more unsafe blocks to prepare for the new semantics of unsafe/closure interactions. 2012-08-24 14:21:26 -07:00
Kevin Cantu
2dc9be7a14 Remove deprecated modes from libstd/time.rs
I've changed the unique string arguments to slices, and internally use
references to tm enums.  These changes are self-contained and so likely
don't step on any of @graydon's feet for a change!
2012-08-24 12:18:32 -07:00
Niko Matsakis
a08f3a7d4d More complete fix to #3162 (borrowck bug related to access to rec fields) 2012-08-23 18:54:08 -07:00
Tim Chevalier
9f591319dd Rename str::bytes to str::to_bytes
Closes #3245
2012-08-23 15:46:10 -07:00
Paul Stansifer
29f32b4a72 m1!{...} -> m1!(...) 2012-08-23 11:14:14 -07:00
Erick Tryzelaar
d8988fe220 libstd: fix serialization no-implicit-copies warnings 2012-08-22 19:10:29 -07:00
Erick Tryzelaar
007e47d710 libstd: switch ebml's wr_tagged_str to use str::byte_slice 2012-08-22 19:10:28 -07:00
Ben Blum
95bc9d4aef export unwrap_arc functions in core/std 2012-08-22 21:16:35 -04:00
Brian Anderson
aab37fa811 Merge pull request #3240 from Dretch/bitvfixes
Bitvfixes
2012-08-22 15:11:58 -07:00
Michael Sullivan
e94c5420f4 #[ignore(cfg(windows))] for a test I added to arena that involves failure. 2012-08-22 10:29:23 -07:00
Michael Sullivan
73a03824e8 Remove a level of indirection from std::arena. 2012-08-21 17:03:00 -07:00
Michael Sullivan
f24e0e7b13 Have std::arena segregate POD data and non-POD data into different chunks. 2012-08-21 17:03:00 -07:00
Michael Sullivan
5f32e18011 Make std::arena run destructors. Closes #2831. 2012-08-21 17:03:00 -07:00
Michael Sullivan
98d0aae9a1 Fix some map related build failures. 2012-08-21 17:03:00 -07:00
Niko Matsakis
bc5eb95222 implement a map testing benchmark
This involved some other changes:
- add a managed<T> wrapper that makes send_map usable from @-data
- implement map<K,V> for managed<send_map>

Unit tests are coming.
2012-08-21 16:07:53 -07:00
Ben Blum
0229bc4def Remove fixmes about exporting. Close #2648, close #3119. 2012-08-21 15:30:53 -04:00
Gareth Daniel Smith
69d66a702e fix a bug in bitv where the undefined bits in small/big bitv values could cause operations to return incorrect results. 2012-08-21 19:42:16 +01:00
Gareth Daniel Smith
5ccd299b15 fix a logic bug in small_bitv.set 2012-08-21 19:41:29 +01:00
Niko Matsakis
652b312122 more sound treatment of fn& regions; change all & to be distinct 2012-08-21 10:28:34 -07:00
Niko Matsakis
8ee79c79aa new region inference, seperate infer into modules, improve error msgs
Fixes #2806
Fixes #3197
Fixes #3138
2012-08-20 22:00:06 -07:00
Ben Blum
3b09c3deaa Document arc::unwrap. Close #3123. 2012-08-20 22:31:17 -04:00
Ben Blum
bd736a0f9b oops, remove #[cfg(stage1)]s from arc::unwrap functions+tests 2012-08-20 22:00:06 -04:00
Ben Blum
1aa50bba7c Add unwrap for std::arc ARC variants 2012-08-20 21:51:39 -04:00
Brian Anderson
3ab4b014cf Remove the class keyword 2012-08-17 10:13:45 -07:00
Patrick Walton
6d7b143036 libstd: Add a function to borrow a cell 2012-08-16 19:37:33 -07:00
Ben Blum
f188d92dfe reduce stress constants in std::timer::tests 2012-08-16 21:07:55 -04:00
Eric Holk
5f57588887 Update the rock-paper-scissors example in the tutorial, and rename some types in core::pipes 2012-08-16 17:50:36 -07:00
Eric Holk
ca0607051a Fix compile errors in tutorial tests. 2012-08-16 16:46:20 -07:00
Eric Holk
924e787119 Add std::comm with DuplexStream 2012-08-16 16:46:19 -07:00
Brian Anderson
9c6890f488 Convert more core types to camel case 2012-08-15 17:46:05 -07:00