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
Patrick Walton
b592d57311
libsyntax: Make include_bin! generate fixed-length vectors.
...
This is so that we don't generate 170,000-line LLVM functions in Servo.
2012-08-16 17:20:08 -07:00
Eric Holk
ca0607051a
Fix compile errors in tutorial tests.
2012-08-16 16:46:20 -07:00
Eric Holk
8bbe70c207
Allocate less on empty reads in procsrv
2012-08-16 16:46:20 -07:00
Eric Holk
b2452896d1
Don't use move, because it is less safe than the unsafe move_it macro.
2012-08-16 16:46:20 -07:00
Eric Holk
942649a260
Make wait_many work on selectable types instead.
...
This should avoid allocation in many select paths.
2012-08-16 16:46:20 -07:00
Eric Holk
924e787119
Add std::comm with DuplexStream
2012-08-16 16:46:19 -07:00
Eric Holk
91622d0310
Make test suite terminate.
2012-08-16 16:26:08 -07:00
Brian Anderson
4e91f299a8
Merge pull request #3209 from mpenet/emacs-melpa
...
emacs rust-mode melpa readme update + improved autoloads
2012-08-16 16:10:49 -07:00
Patrick Walton
be4f9753e4
vim: "ref" and "static" are now keywords; highlight them as such
2012-08-16 15:44:07 -07:00
Graydon Hoare
64de480d46
Another attempt on class-attribute-1.rs.
2012-08-16 15:23:31 -07:00
Patrick Walton
2489baf82e
libsyntax: Fix parsing of "loop unsafe".
...
It was getting misparsed as a label.
2012-08-16 15:19:47 -07:00
Graydon Hoare
b8845f0e25
Fix sub-breakage due to the changed error message.
2012-08-16 14:48:48 -07:00
Graydon Hoare
b28a22005b
xfail-fast issue 3012-2
2012-08-16 14:44:34 -07:00
Graydon Hoare
1bac541e26
Attempt to get issue 3012 test working on win32.
2012-08-16 14:30:14 -07:00
Graydon Hoare
89fb03ae17
Xfail a struct-test I can't figure out how to make work.
2012-08-16 14:26:35 -07:00
Graydon Hoare
0492c75c43
s/class/struct/ in a failing test.
2012-08-16 14:26:10 -07:00
Graydon Hoare
45e7b89279
s/class/struct/ in an error message.
2012-08-16 14:25:53 -07:00
Max Penet
d0c57c39d2
add auto-mode-alist to autoloads
2012-08-16 10:06:18 +02:00
Max Penet
527c21c10e
fix indentation
2012-08-16 08:34:48 +02:00
Max Penet
9b66be0137
add instructions for install from MELPA
2012-08-16 08:12:08 +02:00
Patrick Walton
bf0d4cc035
rustc: Allow external structs to be constructed. Closes #3012 .
...
Embarrassing.
2012-08-15 21:03:40 -07:00
Tim Chevalier
ee2f0dd638
Test case for #3012
2012-08-15 18:34:41 -07:00
Patrick Walton
0d7bef4d48
libsyntax: Fix wrong pretty printing of private fields
2012-08-15 17:48:47 -07:00
Brian Anderson
9c6890f488
Convert more core types to camel case
2012-08-15 17:46:05 -07:00
Brian Anderson
af43613795
Long lines
2012-08-15 17:32:19 -07:00
Patrick Walton
a78030fbaa
libsyntax: Parse tuple and unit structs
2012-08-15 17:11:13 -07:00
Brian Anderson
913f7bdae7
Modify pipec to not emit calls to some and none
2012-08-15 16:53:41 -07:00
Patrick Walton
e1b11aaf4b
test: Fix parsing problem in map-types.rs
2012-08-15 16:51:51 -07:00
Patrick Walton
6319c8fbc4
rustc: Fix long lines and trailing whitespace
2012-08-15 16:25:42 -07:00
Patrick Walton
3038968f28
rustc: Perform some AST surgery to separate out class fields from methods
2012-08-15 16:20:35 -07:00
Patrick Walton
353c632c2d
libsyntax: Parse nested enums
2012-08-15 16:20:34 -07:00
Patrick Walton
bdb206f285
rustc: Parse labeled loop, break, and again
2012-08-15 16:20:34 -07:00
Patrick Walton
d54db12155
rustc: Implement automatic reference for method receivers
2012-08-15 16:20:33 -07:00
Patrick Walton
fe9d07dda6
rustc: "as Trait" can now be written "as @Trait".
...
There is also code for ~Trait and &Trait, but these are currently (incorrectly)
synonyms for "as @Trait" and "as &Trait".
2012-08-15 16:20:31 -07:00
Brian Anderson
fd0f616ceb
pipes: Rename the pipec-generated buffer to __Buffer
...
Conforms to camel case convention and hides it away so it doesn't conflict
with user code
2012-08-15 15:09:39 -07:00
Tim Chevalier
c0140f5c34
Reject empty matches on inhabited types
...
Closes #3096
2012-08-15 14:57:45 -07:00
Brian Anderson
a83414b6e8
lint: Allow leading underscores on camel case types
2012-08-15 14:54:33 -07:00
Brian Anderson
74c69e1053
Convert more core types to camel case
2012-08-15 14:14:20 -07:00
Eric Holk
8be0f665bc
De-mode pipes
2012-08-15 13:58:08 -07:00
Tim Chevalier
51d98d9c7b
Expunge match checks
2012-08-15 12:38:32 -07:00
Tim Chevalier
b0f289397c
In tidy, screen out emacs backup files properly
2012-08-15 12:38:32 -07:00
Eric Holk
1e96099918
Add trace_macros!
2012-08-15 11:45:32 -07:00
Ben Blum
00ef5418d4
Change TLS key type to stack closure
2012-08-15 14:38:38 -04: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
f6f9333d5c
Add cfail test arc-rw-state-shouldnt-escape
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
Ben Blum
a63f85ce8c
add some inlines to shared mutable state
2012-08-15 13:22:50 -04:00
Tim Chevalier
6d68658b9a
Make autoserialize not generate alt checks
2012-08-14 22:13:25 -07:00
Brian Anderson
9f01acacf9
xfail-fast issue-2472
2012-08-14 22:05:26 -07:00
Brian Anderson
83b42c806f
Add test for #2472
2012-08-14 21:17:01 -07:00
Tim Chevalier
fa0e96e0f7
Fix build breakage
2012-08-14 21:13:05 -07:00
Tim Chevalier
ccd36439f7
Make Num::from_int a static method
2012-08-14 20:03:31 -07:00
Tim Chevalier
f78c906535
Add xfailed test for #2123
2012-08-14 20:02:34 -07:00
Tim Chevalier
5de57e278d
Merge branch 'incoming' into reg-snap
2012-08-14 19:40:57 -07:00
Tim Chevalier
476aae16af
Register snapshots
2012-08-14 19:40:23 -07:00
Brian Anderson
11258310e2
Convert more core types to camel case
2012-08-14 18:26:03 -07:00
Michael Sullivan
e640a66eb4
Make most forms of explicit self work. By-value not implemented. Work on #2585 .
2012-08-14 17:40:04 -07:00
Graydon Hoare
4c16ff516d
Convert a couple hundred ~""s to ""s, in trans functions.
2012-08-14 16:45:51 -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
4377802202
De-mode task.rs and add some option::foo_ref() helpers
2012-08-14 19:32:52 -04:00
Ben Blum
821fa337ff
add sync::tests::test_mutex_killed_broadcast
2012-08-14 19:32:52 -04:00
Brian Anderson
4f3aeb4703
Attempt to fix windows bustage
2012-08-14 15:58:21 -07:00
Brian Anderson
2674f7902f
Fix another broken test
2012-08-14 15:15:15 -07:00
Brian Anderson
e79dd23ac1
xfail view-items-at-top
2012-08-14 15:14:01 -07:00
Brian Anderson
ffe74b7a3b
test: Use a mod that exists in view-item-at-top
2012-08-14 15:13:47 -07:00
Brian Anderson
b756c36b52
Fix compiletest breakage
2012-08-14 15:08:08 -07: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
Brian Anderson
1779ab4754
rustdoc: Process markdown pages in sequence. Closes #2484
2012-08-14 14:36:28 -07:00
Brian Anderson
f7b35ebd35
rustdoc: Fix breakage
2012-08-14 14:34:35 -07:00
Graydon Hoare
fe96716a2a
Fix more fallout in rustdoc.
2012-08-14 14:27:46 -07:00
Patrick Walton
138dc3048a
libsyntax: Parse "extern mod foo;"
2012-08-14 14:24:00 -07:00
Brian Anderson
350668579a
Merge pull request #3194 from dbp/pretty
...
Pretty printing brackets on match arms
2012-08-14 13:32:29 -07:00
Graydon Hoare
8e1f1e3b52
Dodge 'use' keyword in testsuite. Was burning tree.
2012-08-14 12:53:45 -07:00
Graydon Hoare
1795cda1b7
De-mode more pieces of core.
2012-08-14 12:15:00 -07:00
Graydon Hoare
1d3b5478fa
Silence unused-variable warning.
2012-08-14 12:15:00 -07:00
Max Penet
ea0157250f
update readme with package.el installation steps
2012-08-14 12:03:02 -07:00
Max Penet
cb542cf433
Add author to meta-data
2012-08-14 12:03:02 -07:00
Max Penet
50faaf421f
update readme
2012-08-14 12:03:02 -07:00
Patrick Walton
30e243a5aa
libsyntax: Give a nice error message when view items are used anywhere other than the top of a module.
...
This is a step on the way to parsing "extern mod foo;"
2012-08-14 11:23:25 -07:00
Patrick Walton
81e6bb1b4b
libsyntax: First steps toward parsing "extern mod std;"
2012-08-14 11:08:15 -07:00
Brian Anderson
fbbe9ac94b
Fix check-fast breakage
2012-08-14 10:46:20 -07:00
Lindsey Kuper
7bb33e6f1b
Add xfail'd test for a default method containing 'self'.
2012-08-14 10:00:31 -07:00
Lindsey Kuper
fb05f57881
Compile default methods; un-xfail default methods test (cc: #2794 ).
2012-08-14 09:02:47 -07:00
Daniel Patterson
62a9e16cb2
syntax: fixing pretty printing of brackets in match arms
2012-08-14 09:40:56 -04:00
Graydon Hoare
8271b3f0c8
More attempts at fixing .. breakage.
2012-08-14 05:17:38 +00:00
Graydon Hoare
96007441e1
fix more fallout from future de-mode-ing.
2012-08-14 04:47:58 +00:00
Graydon Hoare
9c034464fe
fix fallout from future de-mode-ing.
2012-08-14 04:36:52 +00:00
Graydon Hoare
20d622835a
Try to fix pretty-test breakage harder.
2012-08-14 04:17:45 +00:00
Graydon Hoare
ad776421ed
Try to fix pretty-test breakage.
2012-08-14 04:15:21 +00:00
Patrick Walton
80b6850e34
libsyntax: Implement [int*3] syntax for fixed length vector types
2012-08-13 20:00:03 -07:00
Graydon Hoare
36883186ab
De-mode core::future.
2012-08-13 19:08:02 -07:00
Graydon Hoare
bc6eaf2acb
More core mode forbidding.
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
Ben Blum
2e1b98d34f
Change borrowck error 'the the block' -> 'the block'
2012-08-13 21:53:41 -04:00
Brian Anderson
1f32c2c5e4
xfail-pretty run-pass/pipe-select-macro
2012-08-13 18:34:44 -07:00
Patrick Walton
d4012e7895
test: Make issue-2590 conform to the spirit of the test better
2012-08-13 18:15:20 -07:00
Patrick Walton
dfe0ed033f
test: Make issue-2590 test for implicit copies instead of moves.
...
With the removal of modes, function arguments can't demand that their arguments be moved anymore.
2012-08-13 18:11:38 -07:00
Patrick Walton
799bc0a193
libsyntax: Allow "use" to be used in place of "import"
2012-08-13 17:55:54 -07:00
Tim Chevalier
c0858f4f7a
In typeck::collect::ensure_trait_methods, don't assume the trait was already checked
...
Instead of using node_id_to_type to look up the trait type, pass it
in as an argument. This handles the case where we check an impl of a trait T
before T has been traversed.
2012-08-13 17:38:58 -07:00
Patrick Walton
55ee06b8ce
libsyntax: Accept "1..3" as the preferred form of "1 to 3" in patterns
2012-08-13 17:37:08 -07:00
Patrick Walton
36d8682269
test: Fix type error message in an effort to unbreak the build
2012-08-13 17:13:48 -07:00
Patrick Walton
9b5266d745
libsyntax: Refactor item parsing so that items and view items are parsed in the same function.
...
This is a step on the way to "extern mod foo;" and replacing "import" with "use".
2012-08-13 17:12:35 -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
Ben Blum
3a403e36d3
Add pipes::oneshot() to wrap pipes::oneshot::init()
2012-08-13 19:45:48 -04:00
Ben Blum
2ac288383d
Add pipes::oneshot(), pipes::send_one(), pipes::try_send_one() wrappers.
2012-08-13 19:45:48 -04:00
Eric Holk
4ec1dd9914
Got the select macro working.
2012-08-13 16:20:23 -07:00
Eric Holk
8bb5f077c4
Comments describing the packet structures for pipes.
2012-08-13 16:20:23 -07:00
Patrick Walton
6e31183614
test: Modify error messages in some compile-fail tests in an attempt to unbreak the tree
2012-08-13 16:13:12 -07:00
Patrick Walton
87f4c15311
rustc: Make functional record and struct update use ".." instead of "with".
...
"with" is still accepted for backwards compatibility.
2012-08-13 16:07:12 -07:00
Brian Anderson
c7ed9908d6
xfail-fast run-pass/trait-to-str
2012-08-13 15:50:38 -07:00
Patrick Walton
5bd4110170
rustc: Mostly implement region-bounded stack closures
2012-08-13 15:34:36 -07:00
Brian Anderson
395d1ac185
rustc: Enum idents are not in the value namespace. Closes #3186
2012-08-13 15:17:54 -07:00
Brian Anderson
28cd0ad54b
core: Export to_str trait from top level. Closes #3175
2012-08-13 14:58:34 -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
6c4843d9da
Add ptr::ref_eq()
2012-08-13 17:18:24 -04:00
Ben Blum
3dbce4ebea
minor fix to rwlock.read()
2012-08-13 17:18:23 -04:00
Chris Peterson
9470e5d7d5
core: Export f32::ge(), f64::ge(), and float::ge()
2012-08-13 14:03:14 -07:00
Max Penet
d11b7554fd
add Url
2012-08-13 13:53:27 -07:00
Max Penet
a41aa08de9
proper package footer
2012-08-13 13:53:26 -07:00
Max Penet
88918bbefb
initial stab at making rust-mode elpa friendly
2012-08-13 13:53:26 -07:00
Lindsey Kuper
1f52ddfe9e
Add xfail'd test for default methods.
2012-08-13 11:11:09 -07:00
Lindsey Kuper
b1ec0a582e
Default methods get through compilation, but not linkage (cc: #2794 ).
2012-08-13 10:34:35 -07:00
Lindsey Kuper
0e0833e0b0
Change "iid" identifiers (apparently "interface id") to "trait_id"
2012-08-13 10:34:35 -07:00
Michael Sullivan
5fd891f10b
Fix method mode parsing bug. Closes #3191 .
2012-08-13 12:30:07 -05: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
Niko Matsakis
9169a1b26a
correct glb computation, improve region error msgs
...
cc #3180
2012-08-11 20:24:11 -07:00
Niko Matsakis
0475406178
infer: better names, docs
2012-08-11 20:24:11 -07:00
Niko Matsakis
a9979c0ae4
switch over some newtyped enums to structs
2012-08-11 20:24:11 -07:00
Niko Matsakis
6d2bef53aa
rename var_bindings to be less cryptic
2012-08-11 20:24:11 -07:00
Brian Anderson
713487ddd3
Merge pull request #3185 from megakorre/master
...
Removed comma from rust-mode.el
2012-08-11 16:21:10 -07:00
Patrik Kårlin
8d26d86b70
removed a comma from the keyword list to get
...
fn keyword highlighted
2012-08-12 00:19:25 +02:00
Daniel Patterson
f9946f37aa
syntax: better formatting of closures in pretty printer and more verbose debugging messages
2012-08-11 13:04:50 -07:00
Chris Peterson
06b2804c27
std: Update timespec comments to say "nanoseconds"
2012-08-11 13:02:08 -07:00
Eric Holk
c7bdee81e1
Xfail-fast, because these tests use failure
2012-08-10 18:35:41 -07:00
Eric Holk
ebe7b0cc37
Remove print
2012-08-10 18:27:48 -07:00
Ben Blum
67b5d5f673
Fix compile-fail arc/sync tests
2012-08-10 21:24:10 -04:00
Eric Holk
d2e9d99f81
Handle failure during select nicely. Fixes #3176
2012-08-10 18:19:42 -07:00
Patrick Walton
7634e2911b
Revert "rustc: Make function types have vstores in them"
...
This reverts commit 0101125a96
.
2012-08-10 18:14:55 -07:00
Ben Blum
1b32b13c72
Add a can't-nest-rw-arcs test case (xfailed, #3177 )
2012-08-10 20:53:09 -04:00
Ben Blum
0eae571389
Implement mutex_arc and rw_arc; add some tests
2012-08-10 20:53:09 -04:00