Daniel Micay
962a753890
takewhile -> take_while, dropwhile -> skip_while
2013-04-19 07:28:51 -04:00
Daniel Micay
0f85cf180a
iterator: add skip and take
2013-04-19 07:22:20 -04:00
bors
d3a58f3797
auto merge of #5943 : brson/rust/struct-return, r=graydon
...
Mac appears to follow the same ABI as MSVC. This fixes one case
but leaves others broken, like windows.
2013-04-18 19:45:48 -07:00
bors
9618e5b459
auto merge of #5938 : thestinger/rust/iterator, r=pcwalton
2013-04-18 18:51:49 -07:00
bors
225d74f211
auto merge of #5914 : catamorphism/rust/copy-cops, r=catamorphism
2013-04-18 17:51:51 -07:00
Tim Chevalier
3d43af15d8
rustc: Anti-copy police
...
In this case, some copies are still necessary to convert from
a mutable to an immutable @-box. It's still an improvement,
I hope.
2013-04-18 17:40:42 -07:00
bors
df9cc2eb66
auto merge of #5924 : catamorphism/rust/non-fatal-errors, r=catamorphism
2013-04-18 16:57:51 -07:00
bors
50cd218c1e
auto merge of #5920 : catamorphism/rust/rustpkg, r=catamorphism
...
r? @graydon
2013-04-18 16:06:52 -07:00
Tim Chevalier
1aebf30f72
Tidy
2013-04-18 15:24:25 -07:00
Tim Chevalier
62847b0f24
rustc: Make some typechecker errors non-fatal
2013-04-18 15:12:27 -07:00
Brian Leibig
d2718e6324
xfail box and vec debug info tests
2013-04-18 18:05:33 -04:00
Tim Chevalier
18db9a2954
rustc: One less copy
2013-04-18 14:50:29 -07:00
Graydon Hoare
5a3d26f271
core: replace unicode match exprs with bsearch in const arrays, minor perf win.
2013-04-18 14:39:40 -07:00
Graydon Hoare
14b7277c4f
core: add vec::bsearch.
2013-04-18 14:39:40 -07:00
bors
b19c644d54
auto merge of #5921 : brson/rust/pipes, r=brson
...
This builds on #5909 . I've been combing through the pipes code to understand it and started refactoring a bit.
* Removes pipes::spawn_* functions. These are not particularly useful since they deal with low-level pipes types.
* Inlines the protocol-compiled definitions of `oneshot` and `streamp`. These are the only two uses of the protocol compiler in core and I'm inlining them so I can understand what they are doing as I work on pipes. I may un-inline them in the future.
* Removes redundant functions from core::comm
* Change the constructors to use the `new` convention
2013-04-18 14:36:53 -07:00
Brian Anderson
8a6d6dd868
rustc: Fix struct returns on x86 mac for 8-byte structs
...
Mac appears to follow the same ABI as MSVC. This fixes one case
but leaves others broken, like windows.
2013-04-18 14:14:17 -07:00
Brian Anderson
decd3901d5
core::comm: Modernize constructors to use new
2013-04-18 14:07:35 -07:00
Brian Anderson
bc60d84507
core::pipes: Just reordering declarations
2013-04-18 14:07:35 -07:00
Brian Anderson
0617d580e6
core::comm: Remove functions in favor of methods
...
`send`, etc. are never used. I've left the functions for oneshot pipes
because by-value methods don't work.
2013-04-18 14:07:35 -07:00
Brian Anderson
4e22461cd8
core: Remove a stray #[doc(hidden)] attribute
2013-04-18 14:07:35 -07:00
Brian Anderson
056164ac19
core: Inline the protocol definitions of sendp and oneshot
...
I want to be able to see what is going on
2013-04-18 14:07:35 -07:00
Brian Anderson
3dce936753
core: Remove #[doc(hidden)] attributes and atomic wrapper functions from pipes
...
Neither are needed
2013-04-18 14:07:35 -07:00
Brian Anderson
8f2d21dc0d
core: Just reordering some code
2013-04-18 14:07:35 -07:00
Brian Anderson
ab08b4fbfd
core: Remove pipes::spawn_service, spawn_service_recv
...
These are only used in test cases; pipes isn't the right place for them;
they are unnecessary.
Conflicts:
src/libcore/rt/uv/mod.rs
2013-04-18 14:07:35 -07:00
bors
2a86485277
auto merge of #5418 : luqmana/rust/stack-float, r=brson
...
Like I commented in #2043 , I can't reproduce the weirdness from #1388 on either mac or linux (x84_64) and pushing to try gives all green.
That's 128 less bytes to have to keep in the stack for every call to __morestack.
2013-04-18 13:45:55 -07:00
bors
b329f2fa82
auto merge of #5798 : recrack/rust/multiple-errors, r=brson
...
Fix #4569 .
2013-04-18 12:21:57 -07:00
bors
348dc250ca
auto merge of #5939 : brson/rust/xfail, r=brson
...
Disabling them because they are failing on incoming. Looking into a fix now.
2013-04-18 11:21:55 -07:00
Brian Anderson
b18f12fb16
test: xfail-macos some tests that don't work on mac i686
2013-04-18 11:17:34 -07:00
Brian Anderson
2686dcb98e
test: Add more comments about why extern-pass-TwoU64s is xfailed
2013-04-18 11:17:01 -07:00
Daniel Micay
a523abd75c
add dropwhile and takewhile iterators
2013-04-18 13:22:38 -04:00
bors
8796c9fe2d
auto merge of #5935 : bjz/rust/master, r=thestinger
2013-04-18 09:03:55 -07:00
Brendan Zabarauskas
a7f6ec8542
Use assert_eq! instead of assert! and remove extraneous parentheses
2013-04-19 01:37:21 +10:00
bors
e4f35a7326
auto merge of #5933 : huonw/rust/core-read-until-byte, r=thestinger
...
`read_until` is just doing a bytewise comparison. This means the following program prints `xyå12`, not `xy`, which it should if it was actually checking chars.
```rust
fn main() {
do io::with_str_reader("xyå12") |r| {
io::println(r.read_until('å', false));
}
}
```
This patch makes the type of read_until match what it is actually doing.
2013-04-18 08:09:55 -07:00
bors
24fb719b8c
auto merge of #5932 : huonw/rust/core-str-iterator, r=thestinger
2013-04-18 07:12:55 -07:00
Huon Wilson
19cc352302
core: io: the read_until function checks bytes not chars, so type should reflect that.
2013-04-18 23:36:38 +10:00
Brendan Zabarauskas
939a97f5cb
Add #[inline(always)] to each operator method
2013-04-18 23:24:24 +10:00
bors
2c8278746d
auto merge of #5930 : osaut/rust/master, r=thestinger
...
Just small typos I found during my study of rust sources.
I have added the fbuild URL for reader's convenience.
2013-04-18 06:15:54 -07:00
Huon Wilson
c967f2bb1e
core: add a str iterator
2013-04-18 22:56:21 +10:00
bors
938ddeeed6
auto merge of #5929 : intgr/rust/sketch_output, r=thestinger
...
The last line of any command output should always have a newline. Also fixed typo, "on on"
summary of 25 test runs: 4563 passed; 0 failed; 344 ignored
2013-04-18 05:21:55 -07:00
bors
bd75463839
auto merge of #5928 : huonw/rust/core-task-spawn-supervised-doc, r=thestinger
...
The doc-comment didn't reflect the [tasks tutorial](http://static.rust-lang.org/doc/tutorial-tasks.html#failure-modes ), or how it works in practice.
2013-04-18 04:30:54 -07:00
Brendan Zabarauskas
d2a81b95c3
Implement bitwise operator traits for ints and uints
2013-04-18 20:58:58 +10:00
Huon Wilson
f43fc5fff8
libcore: make spawn_supervised documentation reflect its behaviour.
2013-04-18 20:46:23 +10:00
bors
d29ef7ad25
auto merge of #5927 : huonw/rust/core-enumerate-iterator, r=thestinger
2013-04-18 03:42:53 -07:00
Huon Wilson
0ff568a3c1
libcore: add an EnumerateIterator, like Python's enumerate
.
2013-04-18 20:37:27 +10:00
Olivier Saut
a35376e24e
Small typos, year date and URL of the fbuild system for reference.
2013-04-18 11:51:12 +02:00
Marti Raudsepp
5dda8ab129
sketch: Make rust sketch barf output prettier
2013-04-18 12:46:01 +03:00
bors
d32d4d1209
auto merge of #5923 : thestinger/rust/iterator, r=graydon
2013-04-18 01:36:53 -07:00
Youngmin Yoo
6030e3982a
Errors with the same span print the span once
2013-04-18 17:19:41 +09:00
bors
3499a37b06
auto merge of #5919 : catamorphism/rust/gitignore, r=catamorphism
2013-04-18 00:39:54 -07:00
bors
d4daee453c
auto merge of #5918 : catamorphism/rust/Warnings, r=catamorphism
2013-04-17 23:45:57 -07:00