Tim Chevalier
e958cbe799
Un-xfail issue 2734 test
...
because I guess I forgot to do that when I fixed the bug.
2012-07-10 23:10:21 -07:00
Eric Holk
203da7e814
xfailing pipe-detect-term on Windows, because it requires failure.
2012-07-10 23:02:11 -07:00
Eric Holk
71339d9e69
Pipe code cleanup
2012-07-10 22:00:48 -07:00
Eric Holk
594d9a0554
Use protocol compiler in future.rs. Also split recv into recv and try_recv.
2012-07-10 22:00:48 -07:00
Eric Holk
26e6eb3d14
Handle failure conditions correctly in pipes.
2012-07-10 22:00:47 -07:00
Eric Holk
d07e537fc3
Remember to wake up blocked task on sender terminate.
2012-07-10 22:00:46 -07:00
Eric Holk
1c1b3a3339
Added peek for pipes.
2012-07-10 22:00:46 -07:00
Eric Holk
69cd8b5fcb
Added select2 for pipes.
2012-07-10 22:00:45 -07:00
Eric Holk
801e049617
Added a test case for issue #2834 .
2012-07-10 22:00:41 -07:00
Graydon Hoare
0a4a602a23
Modify reflect interface to pass tydescs back to client, stop on false return.
...
These changes are required to prune type-recursion and admit early
returns in the visitor code. Changes to visitors in subsequent csets.
2012-07-10 15:16:48 -07:00
Michael Sullivan
40fc1737b2
Get rid of places that expected foo.bar to implicitly bind.
2012-07-10 15:12:12 -07:00
Paul Stansifer
54741b9427
Allow defining token tree macros. They should work now!
2012-07-09 17:44:46 -07:00
Graydon Hoare
9b6e90d2b5
Xfail-fast a recent test that doesn't work on check-fast.
2012-07-09 16:08:11 -07:00
Graydon Hoare
3f9a3469c7
Catch one missing residual 'cont' -> 'again' change.
2012-07-09 15:15:39 -07:00
Graydon Hoare
f210deae3d
Merge branch 'incoming' of github.com:/mozilla/rust into incoming
...
Conflicts:
src/snapshots.txt
2012-07-09 14:38:37 -07:00
Graydon Hoare
c26d02557e
Switch 'cont' to 'again' everywhere. Close #2229 .
2012-07-09 14:37:48 -07:00
Niko Matsakis
f72487d196
Remove xfail-test from (now functional) test. Fixes #2323 .
2012-07-09 14:24:25 -07:00
Michael Sullivan
5c914e4a9d
Add clear methods to the tests that make maps.
2012-07-09 14:16:24 -07:00
Brian Anderson
b7a418e194
rustc: Conditionally compile view items. #2357
2012-07-09 14:09:03 -07:00
Brian Anderson
547bf7c350
test: xfail-fast extern-crosscrate
2012-07-09 13:41:32 -07:00
Josh Matthews
a7f6e00944
Fix metadata serialization of foreign functions. Properly take the value of foreign functions from other crates to fix #1840 .
2012-07-09 13:13:49 -07:00
Patrick Walton
e41029d236
rustc: Switch to the new resolution pass
2012-07-09 10:27:13 -07:00
Niko Matsakis
a856bccdc6
Revert "rustc: Switch to the new resolution pass"
...
This reverts commit c4af6e92fb
.
Branch was burning...many, many unresolved imports.
2012-07-06 20:45:06 -07:00
Patrick Walton
c4af6e92fb
rustc: Switch to the new resolution pass
2012-07-06 19:07:26 -07:00
Michael Sullivan
038f925586
Be less eager about implicit borrowing when doing method resolution. Closes #2796 .
2012-07-06 15:55:18 -07:00
Eric Holk
e20f63d095
Bank protocol example from blog post
2012-07-06 15:25:06 -07:00
Michael Sullivan
ee0177b908
Move string append to libraries. Closes #2710 .
2012-07-06 13:37:56 -07:00
Eric Holk
7b03832c95
Updating tests to use pipes.
2012-07-06 10:42:41 -07:00
Eric Holk
f0ef4ef81b
You can have any protocol you want, provided it's pingpong.
...
This integrates the pipe compiler into the proto syntax extension.
2012-07-06 10:42:40 -07:00
Eric Holk
05cdda3a2c
Plumbing and parsing for item-position macros.
2012-07-06 10:42:40 -07:00
Eric Holk
a787f40013
Select on pipes.
...
Updating syntax and test cases.
2012-07-06 10:42:39 -07:00
Eric Holk
a4838c93aa
Enabling pipes for all stages, and updating closure syntax.
2012-07-06 10:42:39 -07:00
Eric Holk
67b0760592
Moved pipes runtime support to libcore, and add a test that will help verify that busy waiting is no longer happening.
...
Fixing the result of a bad merge.
2012-07-06 10:42:39 -07:00
Eric Holk
5d35435fac
send only takes one data argument.
2012-07-06 10:42:38 -07:00
Eric Holk
0ad7ae523c
Macro and iface tricks to simulate self move.
2012-07-06 10:42:38 -07:00
Eric Holk
c2d3cdc3df
Progress towards pipes.
2012-07-06 10:42:38 -07:00
Eric Holk
61be3cc19e
An example using pipes with most of the synchronization code in place.
...
Fixed a bug in the atomic intrinsics where they wouldn't correctly return their old value.
Pipes currently busy wait. The next step is to teach the scheduler how to deal with them.
2012-07-06 10:42:38 -07:00
Eric Holk
4dbd10a702
First example of a program using pipes.
2012-07-06 10:42:37 -07:00
Brian Anderson
9b2d988df0
Fix test that was using rust_task_allow_kill incorrectly
2012-07-05 21:33:47 -07:00
Ben Striegel
d162fa26ba
A new times
method on numeric types
...
This method is intended to elegantly subsume two common iteration functions.
The first is `iter::range`, which is used identically to the method introduced
in this commit, but currently works only on uints. The second is a common case
of `{int, i8, uint, etc.}::range`, in the case where the inductive variable is
ignored. Compare the usage of the three:
```
for iter::range(100u) {
// do whatever
}
for int::range(0, 100) |_i| {
// do whatever
}
for 100.times {
// do whatever
}
```
I feel that the latter reads much more nicely than the first two approaches,
and unlike the first two the new method allows the user to ignore the specific
type of the number (ineed, if we're throwing away the inductive variable, who
cares what type it is?). A minor benefit is that this new method will be
somewhat familiar to users of Ruby, from which we borrow the name "times".
2012-07-05 19:44:20 -07:00
Tim Chevalier
889be71cb4
Comments only: change TODOs to FIXMEs and annotate them
2012-07-05 16:10:29 -07:00
Michael Sullivan
b0d4f09201
Consider slices to be a structural type. Closes #2748 .
2012-07-05 14:48:23 -07:00
Gareth Daniel Smith
be0141666d
convert doc-attributes to doc-comments using ./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-04 19:18:13 -07:00
Brian Anderson
bfa43ca301
Add tests for various ways to write 'do' and 'for' without args
2012-07-04 17:30:46 -07:00
Ben Striegel
f2e2a14f36
Remove empty argument lists from do expressions
2012-07-04 17:21:29 -07:00
Patrick Walton
3f06a8c8d5
test: Try to work around a resolve1 bug in class-cast-to-iface-cross-crate-2
2012-07-03 20:12:01 -07:00
Patrick Walton
d66948604a
test: Fix cyclic import in class-cast-to-iface-cross-crate-2
2012-07-03 18:32:47 -07:00
Patrick Walton
25e0455d04
test: Make tag-exports not use the obsolete tag export syntax
2012-07-03 18:32:47 -07:00
Brian Anderson
41bca84dd9
core: Convert iter::repeat to the for protocol
2012-07-03 17:31:31 -07:00
Brian Anderson
ae6ea068a1
Revert "Remove rule requiring non-nil block-style statements to be semi-terminated"
...
This reverts commit 0f5eaef5fb
.
2012-07-03 17:30:25 -07:00