]>
git.lizzy.rs Git - rust.git/log
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.
Brian Anderson [Sun, 24 Jun 2012 20:31:46 +0000 (13:31 -0700)]
Merge remote-tracking branch 'mozilla/incoming'
Graydon Hoare [Sat, 23 Jun 2012 01:19:35 +0000 (18:19 -0700)]
Remove 'implements' keyword in favour of :, part of #2301.
Graydon Hoare [Sat, 23 Jun 2012 01:08:43 +0000 (18:08 -0700)]
Start sketching 0.3 release notes.
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
Brian Anderson [Sat, 23 Jun 2012 00:33:53 +0000 (17:33 -0700)]
core: Export result extensions from the top level
Brian Anderson [Sat, 23 Jun 2012 00:32:52 +0000 (17:32 -0700)]
core: Split up result extensions by kind bounds
Lindsey Kuper [Fri, 22 Jun 2012 23:00:14 +0000 (16:00 -0700)]
Minor capitalization/punctuation fixes in error messages
Lindsey Kuper [Fri, 22 Jun 2012 22:45:47 +0000 (15:45 -0700)]
Nicer quoting in "attempted access of field" message. Issue #2358.
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.
Eric Holk [Fri, 22 Jun 2012 23:31:57 +0000 (16:31 -0700)]
Adding unshift again.
Eric Holk [Fri, 22 Jun 2012 22:35:06 +0000 (15:35 -0700)]
Adding an issue number to vec-add.rs
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)
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 []/~.
Michael Sullivan [Fri, 22 Jun 2012 18:58:07 +0000 (11:58 -0700)]
Serialize out uniq vecs types
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.
Brian Anderson [Fri, 22 Jun 2012 04:21:57 +0000 (21:21 -0700)]
Merge pull request #2706 from mozilla/incoming
Incoming
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.
Tim Chevalier [Fri, 22 Jun 2012 00:54:56 +0000 (17:54 -0700)]
Hopefully make issue 2214 test case work on Windows -- sigh
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
Tim Chevalier [Thu, 21 Jun 2012 23:58:04 +0000 (16:58 -0700)]
Add test for issue 2467
Tim Chevalier [Thu, 21 Jun 2012 23:50:45 +0000 (16:50 -0700)]
Fix linker problem in issue 2214 test case
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.
Lindsey Kuper [Thu, 21 Jun 2012 22:38:21 +0000 (15:38 -0700)]
Adding `i` suffixes so cfail tests keep failing after suffix inference
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.
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.
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.
Eric Holk [Thu, 21 Jun 2012 22:30:43 +0000 (15:30 -0700)]
xfailing vec-add.
Eric Holk [Thu, 21 Jun 2012 21:09:39 +0000 (14:09 -0700)]
Fixing illegal moves.
Eric Holk [Fri, 15 Jun 2012 21:10:36 +0000 (14:10 -0700)]
Adding a benchmark for the new message passing code
Eric Holk [Fri, 15 Jun 2012 02:32:55 +0000 (19:32 -0700)]
This was unsafe, and will probably leak.
Eric Holk [Fri, 15 Jun 2012 01:09:31 +0000 (18:09 -0700)]
Remove some warnings and make tests pass.
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.
Eric Holk [Wed, 13 Jun 2012 23:14:01 +0000 (16:14 -0700)]
Move vector addition out of trans and into libcore.
Eric Holk [Sat, 16 Jun 2012 01:16:42 +0000 (21:16 -0400)]
Remove some singleton vector appends.
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.
Eric Holk [Fri, 15 Jun 2012 21:05:16 +0000 (14:05 -0700)]
Updating errors in vec-add.rs
Eric Holk [Fri, 15 Jun 2012 05:02:50 +0000 (22:02 -0700)]
Fixed another performance issue
Eric Holk [Thu, 14 Jun 2012 18:38:45 +0000 (11:38 -0700)]
Library vecs are fast now.
Eric Holk [Wed, 13 Jun 2012 23:14:01 +0000 (16:14 -0700)]
Move vector addition out of trans and into libcore.
Eric Holk [Wed, 13 Jun 2012 20:45:12 +0000 (13:45 -0700)]
Generate a temporary for assign_ops. Issue #2581
Tim Chevalier [Thu, 21 Jun 2012 21:37:55 +0000 (14:37 -0700)]
Add and xfail test for 2101
Tim Chevalier [Thu, 21 Jun 2012 21:25:36 +0000 (14:25 -0700)]
Remove unneeded field
Tim Chevalier [Thu, 21 Jun 2012 21:25:15 +0000 (14:25 -0700)]
Remove unneeded SHAPE_VEC const
Tim Chevalier [Thu, 21 Jun 2012 21:17:54 +0000 (14:17 -0700)]
Comments only: annotate FIXMEs
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"
Tim Chevalier [Thu, 21 Jun 2012 23:02:29 +0000 (16:02 -0700)]
Add test for issue 2214
Tim Chevalier [Thu, 21 Jun 2012 20:14:50 +0000 (13:14 -0700)]
Test for issue 1896 (which appears to be fixed)
Brian Anderson [Thu, 21 Jun 2012 20:41:56 +0000 (13:41 -0700)]
core: Remove resolved FIXME around port destruction
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.
Lindsey Kuper [Thu, 21 Jun 2012 01:51:08 +0000 (18:51 -0700)]
Consolidate "make sure types are the same" fns. Issue #2644.
Michael Sullivan [Thu, 21 Jun 2012 17:47:27 +0000 (10:47 -0700)]
Rename upcall_malloc_dyn to just upcall_malloc.
Niko Matsakis [Thu, 21 Jun 2012 17:15:08 +0000 (10:15 -0700)]
unxfail test for #2657
Niko Matsakis [Thu, 21 Jun 2012 16:41:33 +0000 (09:41 -0700)]
Issue #2657: track mutability of bindings, also prevent move from bindings
Tim Chevalier [Thu, 21 Jun 2012 15:59:17 +0000 (08:59 -0700)]
Comment only: annotate FIXME
Tim Chevalier [Thu, 21 Jun 2012 15:51:26 +0000 (08:51 -0700)]
Comments only: annotate FIXMEs in cargo
Tim Chevalier [Thu, 21 Jun 2012 15:47:48 +0000 (08:47 -0700)]
Merge remote-tracking branch 'mozilla/incoming' into incoming
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.
Tim Chevalier [Thu, 21 Jun 2012 04:42:36 +0000 (21:42 -0700)]
Fix typo in Windows snapshot hash
Tim Chevalier [Thu, 21 Jun 2012 04:25:39 +0000 (21:25 -0700)]
Apparently an extra space in the snapshot file breaks Windows completely?
Tim Chevalier [Thu, 21 Jun 2012 02:23:02 +0000 (19:23 -0700)]
Register snapshots
Brian Anderson [Thu, 21 Jun 2012 03:45:19 +0000 (20:45 -0700)]
Merge pull request #2684 from mozilla/incoming
Incoming
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.
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.
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.
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.
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.
Tim Chevalier [Mon, 18 Jun 2012 20:34:15 +0000 (13:34 -0700)]
Comments only: typos
Tim Chevalier [Mon, 18 Jun 2012 20:33:07 +0000 (13:33 -0700)]
Change map::get to map::find in ppaux
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
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 :-)
Lindsey Kuper [Thu, 21 Jun 2012 00:55:18 +0000 (17:55 -0700)]
Remove obsolete comment.
Lindsey Kuper [Thu, 21 Jun 2012 00:09:30 +0000 (17:09 -0700)]
doc: add information about suffix inference to tutorial and manual.
Brian Anderson [Wed, 20 Jun 2012 02:34:01 +0000 (19:34 -0700)]
Remove bind. Issue #2189
Michael Sullivan [Thu, 21 Jun 2012 00:07:54 +0000 (17:07 -0700)]
Fix a test I messed up.
Brian Anderson [Wed, 20 Jun 2012 23:43:22 +0000 (16:43 -0700)]
Register snapshots
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.
Michael Sullivan [Wed, 20 Jun 2012 23:14:53 +0000 (16:14 -0700)]
Repair the formatting of the table in is_binopable.
Tim Chevalier [Wed, 20 Jun 2012 23:23:45 +0000 (16:23 -0700)]
Test for #2242 (xfailed for now)
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.
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
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`.
Lindsey Kuper [Wed, 20 Jun 2012 21:29:24 +0000 (14:29 -0700)]
Use an unambiguous abbreviation for "operand" :)
Lindsey Kuper [Wed, 20 Jun 2012 19:46:38 +0000 (12:46 -0700)]
Add comments explaining integral type variables; fix typos
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.
Niko Matsakis [Wed, 20 Jun 2012 03:52:33 +0000 (20:52 -0700)]
two more tests for method autoderef
Niko Matsakis [Wed, 20 Jun 2012 03:36:01 +0000 (20:36 -0700)]
support autoderef on method calls
Eric Holk [Wed, 20 Jun 2012 01:03:28 +0000 (18:03 -0700)]
Temporarily ignoring tests that can go into infinite loops.
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.
Lindsey Kuper [Wed, 20 Jun 2012 00:06:05 +0000 (17:06 -0700)]
Enable integer literal suffix inference.
Lindsey Kuper [Wed, 20 Jun 2012 00:04:39 +0000 (17:04 -0700)]
Fix incorrect fn name in debug statement
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
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.
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.
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
Lindsey Kuper [Mon, 18 Jun 2012 20:41:52 +0000 (13:41 -0700)]
Adding `i` suffixes so cfail tests keep failing after suffix inference
Brian Anderson [Tue, 19 Jun 2012 19:36:24 +0000 (12:36 -0700)]
rustc: Add a temporary option to not link to the runtime
Eric Holk [Tue, 19 Jun 2012 19:26:30 +0000 (12:26 -0700)]
Fixed a compile error in runtime.
Niko Matsakis [Thu, 7 Jun 2012 17:51:21 +0000 (10:51 -0700)]
first steps to autoderef on method calls
Niko Matsakis [Thu, 14 Jun 2012 23:27:44 +0000 (16:27 -0700)]
random forgotten test case