Graydon Hoare
f0775d7bfe
Finish translating const indexing. Close #1417 , close #570 , close #571 , close #1272 , close #2317 .
2012-08-09 16:05:34 -07:00
Niko Matsakis
22a14dd700
Enforce a stricter notion of purity when borrowing. Fixes #3162 .
2012-08-09 14:23:56 -07:00
Ben Blum
be2e4ef624
Allow failing in arc::exclusive; poison to fail subsequent accesses ( fix #3092 )
2012-08-09 17:22:19 -04:00
Ben Blum
190ecc220a
Make sync primitives fail-unwind-friendly
2012-08-09 17:22:19 -04:00
Eric Holk
6a10e3a713
Added oneshot protocol. Fixes #3125
2012-08-09 11:55:17 -07:00
Lindsey Kuper
812db1ec0d
Example from lkuper's intern talk, but now with static methods!
2012-08-09 11:20:15 -07:00
Lindsey Kuper
8703d088ea
Add example from lkuper's intern talk to the test suite.
2012-08-09 11:10:09 -07:00
Lindsey Kuper
e82d2ef763
Minor cleanup
2012-08-09 11:10:09 -07:00
Niko Matsakis
9a77a17e3b
unxfail-test and try to test for similar conditions as before
...
fixes #2772
2012-08-09 11:00:44 -07:00
Brian Anderson
7bbdf296e0
lint: Don't warn about non-camel case impl names
...
Impls are always named __extensions__ so this warning is bogus
2012-08-08 22:21:47 -07:00
Graydon Hoare
a0e3a2ae8e
Const field access (working) and vec indexing (almost). More for #2317 .
2012-08-08 19:59:30 -07:00
Patrick Walton
5c9c9a6a9f
libsyntax: Parse common enum fields
2012-08-08 19:51:48 -07:00
Brian Anderson
780b3853d1
rustc: Remove some uses of impl_map
2012-08-08 19:27:20 -07:00
Graydon Hoare
71bc2673ed
Fix number-peek code in fmt!, close #1610 .
2012-08-08 18:40:30 -07:00
Graydon Hoare
800de26372
Remove obsolete FIXMEs, close #2345 .
2012-08-08 18:40:30 -07:00
Brian Anderson
ab71c183b9
rustdoc: Update for new impl syntax
2012-08-08 18:19:26 -07:00
Brian Anderson
99a571585c
syntax: Pretty print impls with new syntax
2012-08-08 18:19:26 -07:00
Brian Anderson
436a90e3d7
syntax: Stop supporting old impl syntax
2012-08-08 18:19:26 -07:00
Brian Anderson
43c9c637d3
doc: Update to new trait syntax
2012-08-08 18:19:26 -07:00
Brian Anderson
6a0720b439
Convert impls to new syntax
2012-08-08 18:19:24 -07:00
Eric Holk
e997948c8a
Remove an invalid assert and some commented out code.
2012-08-08 18:03:28 -07:00
Eric Holk
c64ffa4f5b
Updating examples
2012-08-08 18:03:27 -07:00
Eric Holk
c0874dbd21
Adding try_send for pipes::chan and pipes::shared_chan
2012-08-08 18:03:27 -07:00
Patrick Walton
1beb1f491f
etc: Add pub and priv to vim
2012-08-08 17:32:49 -07:00
Brian Anderson
1ffaceb3c8
Merge pull request #3158 from alexrp/incoming
...
Operator-assignment expressions -> Compound assignment expressions.
2012-08-08 17:22:31 -07:00
Patrick Walton
4f98e80db1
rustc: Do some plumbing work in preparation for common fields in enums
2012-08-08 17:15:37 -07:00
Ben Blum
35db5b7be1
Merge pull request #3153 from jruderman/sconv
...
Add spawn_conversation
2012-08-08 17:05:31 -07:00
Ben Blum
904a74e99c
add compile-fail test sync-cond-shouldnt-escape.rs
2012-08-08 19:59:38 -04:00
Ben Blum
604e4add4a
sync: add blocking mutexes, condvars, and testcases
2012-08-08 19:59:38 -04:00
alexrp
d67314d5fc
Operator-assignment expressions -> Compound assignment expressions.
...
Also add note about type.
2012-08-09 01:19:48 +02:00
Lindsey Kuper
edf1d0c245
Minor cleanups/comments/whitespace changes
2012-08-08 16:07:52 -07:00
Lindsey Kuper
293f371477
Default methods in traits get through typeck.
2012-08-08 16:07:52 -07:00
Lindsey Kuper
c8bad36312
Change a match check
to match
2012-08-08 16:07:52 -07:00
Lindsey Kuper
8b79bed6dd
Clean up whitespace
2012-08-08 16:07:52 -07:00
Tim Chevalier
febd7ee239
Make let _ = e; have the same semantics as e;
...
The first case was getting treated like a variable binding, meaning that
if e had a destructor, it wouldn't run until the end of the enclosing scope.
To me it seems less confusing for let _ = e; and e; to work exactly the same
way, so now, the destructor for e runs immediately in both cases.
2012-08-08 15:37:45 -07:00
Brian Anderson
d99ca69cf7
lint: Allow trailing underscores in camel case idents
2012-08-08 15:05:49 -07:00
Graydon Hoare
8d5a51e9d7
Merge pull request #3146 from alexrp/incoming
...
Documentation updates (typestate and pure functions).
2012-08-08 14:58:46 -07:00
Michael Sullivan
79b5f68176
Implement + for @-vectors.
2012-08-08 14:30:45 -07:00
Patrick Walton
f110e8f21c
rustc: Do some plumbing work on nested enums
2012-08-08 14:19:21 -07:00
Jesse Ruderman
a76e4334b3
Add spawn_conversation
2012-08-08 16:57:13 -04:00
Elliott Slaughter
166cb1b28b
rustc: Strict enforcement of glue function types.
...
Make all glue functions take values by alias to remove the need for
bitcasts at the top of every glue function. Use static type
information to produce the correct type for glue functions so that
LLVM can enforce the type system at call sites.
2012-08-08 12:21:25 -07:00
Michael Sullivan
76d04af71a
In decoder, rename class_member_id to item_def_id.
2012-08-08 12:01:19 -07:00
Eric Holk
19c86c1e71
xfail-pretty
2012-08-08 12:00:52 -07:00
Tim Chevalier
c7d60ee053
Don't add struct names to the value name space if there's no constructor
...
Closes #3149
2012-08-08 11:53:08 -07:00
Eric Holk
c5fbff01ce
Add a really optimistic fast path in receive. Gives about a 7% performance improvement in msgsend-ring-pipes
2012-08-08 10:28:57 -07:00
Eric Holk
bc6ba6b091
Adding some examples for my internship presentation.
2012-08-08 10:28:57 -07:00
Niko Matsakis
802ea5d57e
refactor categorization out of borrowck into its own module.
...
first step towards #3148 and #3024 .
2012-08-08 09:22:07 -07:00
alexrp
11c1baa883
Remove remaining references to typestate in the manual.
2012-08-08 13:33:19 +02:00
alexrp
81aef34a5a
Alter the manual to speak of pure functions instead of predicate functions.
...
Since the typestate system is gone, this makes more sense now.
2012-08-08 13:30:31 +02:00
Niko Matsakis
52c517383e
improve borrowck error messages to explain regions better
2012-08-07 20:59:06 -07:00