Patrick Walton
9e1c9be16f
librustc: Make the Drop trait use explicit self
2012-11-29 11:06:15 -08:00
Brian Anderson
5a282ec26f
core: Convert some records to structs
2012-11-28 21:50:09 -08:00
Brian Anderson
16f72df704
Merge remote-tracking branch 'erickt/time'
...
Conflicts:
src/libstd/time.rs
2012-11-28 14:49:58 -08:00
Brian Anderson
fc06114ddf
Merge remote-tracking branch 'brson/companion' into incoming
...
Conflicts:
src/compiletest/compiletest.rs
src/libcargo/cargo.rs
src/libcore/core.rs
src/librustc/rustc.rs
src/librustdoc/rustdoc.rc
2012-11-28 13:17:33 -08:00
Brian Anderson
8179e268ef
Register snapshots
2012-11-28 12:33:00 -08:00
Patrick Walton
669fbddc44
librustc: Add explicit self to IterBytes. r=nmatsakis
2012-11-28 11:36:04 -08:00
Graydon Hoare
082a88e42c
Merge pull request #4032 from catamorphism/getopts
...
[libstd] getopts, now with fewer copies
2012-11-28 08:47:25 -08:00
Brian Anderson
b21e9d52de
core: Add Clone trait
2012-11-27 11:08:19 -08:00
Erick Tryzelaar
cd6300e938
libstd: turn time::Tm and time::Timespec into structs
...
This avoids #4044 by not using the enum wrapper, and turning Tm_
directly into a struct. Along the way it modernizes the codebase
to eliminate no-implicit-copies warnings.
2012-11-26 22:22:22 -08:00
Jesse Jones
a18f0d413c
Made Tm_ a struct instead of a record and added serialization support to Tm and Tm_.
...
Not entirely clear what the best way to do this is. Right now we persist the entire
struct which seems to be both portable and exactly round-trippable.
2012-11-26 21:49:29 -08:00
Brian Anderson
5c0206a1e4
Rename insert_with functions to update, update_with_key
2012-11-25 13:26:37 -08:00
Kevin Cantu
ff4075e553
Add improvements to insert_with_key
...
This commit adds a lower-level implementation of the generic
`insert_with_key` which I expect to be faster. Now insert could be
defined with insert_with_key, too, although I'm not sure we want to do that.
This also clarifies the tests a bit and adds an `insert_with` function.
2012-11-25 12:41:11 -08:00
Kevin Cantu
7b13ef7d50
Test insert_with_key...
2012-11-25 12:41:11 -08:00
Kevin Cantu
a343e435d5
Add an insert_with_key function to the Map trait
2012-11-25 12:41:11 -08:00
Tim Chevalier
77e5498868
Long lines
2012-11-24 13:59:21 -08:00
Tim Chevalier
ec0c029a7e
Split EBML module into a reader and a writer module
...
Minor refactoring, no review.
Closes #2739
2012-11-24 13:40:00 -08:00
Tim Chevalier
f74fe894fc
[libstd] getopts, now with fewer copies
...
Change the opt_ functions in getopts to take a reference to a
Matches, instead of taking a Matches by-value, as suggested in
2012-11-24 12:52:27 -08:00
Graydon Hoare
dc34fb9219
std: try to fix breakage.
2012-11-22 23:32:30 -08:00
Graydon Hoare
eeb584ccbd
std: initial sketch of workcache, barely does anything.
2012-11-22 18:31:12 -08:00
Erick Tryzelaar
77ef4e7176
change json::Deserializer to take a json enum
...
This allows the deserializer to be used on an already
parsed json object.
2012-11-21 11:48:16 -08:00
Erick Tryzelaar
e1a552a628
libstd: fix warnings in sort
2012-11-20 16:39:30 -08:00
Erick Tryzelaar
9539724e8b
Remove parentheses from closure argument types
2012-11-20 16:39:30 -08:00
Patrick Walton
318e534895
rustc: Implement explicit self for Eq and Ord. r=graydon
2012-11-19 15:33:11 -08:00
Brian Anderson
68c73dc5f2
Whitespace
2012-11-18 15:00:43 -08:00
Tim Chevalier
5e4ed709cb
Merge pull request #3998 from jesse99/feature/getopts
...
Added support for options that take no arguments and may be repeated.
2012-11-18 13:56:57 -08:00
Jesse Jones
361aea94f2
Fixing warnings for long and blank lines
2012-11-18 13:25:26 -08:00
Jesse Jones
333d268b3e
Made merge_sort pure
2012-11-18 13:25:26 -08:00
Jesse Jones
6d99a2f8a9
Made more stuff pure.
...
escape functions in char, io.with_str_reader, base64 and md5sum, cell.empty_cell
and is_empty.
2012-11-18 13:25:26 -08:00
Jesse Jones
15989ecb13
Made most of the URL functions pure.
...
This closes #3782 .
2012-11-18 13:25:25 -08:00
Jesse Jones
2c0dab02ad
Made the time to string functions pure as well as empty_tm.
...
This closes #3919 .
2012-11-18 13:25:25 -08:00
Jesse Jones
c58951ea7d
Replace TmMut with inherited mutability
2012-11-18 13:25:24 -08:00
Jesse Jones
a9e13586a3
Moved strptime and strftime into private helper functions.
...
Makes the public API much easier to see and prepares the way for making them pure.
2012-11-18 13:25:24 -08:00
Jesse Jones
68c852ad3a
Made Map.contains_key, contains_key_ref, and get pure.
2012-11-18 13:25:24 -08:00
Jesse Jones
340955b3a5
Added support for options that take no arguments and may be repeated.
...
Closes #3568 .
2012-11-17 19:43:39 -08:00
Tim Chevalier
9b6f025eb6
Rename thread_pool to task_pool
...
Minor change, no review.
Closes #3972
2012-11-15 12:35:14 -08:00
Brian Anderson
872cb5ee8b
std: Don't use Drop trait in thread_pool
2012-11-14 16:15:35 -08:00
Ben Striegel
4589597785
Convert libstd to use the Drop trait
2012-11-14 16:15:34 -08:00
Brian Anderson
c44c9a47d8
Revert "Convert libstd to use the Drop trait"
...
This reverts commit 28c7a25151
.
2012-11-14 14:51:16 -08:00
Ben Striegel
28c7a25151
Convert libstd to use the Drop trait
2012-11-14 12:40:44 -08:00
Graydon Hoare
4e1ce014c8
cleanup: convert some remaining #foo invocations to foo! form.
2012-11-13 08:57:31 -08:00
Brian Anderson
166c10e666
std: Eliminate copy warning
2012-11-08 17:14:02 -08:00
Brian Anderson
17020244e4
Merge pull request #3923 from am0d/master
...
Fixes issue #3891
2012-11-08 12:35:14 -08:00
a_m0d
062ac8cb97
Fix whitespace issues from previous commits.
...
Also added test for #3891 .
2012-11-07 23:49:01 -05:00
Patrick Walton
70886d314d
libstd: Implement a thread pool. r=brson
2012-11-07 12:05:41 -08:00
a_m0d
d42cf97bcc
Fix trailing whitespace issues
2012-11-06 19:16:01 -05:00
a_m0d
59a592f4c4
Add end_of_file handling to TcpBufferedSocket.
...
This fixes #3891 .
Also removed debug!(...) statement from socket destructor which causes a
crash when the logging level is set to debug.
2012-11-06 19:12:26 -05:00
Brian Anderson
9aadfc3f4b
Make std::rl unsafe. #3921
2012-11-05 11:20:44 -08:00
Brian Anderson
1b0c6665d9
Merge remote-tracking branch 'brson/repl'
...
Conflicts:
mk/install.mk
src/rt/rustrt.def.in
2012-11-04 13:42:39 -08:00
Brian Anderson
799eb105b9
Use a linenoise with win32 support
2012-11-04 13:34:14 -08:00
Zack Corr
a450119b0b
Move rusti::rl to std::rl
2012-11-04 15:40:57 +10:00
Tim Chevalier
a006608276
Remove stage0 stuff that was awaiting snapshot
...
and re-register snapshots
Just removing unneeded code, no review
2012-11-03 14:04:32 -07:00
Graydon Hoare
5e5474e895
std: disable timsort crash-test on windows.
2012-10-29 11:29:27 -07:00
Brian Anderson
c851d2a1bc
std: Fix build errors in sort
2012-10-25 15:34:20 -07:00
Brian Anderson
a9d7642b5d
Merge remote-tracking branch '14427/incoming'
...
Conflicts:
src/libstd/sort.rs
2012-10-25 14:01:49 -07:00
Simon BD
d4432a7974
Remove some unused MergeState code, add a Fixme and remove a workaround involving pure code not being considered pure
2012-10-25 11:30:41 -05:00
Simon BD
f2216ec9d0
Move binarysort out of MergeState
2012-10-24 20:42:41 -05:00
Simon BD
98c8a40828
Remove commented out code
2012-10-24 20:38:34 -05:00
Simon BD
8e6d209914
Remove and comment out more MergeState code
2012-10-24 20:36:10 -05:00
Simon BD
046460c7f6
Remove some code that MergeState used to prevent double frees
2012-10-24 19:21:39 -05:00
Simon BD
19a59cb748
Fix tests for Copy bound
2012-10-24 19:17:24 -05:00
Simon BD
fb61f915db
Add copy bound to sort
2012-10-24 19:15:11 -05:00
Brian Anderson
d29962f0eb
Move futures to std
2012-10-23 14:46:49 -07:00
Brian Anderson
3e4b2bd2b2
core: Use PortOne instead of Future in future_result
2012-10-23 14:21:15 -07:00
Tim Chevalier
11e92f37c1
Remove uses of binary move - <- - from tests and libraries
2012-10-23 12:10:03 -07:00
Simon BD
e0a9d41b04
Re-add bad Ord impl test
2012-10-22 22:04:14 -05:00
Simon BD
254a86e49e
Fix typo
2012-10-22 21:53:37 -05:00
Simon BD
781e446e26
Fix long line
2012-10-22 21:49:47 -05:00
Simon BD
1380776d36
Use explicit self
2012-10-22 21:44:43 -05:00
Simon BD
71c311cec5
Uncomment tests and fix binarysort segmentation fault
2012-10-22 21:42:09 -05:00
Simon BD
cc0f2c6bb2
Merge remote-tracking branch 'original/incoming' into incoming
2012-10-22 18:33:41 -05:00
Simon BD
9aec7a3e85
Fix up tests, export tim_sort
2012-10-22 18:33:28 -05:00
Brian Anderson
191d16265b
std: Shuffle around test ports some more
2012-10-20 18:30:19 -07:00
Brian Anderson
9980f25a02
Long lines
2012-10-20 18:06:01 -07:00
Ben Striegel
ac81fff229
Remove old fixed-length vector syntax
2012-10-20 17:50:46 -07:00
Brian Anderson
8dd8136f91
std: Use unique ports in tcp tests
2012-10-20 17:24:27 -07:00
Luqman Aden
9555ee790f
std: rename getpeername to get_peer_addr
2012-10-20 17:17:10 -07:00
Brian Anderson
781f8cbe4e
std: Add test for getpeername
2012-10-20 17:17:10 -07:00
Luqman Aden
79e538d32a
uv: use just getpeername for both ipv4 and ipv6.
2012-10-20 17:17:10 -07:00
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