Graydon Hoare
348d07f099
Remove export_map from resolve, just use export_map2.
2012-09-20 13:08:50 -07:00
Patrick Walton
9117dcb968
rustc: De-mode all overloaded operators
2012-09-20 09:48:05 -07:00
Niko Matsakis
cfed923600
demode the each() method on vec and other iterables.
2012-09-19 17:03:01 -07:00
Graydon Hoare
1ffd90edbc
Remove redundant hashmap constructor functions.
2012-09-19 15:51:44 -07:00
Graydon Hoare
384906c1e8
Remove unused hokey-hashes from typeck and region inference.
2012-09-19 15:51:44 -07:00
Niko Matsakis
9cf271fe96
De-mode vec::each() and many of the str iteration routines
...
Note that the method foo.each() is not de-moded, nor the other
vec routines.
2012-09-19 10:52:59 -07:00
Niko Matsakis
53abb5edbd
use && for fn() even in legacy mode to work around mem leak
2012-09-19 06:56:29 -07:00
Niko Matsakis
8d4928f780
Revert "replace explicit calls to vec::each with vec::each_ref, partially demode str"
...
This reverts commit 1be24f0758
.
Not quite ready.
2012-09-18 21:41:13 -07:00
Niko Matsakis
1be24f0758
replace explicit calls to vec::each with vec::each_ref, partially demode str
2012-09-18 21:31:00 -07:00
Brian Anderson
2906f2de31
core: Rename 'unsafe' mod to 'cast'
2012-09-18 19:36:25 -07:00
Graydon Hoare
e86e8c16e6
Revert "change relative priority of auto-slice and auto-ptr"
...
This reverts commit 2ac64d91ac
.
2012-09-18 16:41:51 -07:00
Graydon Hoare
9b58369f6b
Treat static slices and rptrs as sendable.
2012-09-18 16:28:16 -07:00
Patrick Walton
e653d493fb
rustc: Remove legacy mode inference, unless #[legacy_modes] is used
2012-09-18 15:53:04 -07:00
Niko Matsakis
2ac64d91ac
change relative priority of auto-slice and auto-ptr
...
rationale: if you have an impl for &const ~[T] or &mut ~[T]
and one for &[T], the first will be more likely to work and not lead
to borrowck errors. I could imagine us wanting to offer multiple
impls for methods we select the ptr-to-array when possible and
the slice when necessary. Also, taking a ptr seems like fewer
adaptations than slicing, and we tend to prefer fewer adaptations.
2012-09-18 14:24:52 -07:00
Erick Tryzelaar
d0d68c6036
libcore: make a copyless io::BytesWriter
2012-09-18 12:56:57 -07:00
Brian Anderson
eb35039fe8
Change 'must' to 'should' in non_camel_case_types message
2012-09-18 12:18:00 -07:00
Brian Anderson
2d11a04e74
libsyntax: Remove 'unchecked_blk' from AST
2012-09-18 11:51:17 -07:00
Patrick Walton
c755449fd6
Revert "rustc: Change all non-keyword uses of "link""
...
This reverts commit 3b013cd800
.
2012-09-18 11:47:04 -07:00
Brian Anderson
2cdb23bbc0
Replace uses of 'unchecked' with 'unsafe'
2012-09-18 11:31:57 -07:00
Patrick Walton
3b013cd800
rustc: Change all non-keyword uses of "link"
2012-09-18 11:27:37 -07:00
Niko Matsakis
1af4a70759
Revert "Adapt callee to avoid intermediary for move/copy arguments (cc #3402 )"
...
This reverts commit 044fbea416
.
2012-09-18 10:41:05 -07:00
Brian Anderson
f563c0b525
warn(non_camel_case_types) by default
2012-09-17 18:52:50 -07:00
Niko Matsakis
2469cba0b1
Make auto-slice, auto-ptr not exclusive ( fixes #3514 )
2012-09-17 11:00:50 -07:00
Niko Matsakis
527a6f60f1
WIP: make autoslice, autoptr not be mutually exclusive
2012-09-17 09:49:53 -07:00
Niko Matsakis
e874d37569
add some debug!'s to help diagnose failure of issue-1763.rs
2012-09-15 13:37:35 -07:00
Niko Matsakis
4cad58c464
Fix broken assertion in regionck for code like (a[])()
2012-09-15 12:29:36 -07:00
Niko Matsakis
39d33a653f
regionck: fix bug where autoref regions are not inferred to be large enough
2012-09-15 07:35:09 -07:00
Patrick Walton
73e8ce1e1f
rustc: Back out box annihilator
2012-09-14 19:59:07 -07:00
Patrick Walton
1c5db46f8e
rustc: Call the box annihilator in main
2012-09-14 18:05:15 -07:00
Patrick Walton
ce773352d0
rustc: Make the box annihilator a language item
2012-09-14 16:50:12 -07:00
Niko Matsakis
7107b4eff5
Have parser recognize static, self region.
...
Fixes a bug in methods that &self couldn't be referenced in the
body. Also fixes #2479 .
2012-09-14 15:22:15 -07:00
Niko Matsakis
044fbea416
Adapt callee to avoid intermediary for move/copy arguments (cc #3402 )
2012-09-14 12:03:28 -07:00
Graydon Hoare
120a3dede0
Fix unused variable warning.
2012-09-13 19:53:30 -07:00
Niko Matsakis
0e584f2e74
Fix bug in auto-ref on bounded type parameters
2012-09-13 13:24:34 -07:00
Niko Matsakis
2f6b66ecd3
s/vec::as_buf/vec::as_imm_buf/, fix comment, remove set.rs
...
hat tip to @jruderman
2012-09-13 13:24:33 -07:00
Niko Matsakis
e21b48c0ce
remove commented code that used to cause borrowck error
...
Fixes #2280
2012-09-13 09:14:49 -07:00
Niko Matsakis
34bf0b9e97
trans: overhaul match bindings. No more phi, one code path for guards.
...
Fixes #3256 .
Fixes #3291 .
2012-09-12 18:15:22 -07:00
Brian Anderson
ff54ac8e59
Rename vec::unsafe to vec::raw
2012-09-12 17:45:36 -07:00
Niko Matsakis
7eb10c4ce1
purge the separate path for rel ops (e.g., ==) vs other bin ops
2012-09-12 15:41:22 -07:00
Brian Anderson
fa74edf1a0
rustc: Use the correct 'fail' rtcall
2012-09-12 15:04:40 -07:00
Graydon Hoare
719a4750ba
Add some monomorphizing instrumentation, simplify types before emitting glue.
2012-09-12 14:48:18 -07:00
Niko Matsakis
5d540de769
fixup mutability of vec::each, make iter_bytes pure
...
also, change DVec() to work with imm vectors rather than mut ones
2012-09-12 13:29:31 -07:00
Brian Anderson
8fbe4b5841
Rename core::rt_fail to core::rt_fail_
2012-09-12 11:52:00 -07:00
Tim Chevalier
86e02554fd
Make moves in arguments explicit in libsyntax and rustc
2012-09-12 11:33:40 -07:00
Niko Matsakis
8a8f200d10
Introduce auto adjustment table to subsume autoderef/autoref/borrowings.
...
Fixes #3261
Fixes #3443
2012-09-11 21:25:01 -07:00
Tim Chevalier
02b41097e4
Make the 'move mode but datum will not store' error fatal
2012-09-11 20:02:34 -07:00
Brian Anderson
be1fdf983f
Promote 'impl' from restricted keyword to strict
2012-09-11 19:28:44 -07:00
Brian Anderson
27cc0a36b6
Promote 'struct' from a restricted keyword to a strict keyword
2012-09-11 17:15:33 -07:00
Tim Chevalier
3aa5b0cb44
Make moves explicit in rustc
2012-09-11 13:59:57 -07:00
Patrick Walton
23880daef2
rustc: Remove the cmp type upcall
2012-09-11 12:12:13 -07:00