Commit Graph

12433 Commits

Author SHA1 Message Date
Gareth Daniel Smith 92f3b74db2 Use struct+impl syntax instead of the (deprecated) struct with embedded methods syntax. Also standardise the comment indentation and add some whitespace between items. 2012-09-04 13:23:23 -07:00
Gareth Daniel Smith c5f674ae2a fix two issues with the exports:
1. from_bytes, from_bools and from_fn were not exported but should have been.
2. lots of stuff that either didnt exist or didnt need exporting was being exported.
2012-09-04 13:23:22 -07:00
Gareth Daniel Smith 9297c76598 add additional Bitv constructors (as proposed in issue #2964) 2012-09-04 13:23:22 -07:00
Brian Anderson f445497d6b Merge pull request #3383 from crabtw/fbsd
use native log2 function and enable freebsd tests in uv_ll
2012-09-04 12:14:09 -07:00
Patrick Walton a26837c478 rustc: "import" -> "use" 2012-09-04 11:54:36 -07:00
Patrick Walton 8ff18acc82 libsyntax: "import" -> "use" 2012-09-04 11:43:23 -07:00
Kevin Cantu 3f92cf2659 Demode libstd/net_ip.rs 2012-09-04 11:33:23 -07:00
Kevin Cantu d072bc09a7 Demode libstd/net_url.rs 2012-09-04 11:33:23 -07:00
Kevin Cantu 9c8b0c6006 Demode treemap.rs 2012-09-04 11:30:49 -07:00
Kevin Cantu 100368ab86 Confirm demoding of smallintmap.rs 2012-09-04 11:30:48 -07:00
Kevin Cantu 3283b137b7 Confirm demoding of term.rs 2012-09-04 11:30:01 -07:00
Brian Anderson d55917ea59 std: Fix net::url constructor names 2012-09-04 11:28:38 -07:00
Andrew Paseltiner 225cdc4894 add test for eq_slice fix 2012-09-04 11:27:11 -07:00
Andrew Paseltiner 21172ee280 fix str::eq_slice off-by-one error 2012-09-04 11:27:11 -07:00
Patrick Walton 2d690ae43f libstd: "import" -> "use" 2012-09-04 11:23:53 -07:00
Patrick Walton 437073868e libcore: "import" -> "use" 2012-09-04 11:12:17 -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
Graydon Hoare 147e9380e2 Merge pull request #3377 from jimblandy/doc-fixes
In DuplexStream explanation: change 'There' to 'The'.
2012-09-04 09:11:05 -07:00
Jim Blandy 959f76ddeb In DuplexStream explanation: change 'There' to 'The'. 2012-09-04 01:12:12 -07: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
Brian Anderson 5aedabf1a3 rustc: Run all intrinsics through the monomorphiser
Intrinsics always want to be inlined.
2012-09-03 16:46:15 -07:00
Patrick Walton bb348ccab1 libstd: Export query_to_str from net::url 2012-09-03 16:10:01 -07:00
Brian Anderson ac31fdd9c4 Fix cross-crate inlining of intrinsics 2012-09-03 16:01:51 -07:00
Patrick Walton cd15eac9cf libcore: Add missing from_str.rs 2012-09-03 15:59:37 -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 5573ad723f rustc: Fix an LLVM assertion that tripped when borrowing a by-val method receiver.
In certain lvalue code paths, the type of the borrowed value was not
being used to generate temporary spills. I'm a bit surprised we didn't
hit this sooner.
2012-09-03 15:59:10 -07:00
Brian Anderson e767011b77 core: Add missing from_str.rs 2012-09-03 14:14:17 -07:00
Patrick Walton 199ed4d940 libstd: Export the url() constructor from net_url 2012-09-03 13:25:32 -07:00
Patrick Walton aefc884cf6 libcore: Add a from_str trait 2012-09-03 13:09:24 -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 c2f8cf9dc1 libcore: Remove as_bytes_slice 2012-09-03 12:33:43 -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
Patrick Walton b808cfbb74 rustc: Don't translate the expression twice when adapting a borrowed method receiver. Closes #3357.
Adds a test case. I had to stare at this one for a bit.
2012-09-02 16:51:05 -07:00
Brian Anderson 49c9ac175f Silence non-implicitly-copyable-typarams in coretest 2012-09-02 16:34:36 -07:00
Brian Anderson ffa5d76a78 core: Only warn about implicitly copying vecs 2012-09-02 16:21:57 -07:00
Brian Anderson 117aa8cfee core: warn(non_camel_case_types) everywhere, with few exceptions 2012-09-02 16:14:26 -07:00
Brian Anderson a80b7dc709 Fix use of reinterpret_cast in to_mut_unsafe_ptr 2012-09-02 16:03:37 -07:00
Brian Anderson 512a769f6f std: Allow camel case for list type 2012-09-02 15:57:49 -07:00
Patrick Walton f03ed73c5e libcore: Add ptr::to_mut_unsafe_ptr 2012-09-02 15:54:24 -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 087c5032a8 core: deny(vecs_implicity_copyable) 2012-09-02 15:38:18 -07:00
Brian Anderson 7fb1a4e2d1 Camel case core::intrinsic 2012-09-02 15:19:52 -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
Brian Anderson 6bfc80f8fb Try to work around check-fast breakage 2012-09-01 18:08:15 -07:00
Brian Anderson 0505fc6750 Merge pull request #3343 from killerswan/modes9
More deprecated mode removal (sort.rs, fun_treemap.rs)
2012-09-01 15:50:37 -07:00
Brian Anderson aea422014b Add test for #2989 2012-09-01 14:09:57 -07:00