Tim Chevalier
455d73cb86
[libs] Remove unread_byte method from core::io::Reader
...
Method isn't used. See discussion on #2738 and #4031
Closes #2738
2012-11-24 14:39:21 -08:00
Tim Chevalier
55ca36196d
Merge pull request #4026 from eholk/float-perf
...
Inline numeric operations for floats.
2012-11-24 09:01:23 -08:00
Gareth Daniel Smith
f841d43f54
Fix a bug where read(buf, len) would fail if buf was big enough and succeed if it was too small ... which is the opposite of correct.
2012-11-24 15:19:51 +00:00
Eric Holk
c961d214d9
Inline numeric operations for floats.
2012-11-23 13:27:02 -08:00
Graydon Hoare
0c8a009dc9
libcore: fix build breakage on win32 stat.
2012-11-21 15:35:47 -08:00
Erick Tryzelaar
a27f5239bd
libcore: Add stat methods to paths
...
Should we return the posix types, or should we just use i64s?
Should we expose platform specific stat fields?
2012-11-20 16:39:31 -08:00
Erick Tryzelaar
20c11ca757
libcore: add stat functions to libc
2012-11-20 16:39:31 -08:00
Erick Tryzelaar
28745ce7c8
libcore: Clean up the path tests
2012-11-20 16:39:30 -08:00
Erick Tryzelaar
ab5d84258e
Add PosixPath and WindowsPath constructor fns
2012-11-20 16:39:30 -08:00
Erick Tryzelaar
e70b481803
libcore: minor os.rs cleanup
2012-11-20 16:39:30 -08:00
Erick Tryzelaar
079c768df5
libcore: Fix a typo
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
Graydon Hoare
34b7db3bbc
Merge pull request #4001 from jesse99/features/docs
...
Features/docs
2012-11-19 16:10:31 -08:00
Patrick Walton
318e534895
rustc: Implement explicit self for Eq and Ord. r=graydon
2012-11-19 15:33:11 -08:00
Jesse Jones
e5c9a8a479
Fixed lint problems
2012-11-18 17:05:04 -08:00
Jesse Jones
0fd9c9d054
Made from_str pure
2012-11-18 13:25:27 -08:00
Jesse Jones
361aea94f2
Fixing warnings for long and blank lines
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
c5ab47e7ba
Made Result.get, get_ref, is_ok, is_err, and iter methods pure.
...
Note that the function versions were already pure.
2012-11-18 13:25:25 -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
d107e586ea
Documented fmt! expression syntax.
...
Closes #3280
2012-11-18 11:00:39 -08:00
Patrick Walton
64305174c9
librustc: Fix cross-crate reexports. rs=blocking-servo
2012-11-15 17:15:02 -08:00
Tim Chevalier
f67904ca40
Un-ignore test_from_str and test_parse_buf
...
Closes #2609
2012-11-15 16:49:57 -08:00
Graydon Hoare
59a034a63f
rt: bump log levels up by one, fix tautological-compare error (and permit turning off logging entirely).
2012-11-15 12:03:54 -08:00
Brian Anderson
1ead8aa0b5
Merge pull request #3954 from burg/result-chain
...
Fix Result::chain, Result::chain_err to not require Copy bounds.
2012-11-12 18:05:29 -08:00
Brian J. Burg
37ed7fcaae
Fix Result::chain, Result::chain_err to not require Copy bounds.
2012-11-12 17:53:08 -08:00
Brian Anderson
c78020ef4f
Whitespace
2012-11-08 17:11:44 -08:00
Brian J. Burg
a5718ba377
Change option::expect to not require a Copy bound, and move instead.
2012-11-08 16:25:22 -08:00
Patrick Walton
0fc952372a
rustc: Support irrefutable patterns in function arguments. r=nmatsakis
2012-11-07 19:29:30 -08:00
Patrick Walton
2904095570
rustc: Implement the Drop trait. r=brson
2012-11-07 12:34:32 -08:00
Zack Corr
a54d046174
Implement Ptr trait for mutable unsafe pointers. Closes #3926 .
2012-11-07 16:24:29 +10:00
Graydon Hoare
92e3a8c17e
rustc: reuse const vals, translate fn paths as consts. Close #2530 .
2012-11-06 17:13:52 -08:00
Brian Anderson
45a908cad0
Merge pull request #3916 from Dretch/iofix
...
More methods/docs/tests for core::io
2012-11-04 12:51:34 -08:00
Gareth Daniel Smith
fd6f62f9c7
Add more doc-comments for Reader, ReaderUtil, Writer and WriterUtil (loosely associated with issue #2004 ).
2012-11-04 18:11:37 +00:00
Gareth Daniel Smith
0aba903de7
Add size-specific int reading methods to ReaderUtil to match the existing int writing methods in WriterUtil (for issue #2004 ).
2012-11-04 10:14:49 +00:00
Tim Chevalier
563aa0bf6c
Remove the last use of rustrt::rust_compare_and_swap_ptr
...
Closes #3527
r=brson
2012-11-03 14:11:30 -07: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
Gareth Daniel Smith
a42d2d408a
Fix a bug where .write([]) would always fail.
2012-11-03 18:48:02 +00:00
Tim Chevalier
4876eb708c
Fix #1996 (pending snapshot)
...
Change int to uint in some extfmt code. Remove the #[cfg(stage0)] code
after a snapshot.
2012-11-02 12:01:38 -07:00
Patrick Walton
ad02510258
libcore: Implement a memory-safe "each_val" for data in aliasable, mutable locations
2012-11-02 10:17:32 -07:00
Brian Anderson
b62844e755
core: peek returns false for terminated pipes. Closes #3905
2012-11-02 00:57:44 -07:00
Graydon Hoare
b7872fa13e
core: fix breakage from recent merge.
2012-10-30 10:33:19 -07:00
Mahmut Bulut
f938714be1
Remove trait of TimesIx
2012-10-30 15:19:14 +02:00
Mahmut Bulut
ac92cc8898
Removing iter::TimesIx
2012-10-28 22:36:01 +02:00
Tim Chevalier
47baebc68c
Remove un-needed comparisons, suppress warnings
2012-10-27 17:07:45 -07:00
Tim Chevalier
af842bf76c
Rename core::uniq to core::owned
...
No review.
Closes #3841
2012-10-25 14:48:28 -07:00
Patrick Walton
ce23a99925
libcore: Make a few more dvec functions inline. Improves profile of Servo. rs=me
2012-10-25 10:23:37 -07:00
Brian Anderson
b2d5acd6bc
Merge remote-tracking branch 'brson/futures'
2012-10-24 20:29:01 -07:00
Niko Matsakis
1a3a70760b
Implement proper subtyping for region fn types (part of #2263 )
2012-10-24 18:56:31 -07:00
Brian Anderson
d29962f0eb
Move futures to std
2012-10-23 14:46:49 -07:00
Brian Anderson
f500f3f1fb
core: Remove remaining use of Future
2012-10-23 14:21:15 -07:00
Brian Anderson
3e4b2bd2b2
core: Use PortOne instead of Future in future_result
2012-10-23 14:21:15 -07:00
Brian Anderson
f6d2a71436
core: Remove the unused Notification enum
2012-10-23 14:21:15 -07:00
Brian Anderson
b6bde885dc
core: Use less code for option dancing that notification channel
2012-10-23 14:21:15 -07:00
Brian Anderson
84c8549622
core: Replace future_pipe with pipe::oneshot
2012-10-23 14:21:15 -07:00
Brian Anderson
50f9925fab
core: Give future_pipe the same definition as pipes::oneshot
2012-10-23 14:21:15 -07:00
Brian Anderson
8d932160d9
rt: Remove box annihilator
2012-10-23 12:14:46 -07:00
Tim Chevalier
11e92f37c1
Remove uses of binary move - <- - from tests and libraries
2012-10-23 12:10:03 -07:00
Brian Anderson
ce1466fbe5
Tidy
2012-10-22 21:46:30 -07:00
Brian Anderson
b2af873b76
Merge remote-tracking branch 'luqmana/incoming'
2012-10-22 21:44:53 -07:00
Luqman Aden
ed447a7447
Fix compare_and_swap to not break tests.
2012-10-23 00:03:56 -04:00
Brian Anderson
f7c6f867b3
core: Add Result.get_ref method
2012-10-22 18:31:22 -07:00
Graydon Hoare
a605416bb4
core: add condition.raise_default.
2012-10-22 18:22:21 -07:00
Graydon Hoare
705afcd844
core: settle on the trap/in condition convention for now. Implement proper re-raising.
2012-10-22 17:26:36 -07:00
Luqman Aden
48582b360c
Replace rust_atomic_increment/decrement and rust_compare_and_swap_ptr with intrinsics.
2012-10-21 22:43:28 -04:00
Ben Striegel
ac81fff229
Remove old fixed-length vector syntax
2012-10-20 17:50:46 -07:00
Graydon Hoare
89de49cecd
core: add 3rd proposed interface (trap/in) to conditions.
2012-10-19 14:46:49 -07:00
Mahmut Bulut
81e66ae1fb
Renaming trait name UniqueStr to Trimmable
2012-10-19 11:59:40 -07:00
Tim Chevalier
8492a029e8
Fix Windows breakage
2012-10-19 11:44:01 -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
Graydon Hoare
c97944fbf8
core: add potential "simpler interface" to core::condition, also reduce TLS hits.
2012-10-18 20:08:14 -07:00
Graydon Hoare
6c4ad31f76
core: Add type params to condition handling so interface is safe.
2012-10-18 20:08:14 -07:00
Graydon Hoare
acf2d208d6
core: add previous-handler save and restore for proper nesting.
2012-10-18 14:51:20 -07:00
Erick Tryzelaar
eeae55208c
Revert "Simplify str::to_managed"
...
This reverts commit ac50046a11
.
2012-10-18 14:26:06 -07:00
Tim Chevalier
7dda889056
Merge pull request #3803 from tychosci/readclose
...
Make some string operations UTF-8 safe
2012-10-18 14:05:09 -07:00
Erick Tryzelaar
fe41ccec64
Rename str::to_unique to str::to_owned.
2012-10-18 11:04:59 -07:00
Erick Tryzelaar
ac50046a11
Simplify str::to_managed
2012-10-18 11:04:32 -07:00
Erick Tryzelaar
a7ecde3323
libcore: minor code cleanup.
...
This is minor and probably completely inconsequential to performance,
but I find vec::map to be more clear than vec::each and a push.
2012-10-18 10:09:57 -07:00
Erick Tryzelaar
95423d28f2
libcore: call [u8] values bytes, not bufs
2012-10-18 10:09:42 -07:00
Erick Tryzelaar
e3b1471acd
Rewrite io::ByteBuf into a struct
2012-10-18 09:06:53 -07:00
Erick Tryzelaar
b18a15171b
Make with_bytes_reader/with_bytes_writer pure
2012-10-18 09:04:47 -07:00
Tycho Sci
c0cee3ebe4
libcore: Make run::program_output UTF-8 safe
2012-10-18 23:27:55 +09:00
Graydon Hoare
fdd7b4d8f4
core: first working sketch of a condition system.
2012-10-17 16:40:34 -07:00
Philipp Brüschweiler
e7e1bab27f
libsyntax: refactor the parser to consider foreign items as items
...
parse_item_or_view_item() would drop visibility if none of the conditions
following it would hold. This was the case when parsing extern {} blocks,
where the function was only used to parse view items, but discarded the
visibility of the first not-view item.
2012-10-17 15:34:55 -07:00
Tim Chevalier
7dde840dc6
Fix copy warnings in str
2012-10-17 15:34:54 -07:00
Tim Chevalier
d9f1426e69
Fix copy warnings in str
2012-10-17 13:47:45 -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
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
ebce09702f
Merge pull request #3706 from erickt/str-with-capacity
...
libcore: add a str::with_capacity to match the fn in vec
2012-10-17 11:03:58 -07:00
Patrick Walton
91ae5412d8
rustc: Merge module and type namespaces. r=brson
2012-10-15 15:35:36 -07:00
Gareth Daniel Smith
07edf90367
Implement to_managed without using an upcall function, as suggested by brson.
2012-10-13 05:57:13 -07:00
Gareth Daniel Smith
e9caa3fe2e
Add an &str.to_managed method to allow creating non-constant @str values (for issue #3433 ).
2012-10-13 05:57:13 -07:00
Tim Chevalier
30a62793fa
Make moves explicit in core 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
Tim Chevalier
945d57a6ff
Export VecUnboxedRepr from vec so a test case can use it
2012-10-11 17:58:45 -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
27490769ce
Update FIXME number
2012-10-11 16:00:30 -07:00
Tim Chevalier
fc4da29b4f
Update FIXME number
2012-10-11 16:00:30 -07:00
Tim Chevalier
71813b3793
Exports are fixed, hooray
2012-10-11 16:00:30 -07:00