]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoMark vec::len as pure
Jesse Ruderman [Sat, 24 Sep 2011 22:10:03 +0000 (15:10 -0700)]
Mark vec::len as pure

12 years agoTweak random thing to make windows build succeed. Awesome.
Brian Anderson [Sat, 24 Sep 2011 21:44:42 +0000 (14:44 -0700)]
Tweak random thing to make windows build succeed. Awesome.

So, a recent commit made syntax-extension-fmt fail under check-fast.
This commit disables lots-a-fail under check-fast and voila! *grumble*

12 years agoMove a previous run-pass test for kind-lowered unique boxes to compile-fail
Brian Anderson [Sat, 24 Sep 2011 09:01:13 +0000 (02:01 -0700)]
Move a previous run-pass test for kind-lowered unique boxes to compile-fail

This test tries to swap unique boxes containing resources, which is not
allowed.

Issue #409

12 years agoTweak the type allocated for unique pointers
Brian Anderson [Sat, 24 Sep 2011 08:52:45 +0000 (01:52 -0700)]
Tweak the type allocated for unique pointers

Seems to be more correctish...

Issue #409

12 years agoSupport non-immediates in unique-box type glue
Brian Anderson [Sat, 24 Sep 2011 06:00:46 +0000 (23:00 -0700)]
Support non-immediates in unique-box type glue

Issue #409

12 years agoVectors containing pinned kinds become pinned
Brian Anderson [Sat, 24 Sep 2011 01:50:00 +0000 (18:50 -0700)]
Vectors containing pinned kinds become pinned

Otherwise they could be copied

12 years agoUnique pointers containing pinned kinds become pinned
Brian Anderson [Sat, 24 Sep 2011 01:13:49 +0000 (18:13 -0700)]
Unique pointers containing pinned kinds become pinned

Issue #409

12 years agoAdd tests for swapping unique boxes
Brian Anderson [Sat, 24 Sep 2011 00:14:41 +0000 (17:14 -0700)]
Add tests for swapping unique boxes

Issue #409

12 years agoAdd rand_util.rs
Jesse Ruderman [Sat, 24 Sep 2011 06:24:43 +0000 (23:24 -0700)]
Add rand_util.rs

12 years agoFuzzer: use different exclusions when testing pretty-printer than when testing compiler
Jesse Ruderman [Sat, 24 Sep 2011 06:23:04 +0000 (23:23 -0700)]
Fuzzer: use different exclusions when testing pretty-printer than when testing compiler

12 years agoAdd vec::filter
Jesse Ruderman [Sat, 24 Sep 2011 02:10:48 +0000 (19:10 -0700)]
Add vec::filter

12 years agort: Sweep in cycle collection
Patrick Walton [Sat, 24 Sep 2011 00:56:55 +0000 (17:56 -0700)]
rt: Sweep in cycle collection

12 years agort: Whitespace police
Patrick Walton [Sat, 24 Sep 2011 00:14:49 +0000 (17:14 -0700)]
rt: Whitespace police

12 years agort: Turn off some debug code
Patrick Walton [Sat, 24 Sep 2011 00:08:50 +0000 (17:08 -0700)]
rt: Turn off some debug code

12 years agort: Get rid of the hack that looks for captured type descriptors adjacent to the...
Patrick Walton [Fri, 23 Sep 2011 23:51:50 +0000 (16:51 -0700)]
rt: Get rid of the hack that looks for captured type descriptors adjacent to the root one for functions and objects

12 years agoAdd libuv upgrade instructions to src/etc/gyp-uv
Erick Tryzelaar [Fri, 23 Sep 2011 23:47:04 +0000 (16:47 -0700)]
Add libuv upgrade instructions to src/etc/gyp-uv

12 years agoUpdate to libuv commit 3ca382.
Erick Tryzelaar [Fri, 23 Sep 2011 23:13:14 +0000 (16:13 -0700)]
Update to libuv commit 3ca382.

This patch changes libuv's gyp build system to
make it's own makefiles. To generate them for rust,
run these commands. They requires python 2.x to
work:

