Commit Graph

12082 Commits

Author SHA1 Message Date
Tim Chevalier
71dbbe145c Make moves explicit in rfail tests 2012-10-12 20:43:38 -07:00
Tim Chevalier
3ebd878f4a Make moves explicit in rpass tests 2012-10-12 20:43:38 -07:00
Tim Chevalier
2145348090 Make moves explicit in cfail tests 2012-10-12 20:43:37 -07:00
Tim Chevalier
f5f3a75b65 Make moves explicit in bench tests 2012-10-12 20:43:37 -07:00
Tim Chevalier
e18c6bb3b6 Make moves explicit in aux test files 2012-10-12 20:43:37 -07:00
Tim Chevalier
d52f988dbb Make moves explicit in rustdoc 2012-10-12 20:43:37 -07:00
Tim Chevalier
90d06b80fd Make moves explicit in std tests 2012-10-12 20:43:37 -07:00
Tim Chevalier
30a62793fa Make moves explicit in core tests 2012-10-12 20:43:37 -07:00
Tim Chevalier
2d7d12b902 Make moves explicit in compiletest 2012-10-12 20:43:37 -07:00
Tim Chevalier
beb7471016 Make moves explicit in cargo 2012-10-12 20:43:37 -07:00
Tim Chevalier
ea5e3d21ff Make moves explicit in doc examples
Had to remove the buffalo example. It was awkward to update for
explicit moves.
2012-10-12 20:43:37 -07:00
Tim Chevalier
d0ed13c4bd Make moves explicit in rustc::middle 2012-10-12 20:43:37 -07:00
Tim Chevalier
c5fa613498 Make moves explicit in libsyntax 2012-10-12 20:43:37 -07:00
Tim Chevalier
335e5ca33b Add a colon, make an error message clearer 2012-10-12 20:43:37 -07:00
Niko Matsakis
98887cc7ee remove ctor from ast (take 2) (no review: just dead code removal) 2012-10-12 19:46:37 -07:00
Niko Matsakis
cb55e246ba Use the Nth impl when translating a static method call, instead
of the 0th.  0th is only correct when there are no bound tps
on the trait.

