]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoFail to configure without an LLVM-friendly Python
Ben Striegel [Tue, 26 Jun 2012 00:18:09 +0000 (20:18 -0400)]
Fail to configure without an LLVM-friendly Python

This addresses issue #2720. According to LLVM's documentation, it requires a
version of Python between 2.4 and 2.7. Without the proper version, LLVM fails
to build with cryptic errors. Prior to this commit, the configure script
checked for the `python` command in the environment, but didn't actually check
the version, which can cause problems e.g. on Linux distros where the default
is Python 3. Now the configure script always prefers to select a more specific
version of Python when available, in the order `python2.7` > `python2.6` >
`python2` > `python`, and will always check to ensure that the interpreter's
version is in the correct range.

12 years agoMerge remote-tracking branch 'mozilla/incoming'
Brian Anderson [Sun, 24 Jun 2012 20:31:46 +0000 (13:31 -0700)]
Merge remote-tracking branch 'mozilla/incoming'

12 years agoRemove 'implements' keyword in favour of :, part of #2301.
Graydon Hoare [Sat, 23 Jun 2012 01:19:35 +0000 (18:19 -0700)]
Remove 'implements' keyword in favour of :, part of #2301.

12 years agoStart sketching 0.3 release notes.
Graydon Hoare [Sat, 23 Jun 2012 01:08:43 +0000 (18:08 -0700)]
Start sketching 0.3 release notes.

12 years agocore: Name is_failure to is_err, is_success to is_ok
Brian Anderson [Sat, 23 Jun 2012 01:26:25 +0000 (18:26 -0700)]
core: Name is_failure to is_err, is_success to is_ok

12 years agocore: Export result extensions from the top level
Brian Anderson [Sat, 23 Jun 2012 00:33:53 +0000 (17:33 -0700)]
core: Export result extensions from the top level

12 years agocore: Split up result extensions by kind bounds
Brian Anderson [Sat, 23 Jun 2012 00:32:52 +0000 (17:32 -0700)]
core: Split up result extensions by kind bounds

12 years agoMinor capitalization/punctuation fixes in error messages
Lindsey Kuper [Fri, 22 Jun 2012 23:00:14 +0000 (16:00 -0700)]
Minor capitalization/punctuation fixes in error messages

12 years agoNicer quoting in "attempted access of field" message. Issue #2358.
Lindsey Kuper [Fri, 22 Jun 2012 22:45:47 +0000 (15:45 -0700)]
Nicer quoting in "attempted access of field" message.  Issue #2358.

12 years agoDon't need a span on "main function not found" error. Issue #2707.
Lindsey Kuper [Fri, 22 Jun 2012 22:33:29 +0000 (15:33 -0700)]
Don't need a span on "main function not found" error.  Issue #2707.

12 years agoAdding unshift again.
Eric Holk [Fri, 22 Jun 2012 23:31:57 +0000 (16:31 -0700)]
Adding unshift again.

12 years agoAdding an issue number to vec-add.rs
Eric Holk [Fri, 22 Jun 2012 22:35:06 +0000 (15:35 -0700)]
Adding an issue number to vec-add.rs

