Niko Matsakis
8ee79c79aa
new region inference, seperate infer into modules, improve error msgs
...
Fixes #2806
Fixes #3197
Fixes #3138
2012-08-20 22:00:06 -07:00
Ben Blum
3b09c3deaa
Document arc::unwrap. Close #3123 .
2012-08-20 22:31:17 -04:00
Michael Sullivan
71ec545614
Try to do some resolution of vtables earlier, in a fairly ad-hoc way. Closes #3156 .
2012-08-20 19:00:27 -07:00
Ben Blum
bd736a0f9b
oops, remove #[cfg(stage1)]s from arc::unwrap functions+tests
2012-08-20 22:00:06 -04:00
Ben Blum
1aa50bba7c
Add unwrap for std::arc ARC variants
2012-08-20 21:51:39 -04:00
Ben Blum
05accaa167
implement arc::unwrap and add exclusive_unwrap tests
2012-08-20 21:51:39 -04:00
Ben Blum
842db0b645
register new snapshots
2012-08-20 21:51:26 -04:00
Daniel Patterson
62ea688e50
core: adding option::or, a function to return the leftmost of two some() values or none if both are none
2012-08-20 21:29:41 -04:00
Ben Blum
c321cdbac6
Disallow deconstructing destructing structs ( fixes #3147 )
2012-08-20 20:05:00 -04:00
Ben Blum
849d5649ef
remove fixme in check::alt
2012-08-20 18:25:05 -04:00
Ben Blum
aa3df17445
Re-allow pattern-matching structs ( #3215 )
2012-08-20 18:22:11 -04:00
Kevin Cantu
77ef394d72
Remove deprecated modes from os.rs
2012-08-20 14:11:37 -07:00
Graydon Hoare
08441fca76
Add PosixPath to path2. Add path2 to core build. Add dot/dotdot-normalizing.
2012-08-20 13:59:47 -07:00
Vincent Belliard
076dab92f7
add syntax highlighting file for kate editor
2012-08-20 22:51:02 +02:00
Michael Sullivan
a14485b7fd
Do vtable resolution for *all* method calls, not just statically resolved ones... Closes #3221 .
2012-08-20 13:36:15 -07:00
Michael Sullivan
1300be58d7
xfail crate-method-reexport-grrrrrrr.rs, which has been burning the build for days
2012-08-20 13:22:51 -07:00
Graydon Hoare
3e52a0acde
Initial sketch of path2 module, starting with WindowsPath.
2012-08-17 19:12:08 -07:00
Patrick Walton
19b8598c09
rustc: Implement "priv" for simple items.
...
Inherited privacy doesn't work yet. This probably requires a snapshot since
it won't be backwards compatible. Additionally, two errors are printed instead
of one. For this reason the test is XFAIL'd.
2012-08-17 17:56:47 -07:00
Niko Matsakis
fcb055ef7e
forgotten tests for #3217 , #2977 , #3067
2012-08-17 17:31:03 -07:00
Niko Matsakis
4b1d83ca64
fix deprecated-mode lint warning to consider dtors
2012-08-17 17:31:03 -07:00
Michael Sullivan
457e78cd53
Make by-val explicit self actually work. Closes #2585 .
2012-08-17 17:14:32 -07:00
Michael Sullivan
2b457c2654
Pretty print explicit self types. Work on #2585 .
2012-08-17 17:14:32 -07:00
Michael Sullivan
a65366d548
Parse explicit self in more places. Work on #2585 .
2012-08-17 17:14:32 -07:00
Patrick Walton
0845579130
test: Fix unused variable warning in repeat-to-run-dtor-twice.rs.
...
Hopefully puts out burning tinderbox.
2012-08-17 17:11:25 -07:00
Patrick Walton
6b1a9af173
rustc: Remove all the code dealing with named implementations in resolve3
2012-08-17 17:09:53 -07:00
Patrick Walton
26aaf08ff4
rustc: Remove the impl map
2012-08-17 16:53:07 -07:00
Patrick Walton
10c997a746
rustc: Get rid of the impl_map in the encoder
2012-08-17 16:38:07 -07:00
Patrick Walton
1ed94a5674
rustc: Prevent destructors from being run twice with the repeated vector syntax
2012-08-17 16:12:07 -07:00
Patrick Walton
9ea6b3a32e
rustc: Remove a few allocations from metadata. Shaves a few milliseconds off compilation of hello world.
2012-08-17 15:54:18 -07:00
Patrick Walton
69daeffddb
rustc: Remove a bunch of unused metadata tags from common
2012-08-17 15:25:40 -07:00
Patrick Walton
f79006937a
rustc: Remove tag_paths and all of the associated encoding
2012-08-17 15:23:44 -07:00
Niko Matsakis
ea549e7a71
make borrowck more conservative around rvalues.
...
this will require more temporaries, but is probably less magical.
also, it means that borrowck matches trans better, so fewer crashes.
bonus.
Finally, stop warning about implicit copies when we are actually borrowing.
Also, one test (vec-res-add) stopped failing due to #2587 , and hence I
added an xfail-test.
Fixes #3217 , #2977 , #3067
2012-08-17 15:14:13 -07:00
Patrick Walton
8f01343f01
rustc: Remove resolve_path
2012-08-17 15:07:14 -07:00
Patrick Walton
75d3e3c755
rustc: Remove a user of tag_paths.
...
This commit breaks the item-printing functionality. It will return in a faster
form.
2012-08-17 14:55:52 -07:00
Lindsey Kuper
eb834fdb81
Stop parsing iface
.
2012-08-17 14:32:34 -07:00
Lindsey Kuper
0ace896d1f
Remove a match check
2012-08-17 14:32:34 -07:00
Lindsey Kuper
2b3c86cb02
More and better debug messages for method typechecking
2012-08-17 14:32:34 -07:00
Patrick Walton
6f441e8fde
rustc: Remove lookup_defs; unused.
2012-08-17 14:31:39 -07:00
Patrick Walton
578b7266f2
rustc: Encode reexports in the metadata and don't have each_path search tag_paths
2012-08-17 12:42:45 -07:00
Eric Holk
7bae3449ce
Move select macro into another file, so it can be including in multiple tests.
...
Fixing long lines.
2012-08-17 12:39:51 -07:00
Eric Holk
9260b02daa
Track spans better in the protocol compiler so we can get better error messages.
2012-08-17 12:39:51 -07:00
Ben Blum
89c2a9f4cf
Forbid pattern-matching structs until the next snapshot ( #3215 )
2012-08-17 15:34:06 -04:00
Ben Blum
09cf5c1de4
Work around #3215/#3217 use-after-free in typeck::check::alt
2012-08-17 15:07:09 -04:00
Brian Anderson
5026ea0446
rustc: upcall_alloc_c_stack doesn't exist
2012-08-17 11:43:58 -07:00
Lindsey Kuper
280dfd2d29
Default methods with self-calls make it as far as trans.
2012-08-17 11:04:53 -07:00
Lindsey Kuper
3a5c7f52cc
Change node_id to def_id in self_info.
2012-08-17 11:04:53 -07:00
Brian Anderson
3ab4b014cf
Remove the class keyword
2012-08-17 10:13:45 -07:00
Patrick Walton
6d7b143036
libstd: Add a function to borrow a cell
2012-08-16 19:37:33 -07:00
Ben Blum
0e3825d38c
Add option::get_ref
2012-08-16 21:07:55 -04:00
Ben Blum
a076c287de
Fix issue-506.rs by adding a void-returning stub in the runtime ( close #2957 )
2012-08-16 21:07:55 -04:00
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