Fixes #3741.
2012-10-12 17:46:43 -07:00
Graydon Hoare
57b4d10ff6 bump version to 0.5. 2012-10-12 16:41:32 -07:00
Kevin Cantu
1bede1f5e0 Replace several common macros of the form #m[...] with m!(...)
This commit replaces nearly all remaining uses of #fmt, #debug, #error,
and #info, and fixes some error messages...
2012-10-12 14:14:48 -07:00
Tim Chevalier
693866d75e Change FIXME number 2012-10-11 18:09:55 -07:00
Tim Chevalier
44bffd2059 Revert "Use a constant vector for the sudoku board, delete a FIXME"
This reverts commit 06d0bf7555.
2012-10-11 18:08:58 -07:00
Tim Chevalier
55b528484d Re-xfail two tests that I tried to resurrect (no time right now) 2012-10-11 17:59:33 -07:00
Tim Chevalier
2d116db578 Use move instead of ref in select-macro 2012-10-11 17:59:29 -07:00
Tim Chevalier
dd54431df6 Fix pipe-select-macro 2012-10-11 17:59:14 -07:00
Tim Chevalier
945d57a6ff Export VecUnboxedRepr from vec so a test case can use it 2012-10-11 17:58:45 -07:00
Tim Chevalier
3c1ff31f4a Un-XFAIL task-compare 2012-10-11 17:03:56 -07:00
Tim Chevalier
5a849ea8ad Use match move in select-macro, get rid of a FIXME 2012-10-11 17:03:48 -07:00
Tim Chevalier
b24cba877d Un-XFAIL reflect-visit-type 2012-10-11 17:03:29 -07:00
Tim Chevalier
f1de001d69 Annotate FIXMEs in reflect-visit-data 2012-10-11 17:03:02 -07:00
Tim Chevalier
c090dcad84 Uncomment nested module in test, delete a FIXME 2012-10-11 17:02:38 -07:00
Tim Chevalier
06d0bf7555 Use a constant vector for the sudoku board, delete a FIXME 2012-10-11 17:02:12 -07:00
Tim Chevalier
668b39cb5c Use match move in pingpong, delete a FIXME 2012-10-11 17:01:55 -07:00
Tim Chevalier
915897b3df Remove obsolete comment 2012-10-11 16:46:06 -07:00
Tim Chevalier
7509a3d75b Remove obsolete FIXME 2012-10-11 16:46:06 -07:00
Tim Chevalier
97c2255822 Use truncate in typeck::infer; gets rid of FIXME 2012-10-11 16:46:06 -07:00
Tim Chevalier
acaad9381d Remove obsolete comment 2012-10-11 16:46:06 -07:00
Tim Chevalier
41752b02b9 Update FIXME numbers 2012-10-11 16:46:01 -07:00
Tim Chevalier
db679a738f Remove obsolete FIXME 2012-10-11 16:46:00 -07:00
Tim Chevalier
66cea3700e Fix from_buf in test cases 2012-10-11 16:45:57 -07:00
Tim Chevalier
6986acb340 Update FIXME numbers 2012-10-11 16:15:12 -07:00
Tim Chevalier
3764ec7025 Remove obsolete FIXME 2012-10-11 16:11:47 -07:00
Tim Chevalier
63dc83198a Remove obsolete FIXME 2012-10-11 16:10:07 -07:00
Tim Chevalier
fb667cde59 Update FIXME number 2012-10-11 16:10:02 -07:00
Tim Chevalier
72fc2b52db Remove unneeded no_rt flag 2012-10-11 16:06:17 -07:00
Tim Chevalier
ec6311211f Update FIXME number 2012-10-11 16:00:30 -07:00
Tim Chevalier
6854265161 Remove comment that is now false 2012-10-11 16:00:30 -07:00
Tim Chevalier
bfbb7197d7 Update FIXME numbers 2012-10-11 16:00:30 -07:00
Tim Chevalier
d2efd7edf7 Update FIXME number 2012-10-11 16:00:30 -07:00
Tim Chevalier
27490769ce Update FIXME number 2012-10-11 16:00:30 -07:00
Tim Chevalier
fc4da29b4f Update FIXME number 2012-10-11 16:00:30 -07:00
Tim Chevalier
71813b3793 Exports are fixed, hooray 2012-10-11 16:00:30 -07:00
Tim Chevalier
f6606aff6e Remove invalid FIXME 2012-10-11 16:00:29 -07:00
Tim Chevalier
d882274284 Remove Copy bound from std::timer::delayed_send
Closes #3717
2012-10-11 14:17:59 -07:00
Tim Chevalier
1ab914df1d Write option::chain and result::chain with match move
Closes #3590
2012-10-11 14:17:59 -07:00
Tim Chevalier
5a8ba073bc Make to_str pure and fix const parameters for str-mutating functions
Two separate changes that got intertwined (sorry):

Make to_str pure. Closes #3691

In str, change functions like push_char to take an &mut str instead of
an &str. Closes #3710
2012-10-11 14:17:59 -07:00
Luca Bruno
97ecde297e Conditional usage of LLVM DebugFlag
DebugFlag is conditionally exported by LLVM in llvm/Support/Debug.h
in-between an #ifndef NDEBUG block; RustWrapper should not
unconditionally use it. This closes #3701.

Signed-off-by: Luca Bruno <lucab@debian.org>
2012-10-11 07:33:49 +02:00
Kevin Cantu
ae8e6781d2 Move the description of -(W|A|D|F) into the -W help message 2012-10-10 16:48:23 -07:00
Kevin Cantu
c419e77cc1 Touchup the debug flag description printing 2012-10-10 16:38:58 -07:00
Philipp Brüschweiler
25096a212a rustc: fix size computation of structs for the FFI
It didn't take alignment into account.