$ mkdir -p src/rt/libuv/build
$ svn co http://gyp.googlecode.com/svn src/rt/libuv/build/gyp
$ ./etc/src/gyp_uv

12 years agoAdd let destructuring for unique boxes
Brian Anderson [Fri, 23 Sep 2011 23:08:30 +0000 (16:08 -0700)]
Add let destructuring for unique boxes

Issue #409

12 years agoAdd missing case for pat_uniq to syntax::visit
Brian Anderson [Fri, 23 Sep 2011 22:58:57 +0000 (15:58 -0700)]
Add missing case for pat_uniq to syntax::visit

Issue #409

12 years agoAdd two tests for sending unique boxes across channels
Brian Anderson [Fri, 23 Sep 2011 22:32:31 +0000 (15:32 -0700)]
Add two tests for sending unique boxes across channels

Issue #409

12 years agoActually use unique boxes in run-fail/unwind-unique
Brian Anderson [Fri, 23 Sep 2011 22:23:44 +0000 (15:23 -0700)]
Actually use unique boxes in run-fail/unwind-unique

12 years agoCreate a bunch of test cases for unique boxes by copying box tests
Brian Anderson [Fri, 23 Sep 2011 21:58:06 +0000 (14:58 -0700)]
Create a bunch of test cases for unique boxes by copying box tests

XFAIL the ones that don't work

Issue #409

12 years agoBegin to support pattern matching on unique boxes
Brian Anderson [Fri, 23 Sep 2011 18:15:17 +0000 (11:15 -0700)]
Begin to support pattern matching on unique boxes

Issue #409

12 years agort: Add missing <stdint.h> in rust_abi.h
Patrick Walton [Fri, 23 Sep 2011 22:14:44 +0000 (15:14 -0700)]
rt: Add missing <stdint.h> in rust_abi.h

12 years agort: Add missing const on the Windows path
Patrick Walton [Fri, 23 Sep 2011 22:08:37 +0000 (15:08 -0700)]
rt: Add missing const on the Windows path

12 years agort: Get RUST_TRACK_ORIGINS working. You can now call 'debug::dump_origin' in gdb...
Patrick Walton [Fri, 23 Sep 2011 22:05:24 +0000 (15:05 -0700)]
rt: Get RUST_TRACK_ORIGINS working. You can now call 'debug::dump_origin' in gdb and get a backtrace saying where a box came from.

12 years agoAdd more unreachable-code tests. Closes #935
Jesse Ruderman [Fri, 23 Sep 2011 22:01:19 +0000 (15:01 -0700)]
Add more unreachable-code tests. Closes #935

12 years agoProperly mark unreachable alt bodies as unreachable
Marijn Haverbeke [Fri, 23 Sep 2011 21:37:15 +0000 (23:37 +0200)]
Properly mark unreachable alt bodies as unreachable

12 years agoMake AddIncomingToPhi take single values rather than arrays
Marijn Haverbeke [Fri, 23 Sep 2011 21:20:19 +0000 (23:20 +0200)]
Make AddIncomingToPhi take single values rather than arrays

12 years agoStart on a piecemeal conversion to DPS
Marijn Haverbeke [Fri, 23 Sep 2011 19:13:50 +0000 (21:13 +0200)]
Start on a piecemeal conversion to DPS

Issue #667

Wires in a basic framework for destination-passing style, with
backwards-compatibility to the old approach, so that expression types
can be moved over to it one at a time (by moving them from trans_expr
to trans_expr_dps).

12 years agoDon't return unused values from zero_alloca and trans_stmt
Marijn Haverbeke [Fri, 23 Sep 2011 19:13:38 +0000 (21:13 +0200)]
Don't return unused values from zero_alloca and trans_stmt

12 years agoFix bug where the type of a function's top-level block wasn't fixed up
Marijn Haverbeke [Fri, 23 Sep 2011 16:54:05 +0000 (18:54 +0200)]
Fix bug where the type of a function's top-level block wasn't fixed up

12 years agort: Factor out stack walking into rust_abi.cpp
Patrick Walton [Fri, 23 Sep 2011 19:48:55 +0000 (12:48 -0700)]
rt: Factor out stack walking into rust_abi.cpp