12 years agoUse must_have_lock instead of private functions. (Issue #2700)
Eric Holk [Fri, 22 Jun 2012 20:07:07 +0000 (13:07 -0700)]
Use must_have_lock instead of private functions. (Issue #2700)

I hereby declare that messages sent from the same source arrive in order (Issue #2605)

Removing FIXME, owned is the correct type here. (Issue #2704)

Remove outdated FIXME (Issue #2703)

Updating test for spawning native functions (Issue #2602)

Removing bogus FIXME (Issue #2599)

12 years agoHack to make [] and []/~ the same type in preparation for switching to []/~.
Michael Sullivan [Fri, 22 Jun 2012 22:11:34 +0000 (15:11 -0700)]
Hack to make [] and []/~ the same type in preparation for switching to []/~.

12 years agoSerialize out uniq vecs types
Michael Sullivan [Fri, 22 Jun 2012 18:58:07 +0000 (11:58 -0700)]
Serialize out uniq vecs types

12 years agoMake the implicit copyability of []/~ configurable, like [] is, since we will be...
Michael Sullivan [Fri, 22 Jun 2012 18:23:54 +0000 (11:23 -0700)]
Make the implicit copyability of []/~ configurable, like [] is, since we will be switching sooner rather than later.

12 years agoMerge pull request #2706 from mozilla/incoming
Brian Anderson [Fri, 22 Jun 2012 04:21:57 +0000 (21:21 -0700)]
Merge pull request #2706 from mozilla/incoming

Incoming

12 years agoAdd test cases
Tim Chevalier [Fri, 22 Jun 2012 02:58:52 +0000 (19:58 -0700)]
Add test cases

issue-912 is xfailed. issue-2111 is already fixed, but it's good to
have the test case.

12 years agoHopefully make issue 2214 test case work on Windows -- sigh
Tim Chevalier [Fri, 22 Jun 2012 00:54:56 +0000 (17:54 -0700)]
Hopefully make issue 2214 test case work on Windows -- sigh

12 years agoMake liveness print out a proper error message for moves out of a self field
Tim Chevalier [Fri, 22 Jun 2012 00:41:40 +0000 (17:41 -0700)]
Make liveness print out a proper error message for moves out of a self field

This was a call to span_bug() before. I'm not sure about the other cases,
but the test case shows that the `vk_self` case can certainly arise with
a bad program, so it should be a span_err() thing and not a span_bug() thing.

Closes #2590

12 years agoAdd test for issue 2467
Tim Chevalier [Thu, 21 Jun 2012 23:58:04 +0000 (16:58 -0700)]
Add test for issue 2467

12 years agoFix linker problem in issue 2214 test case
Tim Chevalier [Thu, 21 Jun 2012 23:50:45 +0000 (16:50 -0700)]
Fix linker problem in issue 2214 test case

12 years agoTag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.
Graydon Hoare [Thu, 21 Jun 2012 23:44:10 +0000 (16:44 -0700)]
Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.

12 years agoAdding `i` suffixes so cfail tests keep failing after suffix inference
Lindsey Kuper [Thu, 21 Jun 2012 22:38:21 +0000 (15:38 -0700)]
Adding `i` suffixes so cfail tests keep failing after suffix inference

12 years agoAdd tests to exercise the "pattern has N field(s), but" error patterns.
Lindsey Kuper [Thu, 21 Jun 2012 22:02:43 +0000 (15:02 -0700)]
Add tests to exercise the "pattern has N field(s), but" error patterns.

12 years agoChange the level of forcing in structurally_resolved_type().
Lindsey Kuper [Thu, 21 Jun 2012 20:25:25 +0000 (13:25 -0700)]
Change the level of forcing in structurally_resolved_type().

A cleaner way to handle suffix inference for unary minus exprs.

12 years agoRevert "Add test for issue 2214"
Tim Chevalier [Thu, 21 Jun 2012 23:17:08 +0000 (16:17 -0700)]
Revert "Add test for issue 2214"

This reverts commit 290206b17890a76f96979ad629203d965ff35d1c.

Forgot to add the actual native code, temporarily reverting.

12 years agoxfailing vec-add.
Eric Holk [Thu, 21 Jun 2012 22:30:43 +0000 (15:30 -0700)]
xfailing vec-add.

12 years agoFixing illegal moves.
Eric Holk [Thu, 21 Jun 2012 21:09:39 +0000 (14:09 -0700)]
Fixing illegal moves.

12 years agoAdding a benchmark for the new message passing code
Eric Holk [Fri, 15 Jun 2012 21:10:36 +0000 (14:10 -0700)]
Adding a benchmark for the new message passing code

12 years agoThis was unsafe, and will probably leak.
Eric Holk [Fri, 15 Jun 2012 02:32:55 +0000 (19:32 -0700)]
This was unsafe, and will probably leak.

12 years agoRemove some warnings and make tests pass.
Eric Holk [Fri, 15 Jun 2012 01:09:31 +0000 (18:09 -0700)]
Remove some warnings and make tests pass.

12 years agoBasic functionality for new ports and chans
Eric Holk [Thu, 7 Jun 2012 19:18:34 +0000 (12:18 -0700)]
Basic functionality for new ports and chans

The first benchmark shows about twice the throughput of the old system.

12 years agoMove vector addition out of trans and into libcore.
Eric Holk [Wed, 13 Jun 2012 23:14:01 +0000 (16:14 -0700)]
Move vector addition out of trans and into libcore.

12 years agoRemove some singleton vector appends.
Eric Holk [Sat, 16 Jun 2012 01:16:42 +0000 (21:16 -0400)]
Remove some singleton vector appends.

12 years agoRemove some commented out code so the pretty printer doesn't get confused.
Eric Holk [Sat, 16 Jun 2012 00:13:45 +0000 (20:13 -0400)]
Remove some commented out code so the pretty printer doesn't get confused.

12 years agoUpdating errors in vec-add.rs
Eric Holk [Fri, 15 Jun 2012 21:05:16 +0000 (14:05 -0700)]
Updating errors in vec-add.rs

12 years agoFixed another performance issue
Eric Holk [Fri, 15 Jun 2012 05:02:50 +0000 (22:02 -0700)]
Fixed another performance issue

12 years agoLibrary vecs are fast now.
Eric Holk [Thu, 14 Jun 2012 18:38:45 +0000 (11:38 -0700)]
Library vecs are fast now.

12 years agoMove vector addition out of trans and into libcore.
Eric Holk [Wed, 13 Jun 2012 23:14:01 +0000 (16:14 -0700)]
Move vector addition out of trans and into libcore.

12 years agoGenerate a temporary for assign_ops. Issue #2581
Eric Holk [Wed, 13 Jun 2012 20:45:12 +0000 (13:45 -0700)]
Generate a temporary for assign_ops. Issue #2581

12 years agoAdd and xfail test for 2101
Tim Chevalier [Thu, 21 Jun 2012 21:37:55 +0000 (14:37 -0700)]
Add and xfail test for 2101

12 years agoRemove unneeded field
Tim Chevalier [Thu, 21 Jun 2012 21:25:36 +0000 (14:25 -0700)]
Remove unneeded field

12 years agoRemove unneeded SHAPE_VEC const
Tim Chevalier [Thu, 21 Jun 2012 21:25:15 +0000 (14:25 -0700)]
Remove unneeded SHAPE_VEC const

12 years agoComments only: annotate FIXMEs
Tim Chevalier [Thu, 21 Jun 2012 21:17:54 +0000 (14:17 -0700)]
Comments only: annotate FIXMEs

12 years agoTry removing code marked with "I don't think this is necessary"
Tim Chevalier [Thu, 21 Jun 2012 21:12:18 +0000 (14:12 -0700)]
Try removing code marked with "I don't think this is necessary"

12 years agoAdd test for issue 2214
Tim Chevalier [Thu, 21 Jun 2012 23:02:29 +0000 (16:02 -0700)]
Add test for issue 2214

12 years agoTest for issue 1896 (which appears to be fixed)
Tim Chevalier [Thu, 21 Jun 2012 20:14:50 +0000 (13:14 -0700)]
Test for issue 1896 (which appears to be fixed)

12 years agocore: Remove resolved FIXME around port destruction
Brian Anderson [Thu, 21 Jun 2012 20:41:56 +0000 (13:41 -0700)]
core: Remove resolved FIXME around port destruction

12 years agoA test to exercise suffix inference for unary minus a little more.
Lindsey Kuper [Thu, 21 Jun 2012 19:08:10 +0000 (12:08 -0700)]
A test to exercise suffix inference for unary minus a little more.

12 years agoConsolidate "make sure types are the same" fns. Issue #2644.
Lindsey Kuper [Thu, 21 Jun 2012 01:51:08 +0000 (18:51 -0700)]
Consolidate "make sure types are the same" fns.  Issue #2644.

12 years agoRename upcall_malloc_dyn to just upcall_malloc.
Michael Sullivan [Thu, 21 Jun 2012 17:47:27 +0000 (10:47 -0700)]
Rename upcall_malloc_dyn to just upcall_malloc.

12 years agounxfail test for #2657
Niko Matsakis [Thu, 21 Jun 2012 17:15:08 +0000 (10:15 -0700)]
unxfail test for #2657

12 years agoIssue #2657: track mutability of bindings, also prevent move from bindings
Niko Matsakis [Thu, 21 Jun 2012 16:41:33 +0000 (09:41 -0700)]
Issue #2657: track mutability of bindings, also prevent move from bindings

12 years agoComment only: annotate FIXME
Tim Chevalier [Thu, 21 Jun 2012 15:59:17 +0000 (08:59 -0700)]
Comment only: annotate FIXME

12 years agoComments only: annotate FIXMEs in cargo
Tim Chevalier [Thu, 21 Jun 2012 15:51:26 +0000 (08:51 -0700)]
Comments only: annotate FIXMEs in cargo

12 years agoMerge remote-tracking branch 'mozilla/incoming' into incoming
Tim Chevalier [Thu, 21 Jun 2012 15:47:48 +0000 (08:47 -0700)]
Merge remote-tracking branch 'mozilla/incoming' into incoming

12 years agohandle moves in let initializers and allow moves from unsafe ptrs
Niko Matsakis [Thu, 21 Jun 2012 03:08:25 +0000 (20:08 -0700)]
handle moves in let initializers and allow moves from unsafe ptrs

Related to issue #2657, but this is not a complete fix.

12 years agoFix typo in Windows snapshot hash
Tim Chevalier [Thu, 21 Jun 2012 04:42:36 +0000 (21:42 -0700)]
Fix typo in Windows snapshot hash

12 years agoApparently an extra space in the snapshot file breaks Windows completely?
Tim Chevalier [Thu, 21 Jun 2012 04:25:39 +0000 (21:25 -0700)]
Apparently an extra space in the snapshot file breaks Windows completely?

12 years agoRegister snapshots
Tim Chevalier [Thu, 21 Jun 2012 02:23:02 +0000 (19:23 -0700)]
Register snapshots

12 years agoMerge pull request #2684 from mozilla/incoming
Brian Anderson [Thu, 21 Jun 2012 03:45:19 +0000 (20:45 -0700)]
Merge pull request #2684 from mozilla/incoming

Incoming

12 years agoChange core::comm to use classes instead of resources
Tim Chevalier [Mon, 18 Jun 2012 20:49:20 +0000 (13:49 -0700)]
Change core::comm to use classes instead of resources

Ports now are represented internally as classes.

12 years agoMake trans give correct types to monomorphic dtors
Tim Chevalier [Tue, 19 Jun 2012 21:44:38 +0000 (14:44 -0700)]
Make trans give correct types to monomorphic dtors

Irritatingly, class dtors have a different type from resource
dtors (because class dtors have a self argument), and the monomorphic
case wasn't reflecting that. Fixed.

12 years agoDon't shadow a class name with a local
Tim Chevalier [Tue, 19 Jun 2012 19:01:02 +0000 (12:01 -0700)]
Don't shadow a class name with a local

The fix in 208621 means you now can't shadow a class name with a local,
which is consistent with other behavior. But stackwalk was doing that.
Fixed it.

12 years agoFix resolve bug that made nested classes not work
Tim Chevalier [Tue, 19 Jun 2012 19:00:09 +0000 (12:00 -0700)]
Fix resolve bug that made nested classes not work

It wasn't possible to refer to the constructor for a class nested inside
an item from the class's outer scope. Fixed.

12 years agoMonomorphize dtors correctly
Tim Chevalier [Mon, 18 Jun 2012 20:34:50 +0000 (13:34 -0700)]
Monomorphize dtors correctly

The same dtor was getting re-used for different instances, which
didn't always work right. Fixed.

12 years agoComments only: typos
Tim Chevalier [Mon, 18 Jun 2012 20:34:15 +0000 (13:34 -0700)]
Comments only: typos

12 years agoChange map::get to map::find in ppaux
Tim Chevalier [Mon, 18 Jun 2012 20:33:07 +0000 (13:33 -0700)]
Change map::get to map::find in ppaux

12 years agoDon't consider loops to be breaking if they contain inner loops that break
Tim Chevalier [Thu, 21 Jun 2012 01:50:44 +0000 (18:50 -0700)]
Don't consider loops to be breaking if they contain inner loops that break

Closes #2642

12 years agoChange error to debug
Tim Chevalier [Thu, 21 Jun 2012 01:50:13 +0000 (18:50 -0700)]
Change error to debug

IMO this is a better workaround than using the old-style
error-pattern: syntax :-)

12 years agoRemove obsolete comment.
Lindsey Kuper [Thu, 21 Jun 2012 00:55:18 +0000 (17:55 -0700)]
Remove obsolete comment.

12 years agodoc: add information about suffix inference to tutorial and manual.
Lindsey Kuper [Thu, 21 Jun 2012 00:09:30 +0000 (17:09 -0700)]
doc: add information about suffix inference to tutorial and manual.

12 years agoRemove bind. Issue #2189
Brian Anderson [Wed, 20 Jun 2012 02:34:01 +0000 (19:34 -0700)]
Remove bind. Issue #2189

12 years agoFix a test I messed up.
Michael Sullivan [Thu, 21 Jun 2012 00:07:54 +0000 (17:07 -0700)]
Fix a test I messed up.

12 years agoRegister snapshots
Brian Anderson [Wed, 20 Jun 2012 23:43:22 +0000 (16:43 -0700)]
Register snapshots

12 years agoDon't allow + for evecs/estrs. It isn't implemented, and we are moving vec + to libs...
Michael Sullivan [Wed, 20 Jun 2012 23:19:03 +0000 (16:19 -0700)]
Don't allow + for evecs/estrs. It isn't implemented, and we are moving vec + to libs anyways.

12 years agoRepair the formatting of the table in is_binopable.
Michael Sullivan [Wed, 20 Jun 2012 23:14:53 +0000 (16:14 -0700)]
Repair the formatting of the table in is_binopable.

12 years agoTest for #2242 (xfailed for now)
Tim Chevalier [Wed, 20 Jun 2012 23:23:45 +0000 (16:23 -0700)]
Test for #2242 (xfailed for now)

12 years agoCall the correct type formatting function for more typecheck diagnostics. Closes...
Michael Sullivan [Wed, 20 Jun 2012 22:44:37 +0000 (15:44 -0700)]
Call the correct type formatting function for more typecheck diagnostics. Closes #2652.

12 years agoMerge pull request #2562 from killerswan/logo
Brian Anderson [Wed, 20 Jun 2012 22:20:17 +0000 (15:20 -0700)]
Merge pull request #2562 from killerswan/logo

Add logo to HTML docs

12 years agoDon't force resolution of integral type vars in unary minus exprs
Lindsey Kuper [Wed, 20 Jun 2012 21:33:25 +0000 (14:33 -0700)]
Don't force resolution of integral type vars in unary minus exprs

These were getting resolved too early, when they were still
unconstrained by the rest of the typing context.  Waiting a bit longer
to resolve them gives the rest of the typing context a chance to come
into play, so that they don't default to `int`.

12 years agoUse an unambiguous abbreviation for "operand" :)
Lindsey Kuper [Wed, 20 Jun 2012 21:29:24 +0000 (14:29 -0700)]
Use an unambiguous abbreviation for "operand" :)

12 years agoAdd comments explaining integral type variables; fix typos
Lindsey Kuper [Wed, 20 Jun 2012 19:46:38 +0000 (12:46 -0700)]
Add comments explaining integral type variables; fix typos

12 years agoDon't reverse all the arguments to span_lint for lint checking passes.
Michael Sullivan [Wed, 20 Jun 2012 17:30:48 +0000 (10:30 -0700)]
Don't reverse all the arguments to span_lint for lint checking passes.

12 years agotwo more tests for method autoderef
Niko Matsakis [Wed, 20 Jun 2012 03:52:33 +0000 (20:52 -0700)]
two more tests for method autoderef

12 years agosupport autoderef on method calls
Niko Matsakis [Wed, 20 Jun 2012 03:36:01 +0000 (20:36 -0700)]
support autoderef on method calls

12 years agoTemporarily ignoring tests that can go into infinite loops.
Eric Holk [Wed, 20 Jun 2012 01:03:28 +0000 (18:03 -0700)]
Temporarily ignoring tests that can go into infinite loops.

12 years agoUpdating kind rules to make sure we don't sneakily send ports.
Eric Holk [Wed, 20 Jun 2012 00:28:29 +0000 (17:28 -0700)]
Updating kind rules to make sure we don't sneakily send ports.

12 years agoEnable integer literal suffix inference.
Lindsey Kuper [Wed, 20 Jun 2012 00:06:05 +0000 (17:06 -0700)]
Enable integer literal suffix inference.

12 years agoFix incorrect fn name in debug statement
Lindsey Kuper [Wed, 20 Jun 2012 00:04:39 +0000 (17:04 -0700)]
Fix incorrect fn name in debug statement

12 years agoAdd `i` suffix to cfail test so it works after suffix inference
Lindsey Kuper [Tue, 19 Jun 2012 23:57:13 +0000 (16:57 -0700)]
Add `i` suffix to cfail test so it works after suffix inference

12 years agoDon't create a new inference context for checking pattern ranges.
Lindsey Kuper [Tue, 19 Jun 2012 23:53:41 +0000 (16:53 -0700)]
Don't create a new inference context for checking pattern ranges.

Ugly fix -- it would be better to refactor and consolidate the various
"make sure these types are the same" fns scattered around typeck.

12 years agoUnion-find `rank` optimization for infer.
Lindsey Kuper [Tue, 19 Jun 2012 02:32:00 +0000 (19:32 -0700)]
Union-find `rank` optimization for infer.

Makes deep-vector2 not run out of stack when suffix inference is
enabled.

12 years agoAdd a `node` type in place of hand-rolled records in infer
Lindsey Kuper [Mon, 18 Jun 2012 23:41:42 +0000 (16:41 -0700)]
Add a `node` type in place of hand-rolled records in infer

12 years agoAdding `i` suffixes so cfail tests keep failing after suffix inference
Lindsey Kuper [Mon, 18 Jun 2012 20:41:52 +0000 (13:41 -0700)]
Adding `i` suffixes so cfail tests keep failing after suffix inference

12 years agorustc: Add a temporary option to not link to the runtime
Brian Anderson [Tue, 19 Jun 2012 19:36:24 +0000 (12:36 -0700)]
rustc: Add a temporary option to not link to the runtime

12 years agoFixed a compile error in runtime.
Eric Holk [Tue, 19 Jun 2012 19:26:30 +0000 (12:26 -0700)]
Fixed a compile error in runtime.

12 years agofirst steps to autoderef on method calls
Niko Matsakis [Thu, 7 Jun 2012 17:51:21 +0000 (10:51 -0700)]
first steps to autoderef on method calls

12 years agorandom forgotten test case
Niko Matsakis [Thu, 14 Jun 2012 23:27:44 +0000 (16:27 -0700)]
random forgotten test case