Luqman Aden
0e2437bf5d
uv: implement a way to get client's ip/port.
2012-10-20 17:17:10 -07:00
Tim Chevalier
10612ee30c
Remove superfluous by-ref in option::get, option::get_default, option::expect
...
Superficial change, no review.
2012-10-19 11:38:28 -07:00
Erick Tryzelaar
fe41ccec64
Rename str::to_unique to str::to_owned.
2012-10-18 11:04:59 -07:00
Tim Chevalier
33adb7a824
Merge pull request #3739 from killerswan/usagemsg
...
Add a module to getopts for verbose option group declaration (and use it in rustc)
2012-10-17 13:05:04 -07:00
Tim Chevalier
bbc90b6bf6
Fix whitespace
2012-10-17 12:59:30 -07:00
Daniel Patterson
fd6be2fa4e
std::treemap - changing types to reflect constraints, adding equality check (space expensive)
2012-10-17 12:59:30 -07:00
Kevin Cantu
32baf1c54c
Add a module to getopts to support verbose option definition
...
This is built on top of the existing functionality, but
adds a `groups` module which defines functions allowing
the user to specify whole short/long/description groups
at once and provides a usage message.
2012-10-17 12:10:06 -07:00
Tim Chevalier
47c83f1844
Export std::net_url::encode_component
2012-10-17 10:39:01 -07:00
Erick Tryzelaar
ab89b5c294
libstd: make Serializer a trait-level typaram
2012-10-15 08:25:23 -07:00
Tim Chevalier
90d06b80fd
Make moves explicit in std tests
2012-10-12 20:43:37 -07:00
Graydon Hoare
57b4d10ff6
bump version to 0.5.
2012-10-12 16:41:32 -07:00
Kevin Cantu
1bede1f5e0
Replace several common macros of the form #m[...] with m!(...)
...
This commit replaces nearly all remaining uses of #fmt, #debug, #error,
and #info, and fixes some error messages...
2012-10-12 14:14:48 -07:00
Tim Chevalier
66cea3700e
Fix from_buf in test cases
2012-10-11 16:45:57 -07:00
Tim Chevalier
6854265161
Remove comment that is now false
2012-10-11 16:00:30 -07:00
Tim Chevalier
d2efd7edf7
Update FIXME number
2012-10-11 16:00:30 -07:00
Tim Chevalier
d882274284
Remove Copy bound from std::timer::delayed_send
...
Closes #3717
2012-10-11 14:17:59 -07:00
Tim Chevalier
5a8ba073bc
Make to_str pure and fix const parameters for str-mutating functions
...
Two separate changes that got intertwined (sorry):
Make to_str pure. Closes #3691
In str, change functions like push_char to take an &mut str instead of
an &str. Closes #3710
2012-10-11 14:17:59 -07:00
Erick Tryzelaar
e325d029d4
Remove old serialization2 vestigial code
2012-10-09 18:03:07 -07:00
Erick Tryzelaar
eb626e7119
Remove the old serializers (needs snapshot)
2012-10-07 17:20:19 -07:00
Simon BD
0e3bec0ced
Merge remote-tracking branch 'original/incoming' into incoming
2012-10-06 13:15:18 -05:00
Simon BD
d4a54837d4
Add a test to check that badly written Ord impl do not cause double frees
2012-10-06 13:07:29 -05:00
Simon BD
eee86d4340
Remove debug info
2012-10-06 12:44:56 -05:00
Tim Chevalier
05999290e2
Finally removing all uses of by-mut-ref
...
The code for the mode itself is still there.
2012-10-05 21:03:40 -07:00
Tim Chevalier
45345bda6a
Remove uses of mutable ref mode.
...
It's still in the compiler right now, but warned about
2012-10-05 16:57:37 -07:00
Tim Chevalier
f8bc0d2545
Revert "wip"
...
This reverts commit ca49fd402a
.
2012-10-05 16:10:08 -07:00
Tim Chevalier
ca49fd402a
wip
2012-10-05 15:39:12 -07:00
Tim Chevalier
e16dbb7888
Demode some code using by-mutbl-ref; warn about by-mutbl-ref
...
The parser now warns about use of mutbl-ref mode, though it's kind
of a lie since this commit doesn't remove support for the mode.
Changed move_val_init to have stage0 and stage1/2 versions, the latter of
which is demoded.
Changed the type that the typechecker expects the move_val_init
intrinsic to have. After this is pushed, I can make a new snapshot,
which will remove the need for the stage0 versions.
2012-10-05 15:37:01 -07:00
Brian Anderson
016875b1b1
std: Silence remaining warnings
2012-10-05 11:59:51 -07:00
Brian Anderson
e46e97fc9a
Silence most of the remaining warnings
2012-10-05 11:53:24 -07:00
Brian Anderson
ba75a3e14c
std: Revert demoding of uv_ll. It can't be done without FFI changes
2012-10-05 11:32:00 -07:00
Tim Chevalier
8fc60af441
Remove by-copy mode from std, mostly
...
One instance remains in net_tcp due to a foreign fn. Lots of
instances remain in serialization.rs, but IIRC that is being removed.
I had to do unholy things to task-perf-word-count-generic to get it
to compile after demoding pipes. I may well have messed up its
performance, but it passes.
2012-10-04 19:59:47 -07:00
Simon BD
74246d47fd
Finish up tests, uncomment when ICE is fixed.
2012-10-04 21:35:03 -05:00
Tim Chevalier
202c8fd0eb
Kill bootstrapping code in ptr
2012-10-04 16:48:57 -07:00
Tim Chevalier
fe12da0864
De-mode comm::Chan
2012-10-04 16:48:57 -07:00
Graydon Hoare
f05bf26f85
Fix long line.
2012-10-04 14:08:59 -07:00
Graydon Hoare
a06b90322c
Finish de-exporting std. Part of #3583 .
2012-10-04 13:47:24 -07:00
Simon BD
7bd48b92d9
Get tim_sort working, add test for double-freeing elements in tmp
2012-10-04 11:24:55 -05:00
Simon BD
455591d026
Fix my merge
2012-10-04 11:24:38 -05:00
Simon BD
efcd2385ea
Merge remote-tracking branch 'original/incoming' into incoming
...
Conflicts:
src/libstd/json.rs
src/libstd/sort.rs
2012-10-03 21:47:09 -05:00
Simon BD
44f8a4401a
Backup changes before pull from incoming
2012-10-03 21:41:53 -05:00
Patrick Walton
1c3bfa4550
libstd: Make vec_from_set pure
2012-10-03 19:40:25 -07:00
Brian Anderson
3ccf6f5932
std: Fix double free in uv
2012-10-03 19:23:34 -07:00
Graydon Hoare
35598b4595
De-export net::*. Part of #3583 .
2012-10-03 17:01:32 -07:00
Tim Chevalier
c73e3320f8
Remove crud
2012-10-03 14:28:47 -07:00
Tim Chevalier
f33539e446
Remove uses of + mode from libstd
...
More or less the same as my analogous commit for libcore. Had
to remove the forbid(deprecated_modes) pragma from some files -- will
restore it after the snapshot.
2012-10-03 14:05:51 -07:00
Graydon Hoare
654b4d6987
De-export std::{json, getopts}. Part of #3583 .
2012-10-03 13:38:00 -07:00
Graydon Hoare
fb83b40174
De-export std::{ebml, ebml2}. Part of #3583 .
2012-10-03 13:36:39 -07:00
Simon BD
0ec5c9af9b
Add cleanup code so the the array remains in a valid state if a comparison fails
2012-10-03 09:51:05 -05:00
Tim Chevalier
f78cdcb636
Removing explicit uses of + mode
...
This removes most explicit uses of the + argument mode. Pending a
snapshot, I had to remove the forbid(deprecated_modes) pragma from
a bunch of files. I'll put it back!
+ mode still has to be used in a few places for functions that get
moved (see task.rs)
The changes outside core and std are due to the to_bytes trait and
making the compiler (with legacy modes on) agree with the libraries
(with legacy modes off) about modes.
2012-10-02 14:31:39 -07:00
Patrick Walton
9284179311
libstd: Switch off legacy modes in both core and std.
2012-10-02 12:20:06 -07:00
Graydon Hoare
201513e859
De-export std::{fun_treemap, list, map}. Part of #3583 .
2012-10-02 12:04:49 -07:00
Erick Tryzelaar
81423a3866
Add deserializable and more types to serialization2
2012-10-01 20:43:59 -07:00
Erick Tryzelaar
0159fe7ce9
libstd: remove unused imports from json
2012-10-01 20:43:59 -07:00
Graydon Hoare
fa010a6ee4
De-export std::{uv, uv_ll, uv_iotask, uv_global_loop}. Part of #3583 .
2012-10-01 18:21:41 -07:00
Graydon Hoare
13979eb7e2
De-export std::test. Part of #3583 .
2012-10-01 18:00:14 -07:00
Graydon Hoare
a4a7df0ccc
Fix rope breakage from de-exporting.
2012-10-01 15:26:53 -07:00
Tim Chevalier
b18320446e
Move over to calling ptr::addr_of
...
Everything should now call ptr::addr_of instead of
ptr::p2::addr_of. Only the pipes macro code when compiled
by stage0 will call ptr::p2::addr_of. Needs a snapshot to get
rid of that.
2012-10-01 15:12:09 -07:00
Graydon Hoare
8cc61c816a
De-export std::{rope,smallintmap}. Part of #3583 .
2012-10-01 14:09:09 -07:00
Tim Chevalier
9ff95e29b3
Demode ebml, ebml2, json, par
2012-10-01 12:36:41 -07:00
Simon BD
579c7e3ef1
Make local variables and methods use underscores not camel case
2012-10-01 11:34:04 -05:00
Brian Anderson
d0333a8e41
std: Make the DuplexStream constructor public
2012-09-28 22:19:43 -06:00
Graydon Hoare
9e6d3cf3c9
De-export std::c_vec. Part of Part of #3583 .
2012-09-28 17:47:36 -07:00
Graydon Hoare
eba5eeaef8
De-export std::deque. Part of #3583 .
2012-09-28 17:21:35 -07:00
Graydon Hoare
e17d998e95
De-export std::{time, prettyprint{,2}, arena}. Part of #3583 .
2012-09-28 16:26:33 -07:00
Graydon Hoare
1948ddf583
De-mode std::unicode. Part of #3583 .
2012-09-28 16:26:18 -07:00
Brian Anderson
74a46ea74c
std: More demoding
2012-09-28 16:19:38 -07:00
Graydon Hoare
43a9d90b48
De-export std::{arc,comm,sync}. Part of #3583 .
2012-09-28 16:05:45 -07:00
Graydon Hoare
70ae3e7bf2
De-export std::{bitv, cell, timer}. Part of #3583 .
2012-09-28 14:55:43 -07:00
Tim Chevalier
2f4ee89119
Demode extfmt
...
Needs a snapshot before this can be completed, because I changed
the mode for conv_poly.
2012-09-28 13:47:45 -07:00
Niko Matsakis
21519bc7e0
demode vec
2012-09-28 13:27:45 -07:00
Graydon Hoare
7e8c363da8
Fix missed pattern on std::net_tcp.
2012-09-28 12:30:33 -07:00
Graydon Hoare
3efe499734
Long lines.
2012-09-28 11:36:09 -07:00
Brian Anderson
a09a49627e
Long lines
2012-09-28 02:26:20 -07:00
Brian Anderson
bc9efaad9c
std: Eliminate deprecated patterns
2012-09-28 00:22:28 -07:00
Simon BD
4d30d7ff04
Add a simple testsuite for timsort
2012-09-27 21:01:43 -05:00
Simon BD
f7be2d92a4
Export timsort
2012-09-27 20:56:13 -05:00
Simon BD
f34c4f4b04
Remove trailing whitespace
2012-09-27 20:44:14 -05:00
Graydon Hoare
fe62ff465c
De-mode std::{treemap,sort}. Part of #3583 .
2012-09-27 18:21:32 -07:00
Graydon Hoare
86041c421d
De-export std::{dbg,sha1,md4,tempfile,term}. Part of #3583 .
2012-09-27 18:03:13 -07:00
Simon BD
868d10160f
Put function argument last in sort function. Fixes #3265 .
2012-09-27 19:05:13 -05:00
Brian Anderson
5b93d1a29f
std: Fix mode warning in std::test
2012-09-27 16:50:42 -07:00
Graydon Hoare
1845cf23aa
De-export std::{base64,cmp,par}. Part of #3583 .
2012-09-27 16:43:25 -07:00
Simon BD
f98f00f7f6
Fix timsort to use updated vec::reserve
2012-09-27 18:15:57 -05:00
Brian Anderson
0ec267b276
std: Demode more of list and treemap
2012-09-26 19:12:32 -07:00
Niko Matsakis
67a8e7128a
Demode vec::push (and convert to method)
2012-09-26 18:02:07 -07:00
Erick Tryzelaar
49d00b2f22
libstd: port json over to serialization2
2012-09-26 16:29:41 -07:00
Erick Tryzelaar
a1ab7d3cba
libstd: Add serialization2 versions of prettyprint and ebml
2012-09-26 16:20:25 -07:00
Erick Tryzelaar
c0b9986c8f
libstd: change serialization2 to take &self argument methods
...
Unfortunately this trips over issue (#3585 ), where auto-ref isn't
playing nicely with @T implementations. Most serializers don't
care, but prettyprint2 won't properly display "@" until #3585 is
fixed.
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
780b23af73
libstd: add the new trait-based serialization
...
This will need a snapshot before we can convert ebml and rustc
to use the new-style serialization.
2012-09-26 16:20:24 -07:00
Brian Anderson
4f15b0d975
std: Fix mode warnings in fun_treemap and list
2012-09-26 15:59:52 -07:00
Eric Holk
135ebca8aa
Refactoring ReaderUtil trait, combining it with the traitless impl on Reader.
2012-09-26 15:55:42 -07:00
Patrick Walton
264e1b2edb
libcore: De-mode at_vec
2012-09-26 12:29:27 -07:00
Tim Chevalier
e19e628b19
Demode iter-trait
2012-09-25 22:13:05 -07:00
Tim Chevalier
473a866733
Fix long lines
2012-09-25 22:13:05 -07:00
Tim Chevalier
3023bd8729
Demode dvec
2012-09-25 18:27:55 -07:00
Brian Anderson
d05e2ad66c
Demode core::result
2012-09-25 17:48:22 -07:00
Brian Anderson
62649f0412
Check more things with deprecated_modes
2012-09-25 17:41:29 -07:00
Simon BD
cef7763649
Add timsort to std/sort
2012-09-25 17:53:24 -05:00
Brian Anderson
afd91f8a56
Register snapshots. Remove redundant Eq impls, Makefile hacks
2012-09-23 23:01:49 -07:00
Brian Anderson
4a78f9b166
core: Demode option
2012-09-23 17:15:00 -07:00
Niko Matsakis
ba3eebd41d
Make it illegal to use modes in a fn signature with providing
...
an explicit variable name. (Step one to changing the defaults)
First step to #3535
2012-09-23 13:30:13 -05:00
Niko Matsakis
3d59ac3a19
De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachi
2012-09-21 19:13:55 -07:00
Patrick Walton
d48396c986
libcore: De-mode str
2012-09-21 18:37:06 -07:00
Graydon Hoare
dffe188991
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
2012-09-21 18:11:43 -07:00
Patrick Walton
9117dcb968
rustc: De-mode all overloaded operators
2012-09-20 09:48:05 -07:00
Brian Anderson
74dbdecb59
Remove old stage0 compat gunk
2012-09-19 19:25:29 -07:00
Brian Anderson
80524d3ad3
std: Demode test
2012-09-19 19:12:35 -07:00
Brian Anderson
c946f65d41
std: Mostly demode net::tcp
2012-09-19 19:12:35 -07:00
Brian Anderson
2792071bd2
std: Demode uv::global_loop
2012-09-19 19:12:35 -07:00
Brian Anderson
677792c6b1
std: Demode uv::iotask
2012-09-19 19:12:35 -07:00
Brian Anderson
c3f15c0982
std: Partially demode uv::ll
2012-09-19 19:12:34 -07:00
Brian Anderson
1643794e01
std: Demode bitv
2012-09-19 19:08:08 -07:00
Brian Anderson
9173508aa4
std: Demode arena
2012-09-19 18:14:30 -07:00
Niko Matsakis
ebd3203eaf
repair broken map test; it seems that the original test relied on hokey
...
hash fns in order to setup conflicts. I just removed those asserts,
so the test is not as good as it once was.
2012-09-19 17:47:13 -07:00
Niko Matsakis
cfed923600
demode the each() method on vec and other iterables.
2012-09-19 17:03:01 -07:00
Brian Anderson
1c39f1968c
std: Clean up crate description
2012-09-19 16:52:59 -07:00
Graydon Hoare
5e41739562
Remove final bits of residual hokey-hash functions. Close #1616 .
2012-09-19 16:35:53 -07:00
Graydon Hoare
1ffd90edbc
Remove redundant hashmap constructor functions.
2012-09-19 15:51:44 -07:00
Philipp Brüschweiler
d3e0a06578
V2: now with more locks!
2012-09-19 14:01:53 -07:00
Philipp Brüschweiler
68e755b1c2
core: Allocate threads on demand, not on scheduler startup
...
API change: rust_kernel::create_scheduler() or
rust_scheduler::rust_scheduler() respecitevly now take ownership of the
launch factory argument, it is needed to create new threads on demand.
Also renames rustrt::sched_threads() to rustrt::rust_sched_threads() for
consistency. Added rustrt::rust_max_sched_threads() to return the
maximal number of scheduled threads of the current scheduler.
Fixes #3493 .
2012-09-19 14:01:53 -07:00
Niko Matsakis
9cf271fe96
De-mode vec::each() and many of the str iteration routines
...
Note that the method foo.each() is not de-moded, nor the other
vec routines.
2012-09-19 10:52:59 -07:00
Niko Matsakis
8d4928f780
Revert "replace explicit calls to vec::each with vec::each_ref, partially demode str"
...
This reverts commit 1be24f0758
.
Not quite ready.
2012-09-18 21:41:13 -07:00
Niko Matsakis
1be24f0758
replace explicit calls to vec::each with vec::each_ref, partially demode str
2012-09-18 21:31:00 -07:00
Brian Anderson
2906f2de31
core: Rename 'unsafe' mod to 'cast'
2012-09-18 19:36:25 -07:00
Patrick Walton
e653d493fb
rustc: Remove legacy mode inference, unless #[legacy_modes] is used
2012-09-18 15:53:04 -07:00
Brian Anderson
d53cfd225a
core: Move Exclusive and SharedMutableState to the private mod
2012-09-18 15:23:57 -07:00
Erick Tryzelaar
d0d68c6036
libcore: make a copyless io::BytesWriter
2012-09-18 12:56:57 -07:00
Brian Anderson
2cdb23bbc0
Replace uses of 'unchecked' with 'unsafe'
2012-09-18 11:31:57 -07:00
Brian Anderson
5c18bf6cdd
core: Rename at_vec::unsafe to raw
2012-09-18 11:19:17 -07:00
Erick Tryzelaar
10e317de54
vec::u8 => vec::bytes ( #3444 )
2012-09-15 13:38:41 -07:00
Erick Tryzelaar
b73f801cc1
int/uint parse_buf => parse_bytes ( #3444 )
2012-09-15 13:38:41 -07:00
Graydon Hoare
c5347b4bf9
Fix implicit-instantiation of non-implicitly-copyable warnings.
2012-09-13 19:53:30 -07:00
Niko Matsakis
2f6b66ecd3
s/vec::as_buf/vec::as_imm_buf/, fix comment, remove set.rs
...
hat tip to @jruderman
2012-09-13 13:24:33 -07:00
Kevin Cantu
c43426e35b
CamelCase and demode json.rs and deque.rs
2012-09-13 12:05:03 -07:00
Brian Anderson
308ca06012
Rename str::unsafe to str::raw
2012-09-12 19:55:16 -07:00
Brian Anderson
ff54ac8e59
Rename vec::unsafe to vec::raw
2012-09-12 17:45:36 -07:00
Brian Anderson
7568dd4564
Promote 'const', 'copy', 'fn' to strict keywords
2012-09-12 16:00:22 -07:00
Niko Matsakis
5d540de769
fixup mutability of vec::each, make iter_bytes pure
...
also, change DVec() to work with imm vectors rather than mut ones
2012-09-12 13:29:31 -07:00
Niko Matsakis
8a8f200d10
Introduce auto adjustment table to subsume autoderef/autoref/borrowings.
...
Fixes #3261
Fixes #3443
2012-09-11 21:25:01 -07:00
Tim Chevalier
c087886e93
Make moves explicit in arguments
2012-09-11 20:02:34 -07:00
Brian Anderson
ea01ee2e9e
Convert 'use' to 'extern mod'. Remove old 'use' syntax
2012-09-11 19:25:43 -07:00
Brian Anderson
fb851242b7
Promote 'pub' and 'priv' from restricted to strict keywords
2012-09-11 18:17:26 -07:00
Brian Anderson
cd8ec6d923
Fix ebml tests
2012-09-10 19:36:11 -07:00
Brian Anderson
298eb8c726
Convert 'import' to 'use'. Remove 'import' keyword.
2012-09-10 19:04:26 -07:00
Brian Anderson
1a8a0a77b1
Camel case std::serialization
2012-09-10 19:02:57 -07:00
Tim Chevalier
9869d071d1
Make remaining moves explicit in libstd
2012-09-10 17:51:24 -07:00
Brian Anderson
cb7a5395dd
Convert std::map to camel case
2012-09-10 17:08:36 -07:00
Niko Matsakis
29003c799f
Rename the poorly named Managed<T> type to Mut<T>.
...
The Mut<T> type is intended to allow freezable data stuctures to be stored in
`@mut` boxes. Currently this causes borrowck to be very conserivative since it
cannot prove that you are not modifying such a structure while iterating over
it, for example. But if you do `@Mut<T>` instead of `@mut T`, you will
effectively convert borrowck's static checks into dynamic ones. This lets
you use the e.g. send_map just like a Java Map or something else.
2012-09-10 16:50:07 -07:00
Brian Anderson
93d3b8aa6b
Convert class methods to impl methods. Stop parsing class methods
2012-09-10 16:13:08 -07:00
Brian J. Burg
10a7865428
Provide naive implementations of cmp::Eq and to_bytes::IterBytes for net::url::Url
2012-09-10 14:20:39 -07:00
Patrick Walton
22b8757705
rustc: Make shape-based compare glue never called for comparison operators.
...
Only called for string patterns.
2012-09-10 12:48:42 -07:00
Patrick Walton
e5cb6cc123
libstd: Fix botched exports for net_tcp
2012-09-09 21:58:28 -07:00
Brian Anderson
9007afab0a
std: warn(non_camel_case_types) -> deny
2012-09-09 15:00:29 -07:00
Jeff Olson
9ee7b31414
std: cleanup in sync.rs for things missed in last rebase
2012-09-08 14:22:15 -07:00
Brian Anderson
3bd1f32cd9
Convert all kind bounds to camel case. Remove send, owned keywords.
2012-09-07 18:10:11 -07:00
Brian Anderson
2810ea9a68
Convert 'again' to 'loop'. Remove 'again' keyword
2012-09-07 17:39:03 -07:00
Graydon Hoare
5d823d46ad
Migrate std::map to use core: #️⃣ :Hash trait. Disable many hokey hashes.
2012-09-07 17:24:16 -07:00
Brian Anderson
f0eae8f1c1
Convert field terminators to commas. Stop parsing semis.
2012-09-07 16:12:15 -07:00
Brian Anderson
2572e80355
Remove 'let' syntax for struct fields
2012-09-07 14:02:33 -07:00
Patrick Walton
feb014eb3c
rustc: Add an "ne" method to the Eq trait, and implement it everywhere
2012-09-07 12:24:48 -07:00
Tim Chevalier
55bd6cee2f
Test that merge sort is stable -- thanks to Jesse Jones
...
Closes #3399
2012-09-06 12:11:48 -07:00
Niko Matsakis
5e36a99794
Refactor trans to replace lvalue and friends with Datum.
...
Also:
- report illegal move/ref combos whether or not ref comes first
- commented out fix for #3387 , too restrictive and causes an ICE
2012-09-06 06:11:12 -07:00
Patrick Walton
47dac47e96
rustc: "import" -> "use" in .rc files
2012-09-05 11:46:25 -07:00
Brian Anderson
a618d0d7ce
std: Convert test to camel case
2012-09-04 18:26:30 -07:00
Brian Anderson
9c988eb40d
Whitespace
2012-09-04 17:54:20 -07:00
Brian Anderson
eb0cf3a715
std: Remove struct ctors
2012-09-04 17:27:03 -07:00
Brian Anderson
c491bf939e
std: Camel case smallintmap
2012-09-04 16:04:10 -07:00
Brian Anderson
8182497359
std: Camel case sort
2012-09-04 14:37:47 -07:00
Brian Anderson
0684c065a9
std: Camel case treemap
2012-09-04 14:35:43 -07:00
Brian Anderson
3764fe3f2a
std: Camel case list
2012-09-04 14:12:49 -07:00
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
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
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
Brian Anderson
74c69e1053
Convert more core types to camel case
2012-08-15 14:14:20 -07:00
Tim Chevalier
51d98d9c7b
Expunge match checks
2012-08-15 12:38:32 -07:00
Ben Blum
a57d3e0c15
Fix :broadcast_heavy in condvars.
2012-08-15 14:11:39 -04:00
Ben Blum
5f64d5df33
sync+arc - comments and attributes only
2012-08-15 13:55:43 -04:00
Ben Blum
f29f308c1c
Enable multiple condvars on a single mutex_arc/rw_arc.
2012-08-15 13:22:50 -04:00
Ben Blum
d1fc7368c8
Enable multiple condvars on a single mutex/rwlock.
2012-08-15 13:22:50 -04:00
Ben Blum
fa8fc4b2b5
Add 1shot pipe chan_one/port_one type aliases and convert std::sync to use them
2012-08-15 13:22:50 -04:00
Brian Anderson
11258310e2
Convert more core types to camel case
2012-08-14 18:26:03 -07:00
Graydon Hoare
c1fad07758
Add a map::str_slice_map constructor to libstd.
2012-08-14 16:45:51 -07:00
Ben Blum
958df4b003
De-mode comm, libc, priv, rt, sync, arc. Super easy.
2012-08-14 19:36:04 -04:00
Ben Blum
821fa337ff
add sync::tests::test_mutex_killed_broadcast
2012-08-14 19:32:52 -04:00
Ben Blum
589ee65fd4
Add rw_arc.downgrade() + std and cfail tests. Tons of region FIXMEs... (cf #2282 , #3154 )
2012-08-14 17:53:18 -04:00
Graydon Hoare
36883186ab
De-mode core::future.
2012-08-13 19:08:02 -07:00
Brian Anderson
5394e34aa4
core: Camel case some lesser-used modules
2012-08-13 18:59:48 -07:00
Brian Anderson
6b43c0c1ad
Stop parsing old operator overloading syntax
2012-08-13 18:59:17 -07:00
Graydon Hoare
91612dbb7e
De-mode-ify a few minor libcore modules.
2012-08-13 17:11:33 -07:00
Ben Blum
52255f898c
Enable condvars on ARCs
2012-08-13 19:45:48 -04:00
Patrick Walton
5bd4110170
rustc: Mostly implement region-bounded stack closures
2012-08-13 15:34:36 -07:00
Ben Blum
6e93d67dba
Add more rwlock tests
2012-08-13 17:31:28 -04:00
Ben Blum
7cf21e52eb
Implement rwlock.downgrade and tests
2012-08-13 17:31:24 -04:00
Ben Blum
3dbce4ebea
minor fix to rwlock.read()
2012-08-13 17:18:23 -04:00
Brian Anderson
ac4132b7fd
std: Add tests for cell. Fix a logic error
2012-08-12 16:36:07 -07:00
Brian Anderson
78d19d8f1b
std: Add cell to the std crate and make it build
2012-08-12 16:26:45 -07:00
Chris Peterson
06b2804c27
std: Update timespec comments to say "nanoseconds"
2012-08-11 13:02:08 -07:00
Ben Blum
0eae571389
Implement mutex_arc and rw_arc; add some tests
2012-08-10 20:53:09 -04:00
Ben Blum
42825fbea6
Split libcore/arc.rs: arc -> std::arc; exclusive -> unsafe::exclusive
2012-08-10 20:53:09 -04:00
Patrick Walton
b9b0d374d3
libstd: Implement cells as a nicer replacement for the option dance
2012-08-09 19:45:05 -07:00
Graydon Hoare
800de26372
Remove obsolete FIXMEs, close #2345 .
2012-08-08 18:40:30 -07:00
Brian Anderson
6a0720b439
Convert impls to new syntax
2012-08-08 18:19:24 -07:00
Brian Anderson
2772b2e5c7
syntax: Make match arm parsing more restrictive again
...
Require comma separators for all expression types except the plain block
2012-08-07 12:23:43 -07:00
Ben Blum
18ac4a8e6d
Change task().future_result's argument mode
2012-08-07 14:26:41 -04:00
Brian Anderson
ecaf9e39c9
Convert alt to match. Stop parsing alt
2012-08-06 15:36:30 -07:00
Brian Anderson
d3a9bb1bd4
std: URL paths can contain dashes
2012-08-06 15:17:08 -07:00
Brian Anderson
1e3143b34e
std: Parse underscores in url paths
2012-08-06 13:12:49 -07:00
Brian Anderson
025d86624d
Switch alts to use arrows
2012-08-05 22:08:09 -07:00
Brian Anderson
3fe1c7071d
std: Some fixes to url parsing
2012-08-05 16:33:28 -07:00
Brian Anderson
dbf58716df
std: URLs without schemes parse as errors. Closes #3112
2012-08-05 13:48:29 -07:00
Brian Anderson
903068c132
Long lines
2012-08-03 11:46:31 -07:00
Daniel Patterson
7e43f8f8dc
std::net::url - change alt to match, ret to return, as per recent syntax changes
2012-08-03 11:28:19 -07:00
Daniel Patterson
64eb497d34
std::net::url - eliminate out of date comment and switch to str::each_chari instead of str_reader to make code cleaner
2012-08-03 11:28:19 -07:00
Daniel Patterson
8e3105b6db
std::net::url - fix to_str to work with authorityless urls, add test
2012-08-03 11:28:19 -07:00
Daniel Patterson
21187206c3
std::net::url cleanups for lint check
2012-08-03 11:28:19 -07:00
Daniel Patterson
b57f6b73ba
std::net::url - making parsing of authority give error messages if in encounters invalid stuff; support for ipv6, more tests.
2012-08-03 11:28:19 -07:00
Daniel Patterson
d60dd6be87
std::net::url making scheme parsing compliant with rfc, give appropriate error messages, better split fn
2012-08-03 11:28:19 -07:00
Daniel Patterson
e349201bc2
std::net::url - comment cleanup, new test
2012-08-03 11:28:18 -07:00
Daniel Patterson
ef46314d1e
std: integrating erickt's url encoding/decoding from github.com/erickt/rust-uri into std::net::url
2012-08-03 11:28:18 -07:00
Patrick Walton
dfe1f6260e
rustc: Remove all fixed-length strings from our codebase
2012-08-03 11:22:35 -07:00
Tim Chevalier
948172b93f
Make comparisons between region pointers work
...
Region pointers were considered a scalar type, so compare_scalar_type would
get called to compare region pointers in trans. This would fail, since
compare_scalar_type has no case for region pointers.
Changed type_is_scalar to return false for region pointers. This had the side
effect of breaking casts to types of the form &T. To ameliorate that, I added
library functions ptr::assimilate (taking a &T to a *T) and ptr::to_uint
(taking a &T to a uint), both of which use reinterpret_cast.
While I was at it, I removed ty::type_has_resources, which is dead code.
2012-08-02 23:53:45 -07:00
Niko Matsakis
31c5cec55b
Purge placement new; Make borrowck know about unary move.
...
cc #3071
2012-08-02 22:36:36 -07:00
Niko Matsakis
97452c0ca1
Remove modes from map API and replace with regions.
...
API is (for now) mostly by value, there are options to use it by
reference if you like. Hash and equality functions must be pure
and by reference (forward looking to the day when something
like send_map becomes the standard map).
2012-08-02 15:53:28 -07:00
Ben Blum
63b70b2370
Remove std::util
2012-08-02 14:31:58 -04:00
Brian Anderson
b355936b4d
Convert ret to return
2012-08-01 19:16:06 -07:00
Graydon Hoare
7f60c56c3e
Clean out transitional lint.
2012-08-01 13:35:40 -07:00
Brian Anderson
7b2026bf21
Introduce 'return', 'match' and 'module' as synonyms
2012-07-31 17:22:30 -07:00
Brian Anderson
f35abae892
std: getopts::match -> matches
2012-07-31 13:19:00 -07:00
Lindsey Kuper
439afaa329
Change remaining "iface" occurrences to "trait"; deprecate "iface"
2012-07-31 11:52:16 -07:00
Paul Stansifer
a9cc5066ee
Change syntax extension syntax: #m[...]
-> m!{...}
.
2012-07-30 18:38:15 -07:00
Ben Blum
52ed570f1c
Move send_map to libcore
2012-07-30 13:56:14 -04:00
Tim Chevalier
082d8314da
Rewrite bitv to use classes and optimize its representation
...
Rewrote bitv as a class that uses a 32-bit int as its representation
for bit vectors of 32 bits or less, and a vector (the old representation)
otherwise. I didn't benchmark very much, but a bit of informal benchmarking
suggested this is a win.
Closes #2341
2012-07-29 18:39:15 -07:00
Brian Anderson
725a73c4d5
std: Implement to_str for net::url::url
2012-07-28 16:05:06 -07:00
Patrick Walton
afe7757525
libstd: Fix missing export from URL module
2012-07-27 22:23:36 -07:00
Patrick Walton
93c2f5e0e4
rustc: Use coherence for operator overloading.
...
The only use of the old-style impls is now placement new.
2012-07-27 19:35:24 -07:00
Niko Matsakis
e4ab0f665b
change send_map tests to use ~linear_map, much more natural
2012-07-27 15:49:03 -07:00
Niko Matsakis
dd106ba763
export send_map and use fewer impl names
2012-07-27 15:49:03 -07:00
Patrick Walton
01e2471cb7
core: Trait-ify various overloaded operators
2012-07-27 14:52:46 -07:00
Brian Anderson
8fdf77a20d
std: Make url a sendable type
2012-07-27 12:34:55 -07:00
Niko Matsakis
8800413f52
wip: add a sendable hashmap to stdlib
...
caveats:
- not efficient nor heavily tested
- API subject to change and currently incompatible with map
2012-07-27 08:50:50 -07:00
Brian Anderson
97d59a8ade
std: Create correctly-sized buffers on TCP read
2012-07-26 18:40:57 -07:00
Eric Holk
6d142c5e25
Removed the rest of the vec::view calls that were marked with #2880 . Fixes #2880 .
2012-07-26 17:10:48 -07:00
Eric Holk
65beca4e01
Use iteration protocol for ebml, use vec::view in more places (issue #2880 )
2012-07-26 17:10:48 -07:00
Graydon Hoare
dbbaa50290
Nomenclature fixes in the lint checker. Fewer double-negatives.
...
New style is allow(foo), warn(foo), deny(foo) and forbid(foo),
mirrored by -A foo, -W foo, -D foo and -F foo on command line.
These replace -W no-foo, -W foo, -W err-foo, respectively.
Forbid is new, and means "deny, and you can't override it".
2012-07-26 17:08:33 -07:00