12 years agoxfail-win32 linked-failure and send-iloop
Brian Anderson [Fri, 23 Sep 2011 19:30:16 +0000 (12:30 -0700)]
xfail-win32 linked-failure and send-iloop

12 years agoDon't pipe check-fast results through tee
Brian Anderson [Fri, 23 Sep 2011 19:17:20 +0000 (12:17 -0700)]
Don't pipe check-fast results through tee

This was having the effect of scrubbing failure error codes. The only affect
of removing this should be that the .out file isn't generated, so subsequent
make invocations will re-run the tests (which is how our other tests work
anyway).

12 years agort: Fix message formatting issues in rust_debug
Patrick Walton [Fri, 23 Sep 2011 19:27:13 +0000 (12:27 -0700)]
rt: Fix message formatting issues in rust_debug

12 years agort: ifdef out backtrace() on Windows
Patrick Walton [Fri, 23 Sep 2011 19:26:41 +0000 (12:26 -0700)]
rt: ifdef out backtrace() on Windows

12 years agort: Fix build bustage due to gcc's format string warnings
Patrick Walton [Fri, 23 Sep 2011 19:09:52 +0000 (12:09 -0700)]
rt: Fix build bustage due to gcc's format string warnings

12 years agort: Add a RUST_TRACK_ORIGINS debug flag to help track down memory corruption
Patrick Walton [Fri, 23 Sep 2011 18:42:20 +0000 (11:42 -0700)]
rt: Add a RUST_TRACK_ORIGINS debug flag to help track down memory corruption

12 years agort: Factor out the logic that handles the various magic debug environment variables
Patrick Walton [Fri, 23 Sep 2011 18:02:04 +0000 (11:02 -0700)]
rt: Factor out the logic that handles the various magic debug environment variables

12 years agort: Remove the problematic min()/max()/align()/abs() macros from isaac/standard.h...
Patrick Walton [Fri, 23 Sep 2011 18:02:58 +0000 (11:02 -0700)]
rt: Remove the problematic min()/max()/align()/abs() macros from isaac/standard.h, as they're unused

