Patrick Walton
8ef4551904
rustc: Implement foreign constants.
...
This is needed for a lot of Apple libraries, as Apple tends to put a lot of
globals in dynamic libraries.
2012-08-25 15:09:33 -07:00
Tim Chevalier
33ba097069
Add backquotes to error message
2012-08-25 09:15:26 -07:00
Vincent Belliard
bdbedb9d35
implements issue #2356
2012-08-25 17:01:52 +02:00
Tim Chevalier
5e22fb9c7f
Remove match check
2012-08-24 22:28:12 -07:00
Tim Chevalier
0dad78e03d
Eliminate match checks in trans and typeck
2012-08-24 20:45:30 -07:00
Michael Sullivan
90812c143d
Rework method lookup to properly handle self types for non impl matches. Closes #3268 . Closes #3274 .
2012-08-24 17:57:41 -07:00
Michael Sullivan
6a56212649
A bunch of code refactoring in method matching.
2012-08-24 17:57:41 -07:00
Michael Sullivan
cf62433f43
Comments only: fix a comment in method resolution.
2012-08-24 17:57:41 -07:00
Graydon Hoare
c284b8b1dc
Start using core::path2::Path in a lot of places.
2012-08-24 15:51:16 -07:00
Niko Matsakis
a8f1bee457
fix some unused pattern binding warnings
2012-08-24 15:37:21 -07:00
Michael Sullivan
e55c5ceac2
Infer purity for || style closures. Closes #3023 .
2012-08-24 14:21:27 -07:00
Michael Sullivan
2c96a43cf1
Get rid of the unsafe hacks in resolve3. Closes #3267 .
2012-08-24 14:21:26 -07:00
Elliott Slaughter
7706262a73
rustc: Add flag for enabling GC.
2012-08-24 14:01:27 -07:00
Elliott Slaughter
30768d3609
rustc: Don't emit metadata for default and GC box addrspaces.
2012-08-24 14:01:27 -07:00
Elliott Slaughter
e68db3ad3c
rustc: Fix for updated macro syntax.
2012-08-24 14:01:26 -07:00
Elliott Slaughter
a7a74c79fa
rustc: Emit index of tydescs by addrspace.
2012-08-24 14:01:26 -07:00
Elliott Slaughter
c2e99ba826
rustc: Root resources with addrspaces.
2012-08-24 14:01:26 -07:00
Ben Blum
37bcd67a09
Enforce copyability in bind_by_value match arms ( fix #3255 )
2012-08-24 16:43:03 -04:00
Niko Matsakis
e47d2f6060
extend liveness to treat bindings more like other variables
...
This results in a lot of warnings in rustc. I left them in because
many are bugs and we should fix our code, but Graydon asked that
I not touch every file in the codebase.
2012-08-24 12:55:08 -07:00
Michael Sullivan
0f996f70a6
Remove purity from fn_decl and move it out to containing AST elements.
2012-08-23 19:40:01 -07:00
Ben Blum
673d0d83cf
Less confusing error message when copying into heap closures ( close #2942 )
2012-08-23 22:07:56 -04:00
Niko Matsakis
a08f3a7d4d
More complete fix to #3162 (borrowck bug related to access to rec fields)
2012-08-23 18:54:08 -07:00
Niko Matsakis
5ccf8175a8
don't consider use of @fn
to be region-param'd
2012-08-23 17:55:04 -07:00
Tim Chevalier
6b6bea9531
Add boolean constants as part of const_eval
...
Doesn't exactly eliminate a match check, but simplifies the logic a bit
2012-08-23 17:22:08 -07:00
Niko Matsakis
5eea7d6e61
don't infer region paramaterization for ids in a bound context
2012-08-23 16:22:23 -07:00
Tim Chevalier
9f591319dd
Rename str::bytes to str::to_bytes
...
Closes #3245
2012-08-23 15:46:10 -07:00
Ben Blum
caceac06ce
Remove old-moded atomic intrinsics ( #3200 )
2012-08-23 16:54:25 -04:00
Niko Matsakis
3cf74564b8
update liveness to camel-cased conventions, silence warnings
2012-08-23 12:38:18 -07:00
Paul Stansifer
29f32b4a72
m1!{...}
-> m1!(...)
2012-08-23 11:14:14 -07:00
Michael Sullivan
0f0a9775ba
Some error message cleanup in check.rs.
2012-08-23 10:21:35 -07:00
Niko Matsakis
511e7626ae
Infer variance of types with respect to the region parameter.
...
A similar approach could be used for type parameters.
Fixes #2282 .
2012-08-23 06:30:43 -07:00
Brian Anderson
4ef1d9d5b5
rustc: Remove typestate source
2012-08-22 18:33:19 -07:00
Ben Blum
9f0b3e3164
remove a debug print statement moving out of enums
2012-08-22 21:16:34 -04:00
Ben Blum
37962288ec
Compile moving out of enums ( #2329 )
2012-08-22 20:40:25 -04:00
Ben Blum
5b25fc918a
Parse and typecheck moving out of enums ( #2329 )
2012-08-22 20:40:25 -04:00
Paul Stansifer
1153b5dcc8
intern identifiers
2012-08-22 14:59:25 -07:00
Michael Sullivan
744fea1a4f
Track the type of self properly. Closes #3247 .
2012-08-22 13:18:29 -07:00
Tim Chevalier
7284969292
Eliminate many match checks in rustc
2012-08-22 12:25:08 -07:00
Niko Matsakis
ce3cc46ce6
Fix generation of generic methods with explicit self
...
There used to be two distinct code paths. Now there is one.
2012-08-21 20:15:22 -07:00
Ben Blum
9b489f6fff
Don't refute "()" in let-bindings ( fixes #3104 ).
2012-08-21 21:05:01 -04:00
Ben Blum
f5332769d5
Convert atomic intrinsics away from old argument modes (partial #3200 )
2012-08-21 15:30:53 -04:00
Niko Matsakis
9423302c82
remove trailing whitespace
2012-08-21 11:24:41 -07:00
Niko Matsakis
652b312122
more sound treatment of fn& regions; change all & to be distinct
2012-08-21 10:28:34 -07:00
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
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
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
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
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