Fixes #3656.
2012-10-10 22:40:58 +02:00
Graydon Hoare
0d8f447d56 Register snapshots. 2012-10-09 21:46:16 -07:00
Erick Tryzelaar
e325d029d4 Remove old serialization2 vestigial code 2012-10-09 18:03:07 -07:00
Daniel Patterson
c765c59ab1 core::str - making StrSlice trait functions pure 2012-10-09 19:59:17 -04:00
Tim Chevalier
15d8457104 Merge pull request #3700 from erickt/cargo-interner
allow interner cache to be shared across parsers (#3699)
2012-10-09 14:50:01 -07:00
Erick Tryzelaar
bdc1b7a8a7 libcore: add a str::with_capacity to match the fn in vec 2012-10-09 08:52:46 -07:00
Tim Chevalier
22efa39382 Revert "Revert "Remove old auto_serialize2 code (needs snapshot)""
This reverts commit a33535e441.
2012-10-08 17:43:45 -07:00
Tim Chevalier
48495f9f7f Register snapshots 2012-10-08 17:43:45 -07:00
Erick Tryzelaar
6ced454b96 libcore: add pop/swap/consume to SendMap 2012-10-08 14:03:10 -07:00
Tim Chevalier
a477c5af20 Revert "cap-clause-use-after-move: modernize error msg"
This reverts commit bbda995bfe.
2012-10-08 13:11:16 -07:00
Tim Chevalier
5b415c7372 Revert bogus snapshot.py change 2012-10-08 11:59:51 -07:00
Tim Chevalier
a33535e441 Revert "Remove old auto_serialize2 code (needs snapshot)"
This reverts commit 0bd6da8a8c.
2012-10-08 11:58:54 -07:00
Tim Chevalier
73ec5f09b0 Remove extra spaces from snapshots.txt 2012-10-08 11:11:09 -07:00
Tim Chevalier
04a3d9514c Fix typo in linux-i386 snapshot hash 2012-10-08 10:53:21 -07:00
Tim Chevalier
2cee21462f Merge branch 'incoming' into snap-2012-10-05 2012-10-08 10:48:07 -07:00
Erick Tryzelaar
1ac75d2269 allow interner cache to be shared across parsers (#3699) 2012-10-08 10:42:13 -07:00
Tim Chevalier
e3f1d342e7 Merge remote-tracking branch 'erickt/incoming' into snap-2012-10-05 2012-10-08 09:03:26 -07:00
Tim Chevalier
639f568ec9 Register snapshots 2012-10-08 09:02:56 -07:00
Tim Chevalier
7bdab1e4a4 Revert "remove ctor from ast"
This reverts commit ed3689d57c.
2012-10-08 09:00:23 -07:00
Niko Matsakis
bbda995bfe cap-clause-use-after-move: modernize error msg 2012-10-08 08:57:37 -07:00
Erick Tryzelaar
79603f573e libcore: include the trim methods in the StrSlice trait 2012-10-08 08:18:09 -07:00
Erick Tryzelaar
bb1ed97ca2 libcore: str trim functions can be applied to &strs 2012-10-08 08:08:06 -07:00
Niko Matsakis
ed3689d57c remove ctor from ast 2012-10-08 06:36:42 -07:00
Erick Tryzelaar
0e7571b060 libcore Fix the tuple first_ref test 2012-10-07 20:30:17 -07:00
Brian Anderson
e05b5dd053 Merge pull request #3675 from apasel422/kate-fix
update Kate syntax file with latest keywords and types
2012-10-07 19:26:36 -07:00
Erick Tryzelaar
0bd6da8a8c Remove old auto_serialize2 code (needs snapshot) 2012-10-07 17:20:19 -07:00
Erick Tryzelaar
91b7a9a529 libcore: add first_ref and second_ref to tuples 2012-10-07 17:20:19 -07:00
Erick Tryzelaar
eb626e7119 Remove the old serializers (needs snapshot) 2012-10-07 17:20:19 -07:00
Erick Tryzelaar
d301dd3686 remove the old auto_serialize syntax extension 2012-10-07 14:56:18 -07:00
Erick Tryzelaar
e1c517ca48 migrate libsyntax/rustc to auto_serialize2 2012-10-07 10:32:25 -07:00
Simon BD
0e3bec0ced Merge remote-tracking branch 'original/incoming' into incoming 2012-10-06 13:15:18 -05:00
Simon BD
d4a54837d4 Add a test to check that badly written Ord impl do not cause double frees 2012-10-06 13:07:29 -05:00
Simon BD
eee86d4340 Remove debug info 2012-10-06 12:44:56 -05:00
Tim Chevalier
f96a2a2ca1 Remove by-mutable-ref mode from the compiler
and test cases. Closes #3513
2012-10-05 22:45:50 -07:00
Tim Chevalier
05999290e2 Finally removing all uses of by-mut-ref
The code for the mode itself is still there.
2012-10-05 21:03:40 -07:00
Tim Chevalier
688a920045 Register snapshots 2012-10-05 21:02:56 -07:00
Tim Chevalier
28c45601b2 De-mode mysterious unused functions in middle::trans::shape (see comment) 2012-10-05 19:24:04 -07:00
Patrick Walton
b80b0688d5 rustc: Add a new method_self method call origin. Part of default methods. 2012-10-05 18:53:04 -07:00
Patrick Walton
38aab8e400 rustc: Thread a self type through trans_impl; fix cross-crate trait issue 2012-10-05 17:49:13 -07:00
Patrick Walton
d8287f0e41 rustc: Translate default methods on traits for each impl in which they're used instead of once.
This is a step on the way to default methods.
2012-10-05 17:31:46 -07:00
Andrew Paseltiner
84bc74e54a update Kate syntax file with latest keywords and types 2012-10-05 20:28:26 -04:00
Patrick Walton
937f8f4067 test: XFAIL trait-inheritance-simple because of suspected 32-bit brokenness 2012-10-05 17:18:52 -07:00
Tim Chevalier
45345bda6a Remove uses of mutable ref mode.
It's still in the compiler right now, but warned about
2012-10-05 16:57:37 -07:00
Patrick Walton
04497ea7b9 rustc: Implement simple uses of &trait 2012-10-05 16:57:13 -07:00
Tim Chevalier
f8bc0d2545 Revert "wip"
This reverts commit ca49fd402a.
2012-10-05 16:10:08 -07:00
Tim Chevalier
ca49fd402a wip 2012-10-05 15:39:12 -07:00
Tim Chevalier
e16dbb7888 Demode some code using by-mutbl-ref; warn about by-mutbl-ref
The parser now warns about use of mutbl-ref mode, though it's kind
of a lie since this commit doesn't remove support for the mode.

Changed move_val_init to have stage0 and stage1/2 versions, the latter of
which is demoded.

Changed the type that the typechecker expects the move_val_init
intrinsic to have. After this is pushed, I can make a new snapshot,
which will remove the need for the stage0 versions.
2012-10-05 15:37:01 -07:00
Brian Anderson
016875b1b1 std: Silence remaining warnings 2012-10-05 11:59:51 -07:00
Brian Anderson
e46e97fc9a Silence most of the remaining warnings 2012-10-05 11:53:24 -07:00
Patrick Walton
1b732145ec rustc: Implement simple trait inheritance.
Generic trait inheritance, cross-crate trait inheritance, and vtable-based
trait inheritance don't work yet.
2012-10-05 11:52:08 -07:00
Brian Anderson
f8179b6d4d Hack around llvm 14013 2012-10-05 11:32:28 -07:00
Brian Anderson
ba75a3e14c std: Revert demoding of uv_ll. It can't be done without FFI changes 2012-10-05 11:32:00 -07:00
Brian Anderson
8574766033 Update src/README.txt 2012-10-05 04:18:11 -06:00
Brian Anderson
2f6f0b55fc core: Correct description of cast::forget
'managed' means something different now
2012-10-05 01:59:37 -06:00
Tim Chevalier
8fc60af441 Remove by-copy mode from std, mostly
One instance remains in net_tcp due to a foreign fn. Lots of
instances remain in serialization.rs, but IIRC that is being removed.

I had to do unholy things to task-perf-word-count-generic to get it
to compile after demoding pipes. I may well have messed up its
performance, but it passes.
2012-10-04 19:59:47 -07:00
Tim Chevalier
4155a60c75 Fix FIXME that's no longer blocked by #2611 2012-10-04 19:43:32 -07:00
Simon BD
74246d47fd Finish up tests, uncomment when ICE is fixed. 2012-10-04 21:35:03 -05:00
Tim Chevalier
2dfd822962 Fix snapshots.txt date 2012-10-04 17:04:14 -07:00
Tim Chevalier
677c7cd7f5 Register snapshots 2012-10-04 17:01:15 -07:00
Tim Chevalier
202c8fd0eb Kill bootstrapping code in ptr 2012-10-04 16:48:57 -07:00
Tim Chevalier
65c96f849f Forbid deprecated modes again in core
Sadly, there's only one file that requires deprecated modes
(stackwalk)... So, forbid them everywhere else.
2012-10-04 16:48:57 -07:00
Tim Chevalier
fe12da0864 De-mode comm::Chan 2012-10-04 16:48:57 -07:00
Tim Chevalier
777baeb298 Remove code that was waiting for a snapshot
extfmt is now demoded
2012-10-04 16:48:56 -07:00
Graydon Hoare
c37c243e95 Remove some residue, core is effectively de-exported now. Close #3583. 2012-10-04 16:08:08 -07:00
Brian Anderson
2d5cac960d rt: Remove check_claims from the export list 2012-10-04 15:41:14 -07:00
Brian Anderson
c83218de12 core: Improve option docs a little 2012-10-04 15:15:09 -07:00
Brian Anderson
edc317b821 Remove arg vectors from main functions. Stop supporting them. 2012-10-04 15:07:49 -07:00
Brian Anderson
738cd00f1d rt: Remove CHECK_CLAIMS 2012-10-04 14:10:45 -07:00
Graydon Hoare
f05bf26f85 Fix long line. 2012-10-04 14:08:59 -07:00
Graydon Hoare
6ffce1a1c3 De-export extfmt. Part of #3583. 2012-10-04 13:50:02 -07:00
Graydon Hoare
a06b90322c Finish de-exporting std. Part of #3583. 2012-10-04 13:47:24 -07:00
Simon BD
7bd48b92d9 Get tim_sort working, add test for double-freeing elements in tmp 2012-10-04 11:24:55 -05:00
Simon BD
455591d026 Fix my merge 2012-10-04 11:24:38 -05:00
Brian Anderson
83fdeddb91 xfail-pretty reexport-star 2012-10-03 22:10:52 -07:00
Brian Anderson
ae42318bef core: Make some parts of task private 2012-10-03 22:07:11 -07:00
Patrick Walton
c2fc7316a9 test: Fix error message in vtable-res-trait-param 2012-10-03 21:13:58 -07:00
Simon BD
efcd2385ea Merge remote-tracking branch 'original/incoming' into incoming
Conflicts:
	src/libstd/json.rs
	src/libstd/sort.rs
2012-10-03 21:47:09 -05:00
Simon BD
44f8a4401a Backup changes before pull from incoming 2012-10-03 21:41:53 -05:00
Patrick Walton
1c3bfa4550 libstd: Make vec_from_set pure 2012-10-03 19:40:25 -07:00
Patrick Walton
82fd71137a libcore: De-export core.rc and core.rs 2012-10-03 19:40:25 -07:00
Brian Anderson
3ccf6f5932 std: Fix double free in uv 2012-10-03 19:23:34 -07:00
Patrick Walton
d4351c9d39 rustc: Fix ICE when de-exporting rt 2012-10-03 18:15:33 -07:00
Orphée Lafond-Lummis
ae4f8fb87a rustc man page and usage text update.
* Mark --static as experimental;
* Remove --stats, as the option isn't implemented.
* Bold and surround by pointy brackets (<>) all the URLs of rustc man page, for
  consistency.
2012-10-03 20:19:20 -04:00
Patrick Walton
f885205b1b rustc: Unbreak old-style boxed traits 2012-10-03 17:18:24 -07:00
Patrick Walton
b34327be0d rustc: Implement "@Foo as @Bar" for boxed traits 2012-10-03 17:03:29 -07:00
Patrick Walton
d936773e56 test: Add a test case for "pub use a::*" 2012-10-03 17:03:29 -07:00
Graydon Hoare
35598b4595 De-export net::*. Part of #3583. 2012-10-03 17:01:32 -07:00
Tim Chevalier
53906bb4fb Change default mode for fns to be by-copy, except for fn& 2012-10-03 16:34:36 -07:00
Graydon Hoare
a1ab0cd6a8 Sub-uses from libc should be pub. 2012-10-03 15:14:56 -07:00
Graydon Hoare
365f174838 Attempt to fix os::args errors on various platforms. 2012-10-03 15:02:22 -07:00
Brian Anderson
72b7a7707f test: Use println instead of debug in hello.rs 2012-10-03 14:29:59 -07:00
Tim Chevalier
c73e3320f8 Remove crud 2012-10-03 14:28:47 -07:00
Tim Chevalier
b6692500ff Register snapshots 2012-10-03 14:26:50 -07:00