12 years agoMore steps to arch-specific target libs (#474)
Graydon Hoare [Fri, 23 Sep 2011 17:50:06 +0000 (10:50 -0700)]
More steps to arch-specific target libs (#474)

12 years agoxfail-pretty unreachable-code.rs
Marijn Haverbeke [Fri, 23 Sep 2011 09:33:11 +0000 (11:33 +0200)]
xfail-pretty unreachable-code.rs

12 years agoProperly check types of do-while condition expr
Marijn Haverbeke [Fri, 23 Sep 2011 09:19:15 +0000 (11:19 +0200)]
Properly check types of do-while condition expr

Closes #956

12 years agoMake sure no dynamic allocas are used before they are allocated
Marijn Haverbeke [Fri, 23 Sep 2011 09:01:09 +0000 (11:01 +0200)]
Make sure no dynamic allocas are used before they are allocated

Closes #965

12 years agoUse a slightly nicer hack to get zero-length strings in trans_build
Marijn Haverbeke [Wed, 21 Sep 2011 15:46:11 +0000 (17:46 +0200)]
Use a slightly nicer hack to get zero-length strings in trans_build

Wrapping calls in str::by_ref(, ...) heap-allocated an empty string
every time (and looked really bad).

12 years agoBetter handling of unreachable code in trans
Marijn Haverbeke [Wed, 21 Sep 2011 10:40:27 +0000 (12:40 +0200)]
Better handling of unreachable code in trans

The builder functions in trans_build now look at an 'unreachable' flag
in the block context and don't generate code (returning undefined
placeholder values) when this flag is set. Threading the unreachable
flag through context still requires some care, but this seems a more
sane approach than re-checking for terminated blocks throughout the
compiler.

When creating a block, if you use its closest dominator as parent, the
flag will be automatically passed through. If you can't do that,
because the dominator is a scope block that you're trying to get out
of, you'll have to do something like this to explicitly pass on the
flag:

    if bcx.unreachable { Unreachable(next_cx); }

Closes #949. Closes #946. Closes #942. Closes #895. Closes #894.
Closes #892. Closes #957. Closes #958.

12 years agoRemove backward-compatible support for 'mutable' before type.
Marijn Haverbeke [Fri, 23 Sep 2011 07:56:08 +0000 (09:56 +0200)]
Remove backward-compatible support for 'mutable' before type.

Closes #966

12 years agoRemove deprecated mutable type constructor from run-pass/issue-511
Brian Anderson [Fri, 23 Sep 2011 06:08:59 +0000 (23:08 -0700)]
Remove deprecated mutable type constructor from run-pass/issue-511

This was triggering a warning that was making the pretty-print test fail

12 years agoAdd test for issue #511. Closes #511
Brian Anderson [Fri, 23 Sep 2011 05:50:12 +0000 (22:50 -0700)]
Add test for issue #511. Closes #511

12 years agoRemove is_stateful flag from tydesc. Closes #136
Brian Anderson [Fri, 23 Sep 2011 05:15:25 +0000 (22:15 -0700)]
Remove is_stateful flag from tydesc. Closes #136

12 years agoAdd a test for negative constants. Closes #358
Brian Anderson [Fri, 23 Sep 2011 04:59:09 +0000 (21:59 -0700)]
Add a test for negative constants. Closes #358

12 years agoFix ty_uniq case in maybe_auto_unbox
Brian Anderson [Fri, 23 Sep 2011 01:14:18 +0000 (18:14 -0700)]
Fix ty_uniq case in maybe_auto_unbox

Closes #961
Issue #409

12 years agoAdd take glue for unique boxes
Brian Anderson [Fri, 23 Sep 2011 01:05:36 +0000 (18:05 -0700)]
Add take glue for unique boxes

Closes #962
Issue #409

12 years agoRemove nonsensical load and store from trans_uniq::copy_val
Brian Anderson [Fri, 23 Sep 2011 00:50:27 +0000 (17:50 -0700)]
Remove nonsensical load and store from trans_uniq::copy_val

Issue #409

12 years agoAdda test for returning unique boxes
Brian Anderson [Thu, 22 Sep 2011 23:30:16 +0000 (16:30 -0700)]
Adda test for returning unique boxes

Issue #409

12 years agoAllow vectors to contain unique boxes. Closes #952
Brian Anderson [Thu, 22 Sep 2011 23:20:36 +0000 (16:20 -0700)]
Allow vectors to contain unique boxes. Closes #952

Issue #409

12 years agorustc: Write raw type parameters instead of linearized type parameters in object...
Patrick Walton [Thu, 22 Sep 2011 23:10:48 +0000 (16:10 -0700)]
rustc: Write raw type parameters instead of linearized type parameters in object body shapes

12 years agoXFAIL task-comm
Brian Anderson [Thu, 22 Sep 2011 23:09:10 +0000 (16:09 -0700)]
XFAIL task-comm

12 years agoAutoderef indexes and fields of unique boxes
Brian Anderson [Thu, 22 Sep 2011 23:04:27 +0000 (16:04 -0700)]
Autoderef indexes and fields of unique boxes

Issue #409

12 years agoAdd tests for moving unique boxes
Brian Anderson [Thu, 22 Sep 2011 22:43:08 +0000 (15:43 -0700)]
Add tests for moving unique boxes

Issue #409

12 years agoCalculate the correct kind for unique boxes
Brian Anderson [Thu, 22 Sep 2011 22:28:49 +0000 (15:28 -0700)]
Calculate the correct kind for unique boxes

Issue #409

12 years agoAdd a test for mutable references to unique boxes as function arguments
Brian Anderson [Thu, 22 Sep 2011 22:03:44 +0000 (15:03 -0700)]
Add a test for mutable references to unique boxes as function arguments

Issue #409

12 years agoAdd a test for unique boxes as fn args
Brian Anderson [Thu, 22 Sep 2011 21:55:08 +0000 (14:55 -0700)]
Add a test for unique boxes as fn args

Issue #409

12 years agoAdd a test for unique boxes containing shared boxes
Brian Anderson [Thu, 22 Sep 2011 21:39:57 +0000 (14:39 -0700)]
Add a test for unique boxes containing shared boxes

Issue #409

12 years agoDrop the previous value when copying one unique box local to another
Brian Anderson [Thu, 22 Sep 2011 20:51:40 +0000 (13:51 -0700)]
Drop the previous value when copying one unique box local to another

Issue #409

12 years agoAdd a test that assignment of unique boxes to locals does a copy
Brian Anderson [Thu, 22 Sep 2011 20:39:03 +0000 (13:39 -0700)]
Add a test that assignment of unique boxes to locals does a copy

Issue #409

12 years agoAdd assignment to unique box locals
Brian Anderson [Thu, 22 Sep 2011 20:36:37 +0000 (13:36 -0700)]
Add assignment to unique box locals

Issue #409

12 years agoInitialize unique box locals from other locals
Brian Anderson [Thu, 22 Sep 2011 20:22:53 +0000 (13:22 -0700)]
Initialize unique box locals from other locals

Issue #409

12 years agoConvert trans_uniq asserts to preconditions
Brian Anderson [Thu, 22 Sep 2011 19:22:23 +0000 (12:22 -0700)]
Convert trans_uniq asserts to preconditions

Issue #409

12 years agoSprinkle some asserts through trans_uniq
Brian Anderson [Thu, 22 Sep 2011 19:07:38 +0000 (12:07 -0700)]
Sprinkle some asserts through trans_uniq

12 years agoMove uniq trans code to trans_uniq module
Brian Anderson [Thu, 22 Sep 2011 18:44:18 +0000 (11:44 -0700)]
Move uniq trans code to trans_uniq module

Issue #409

12 years agoFactor alloc_uniq from trans_uniq
Brian Anderson [Thu, 22 Sep 2011 18:37:02 +0000 (11:37 -0700)]
Factor alloc_uniq from trans_uniq

Issue #409

12 years agoRemove -i for real.
Graydon Hoare [Thu, 22 Sep 2011 18:32:53 +0000 (11:32 -0700)]
Remove -i for real.

12 years agoDon't unify unique boxes with different mutability
Brian Anderson [Thu, 22 Sep 2011 18:10:48 +0000 (11:10 -0700)]
Don't unify unique boxes with different mutability

Issue #409

12 years agoXFAIL spawnfail and task-comm-15
Brian Anderson [Thu, 22 Sep 2011 18:06:26 +0000 (11:06 -0700)]
XFAIL spawnfail and task-comm-15

12 years agoAdd support for mutable unique boxes
Brian Anderson [Thu, 22 Sep 2011 05:17:06 +0000 (22:17 -0700)]
Add support for mutable unique boxes

Issue #409

12 years agoConvert ty::ty_uniq to contain a mutable type
Brian Anderson [Thu, 22 Sep 2011 01:54:54 +0000 (18:54 -0700)]
Convert ty::ty_uniq to contain a mutable type

Issue #409

12 years agoCall drop glue on the thing in a unique box
Brian Anderson [Thu, 22 Sep 2011 00:41:42 +0000 (17:41 -0700)]
Call drop glue on the thing in a unique box

Issue #409

12 years agoFix long line
Marijn Haverbeke [Thu, 22 Sep 2011 07:23:07 +0000 (09:23 +0200)]
Fix long line

12 years agoFix missing cast in do_cc
Marijn Haverbeke [Thu, 22 Sep 2011 07:17:26 +0000 (09:17 +0200)]
Fix missing cast in do_cc

Apparently not needed on Mac (clang?), but breaking the win and linux boxes.

12 years agorustc: Port the fn and obj traversal logic over from the GC branch. Doesn't actually...
Patrick Walton [Thu, 22 Sep 2011 02:07:41 +0000 (19:07 -0700)]
rustc: Port the fn and obj traversal logic over from the GC branch. Doesn't actually do anything yet due to lack of support in trans.

12 years agort: Implement cycle collection marking. Simple cycles can now be detected.
Patrick Walton [Thu, 22 Sep 2011 01:13:46 +0000 (18:13 -0700)]
rt: Implement cycle collection marking. Simple cycles can now be detected.

12 years agoLog and compare unique boxes
Brian Anderson [Thu, 22 Sep 2011 00:07:29 +0000 (17:07 -0700)]
Log and compare unique boxes

Issue #409

12 years agoRemove unused arg from revoke_clean
Brian Anderson [Wed, 21 Sep 2011 22:39:46 +0000 (15:39 -0700)]
Remove unused arg from revoke_clean

12 years agoAdd an unwind test for failure during unique box construction
Brian Anderson [Wed, 21 Sep 2011 21:45:08 +0000 (14:45 -0700)]
Add an unwind test for failure during unique box construction

12 years agoAdd ability to deref unique boxes. Make unique boxes immediates.
Brian Anderson [Wed, 21 Sep 2011 21:00:11 +0000 (14:00 -0700)]
Add ability to deref unique boxes. Make unique boxes immediates.

Issue #409

12 years agoAdd more unwind tests for failure during construction of allocated things
Brian Anderson [Wed, 21 Sep 2011 17:56:28 +0000 (10:56 -0700)]
Add more unwind tests for failure during construction of allocated things

12 years agoRevert "rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935."
Marijn Haverbeke [Wed, 21 Sep 2011 19:39:31 +0000 (21:39 +0200)]
Revert "rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935."

This reverts commit f19ab1ff3c85973a54cc98e3f98ae240e2d0d816.

12 years agoOne little 'n', so much harm!
Graydon Hoare [Wed, 21 Sep 2011 19:34:30 +0000 (12:34 -0700)]
One little 'n', so much harm!

12 years agoExpand our own config.guess-like logic in configure, rather than only asking LLVM...
Graydon Hoare [Wed, 21 Sep 2011 18:24:59 +0000 (11:24 -0700)]
Expand our own config.guess-like logic in configure, rather than only asking LLVM. We have to decide some things before we get an LLVM to ask.

12 years agorustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935.
Patrick Walton [Wed, 21 Sep 2011 05:50:45 +0000 (22:50 -0700)]
rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935.

12 years agorustc: Don't try to spill bottom types, since we can't make any assumptions about...
Patrick Walton [Wed, 21 Sep 2011 17:54:56 +0000 (10:54 -0700)]
rustc: Don't try to spill bottom types, since we can't make any assumptions about the type of the ValueRef

12 years agoRevert "Implement pattern ranges for all numeric types."
Marijn Haverbeke [Wed, 21 Sep 2011 15:31:43 +0000 (17:31 +0200)]
Revert "Implement pattern ranges for all numeric types."

This reverts commit ce0f054f9d56df4e60291fc2e1b89ce979cf374f.

12 years agoDon't write to retptr when returning nil, pass undef for unused params
Marijn Haverbeke [Wed, 21 Sep 2011 09:39:06 +0000 (11:39 +0200)]
Don't write to retptr when returning nil, pass undef for unused params

12 years agoAdd target_triple to session::options. Use host triple by default, accept --target...
Graydon Hoare [Wed, 21 Sep 2011 15:46:18 +0000 (08:46 -0700)]
Add target_triple to session::options. Use host triple by default, accept --target on command line.

12 years agoRevert "rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935."
Marijn Haverbeke [Wed, 21 Sep 2011 09:05:54 +0000 (11:05 +0200)]
Revert "rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935."

This reverts commit e6a84f252ab7a016dd923adbf31e8c86deab1d72.

12 years agoImplement pattern ranges for all numeric types.
Josh Matthews [Wed, 21 Sep 2011 07:00:32 +0000 (03:00 -0400)]
Implement pattern ranges for all numeric types.

12 years agorustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935.
Patrick Walton [Wed, 21 Sep 2011 05:50:45 +0000 (22:50 -0700)]
rustc: Make bottom types immediates. Add a |log ret| testcase. Closes #935.

12 years agoAdd another testcase for #910
Jesse Ruderman [Wed, 21 Sep 2011 03:00:34 +0000 (20:00 -0700)]
Add another testcase for #910