]>
git.lizzy.rs Git - rust.git/log
Graydon Hoare [Tue, 27 Mar 2012 00:58:43 +0000 (17:58 -0700)]
Move config.stamp touch to configure script.
Graydon Hoare [Mon, 26 Mar 2012 23:05:49 +0000 (16:05 -0700)]
Only mention non-host triples if they exist.
Graydon Hoare [Mon, 26 Mar 2012 23:05:33 +0000 (16:05 -0700)]
Be more careful with CFG_{SRC,BUILD}_DIR ending in slash.
Graydon Hoare [Mon, 26 Mar 2012 23:04:37 +0000 (16:04 -0700)]
Reconfigure less often, and tidy up MKFILE_DEPS.
Graydon Hoare [Mon, 26 Mar 2012 22:54:22 +0000 (15:54 -0700)]
Disable some advanced (post glibc-2.3) libuv features when building snaps.
Brian Anderson [Fri, 23 Mar 2012 01:53:30 +0000 (18:53 -0700)]
rustc: Begin eliminating ext's dependency on the session
Brian Anderson [Thu, 22 Mar 2012 21:56:56 +0000 (14:56 -0700)]
rustc: Move eval_const_expr to its own mod
Patrick Walton [Mon, 26 Mar 2012 22:07:15 +0000 (15:07 -0700)]
rustc: Combine and unify regions
Patrick Walton [Mon, 26 Mar 2012 19:53:06 +0000 (12:53 -0700)]
rustc: "unkown" -> "unknown"
Patrick Walton [Mon, 26 Mar 2012 19:52:31 +0000 (12:52 -0700)]
rustc: Fix typo in infer
Patrick Walton [Mon, 26 Mar 2012 19:49:14 +0000 (12:49 -0700)]
rustc: Remove obsolete FIXME in infer
Patrick Walton [Mon, 26 Mar 2012 19:40:29 +0000 (12:40 -0700)]
rustc: Generalize resolve_var to work with regions too
Brian Anderson [Mon, 26 Mar 2012 19:26:33 +0000 (12:26 -0700)]
Add Jacob Parker to AUTHORS.txt
Brian Anderson [Mon, 26 Mar 2012 19:24:53 +0000 (12:24 -0700)]
Merge pull request #2054 from j3parker/master
Minor fixes
Tim Chevalier [Mon, 26 Mar 2012 17:45:04 +0000 (10:45 -0700)]
In typeck, don't call ty::store_iface_methods on private methods
This was resulting in a different error message depending on whether
the private method you were trying to call was in the same crate
or a different one.
Niko Matsakis [Sun, 25 Mar 2012 20:54:05 +0000 (13:54 -0700)]
Improve type inference to compute LUB/GLB
Tim Chevalier [Mon, 26 Mar 2012 17:04:46 +0000 (10:04 -0700)]
Remove stray comment
Tim Chevalier [Mon, 26 Mar 2012 16:59:59 +0000 (09:59 -0700)]
Enforce privacy declarations for class fields and methods
Marijn Haverbeke [Mon, 26 Mar 2012 11:16:29 +0000 (13:16 +0200)]
Fix return-in-block in cargo
Which is apparently not built as part of make check
Marijn Haverbeke [Mon, 26 Mar 2012 10:54:06 +0000 (12:54 +0200)]
Check in a forgotten new file
Marijn Haverbeke [Mon, 26 Mar 2012 10:39:20 +0000 (12:39 +0200)]
Disallow ret inside of block functions
Also adds proper checking for cont/break being inside a loop.
Closes #1854
Issue #1619
Marijn Haverbeke [Mon, 26 Mar 2012 09:31:17 +0000 (11:31 +0200)]
Fix bug in generation of non-generic resource dtors
Issue #1944
Niko Matsakis [Sun, 25 Mar 2012 20:32:13 +0000 (13:32 -0700)]
repair the build---also, make try/commit work over both ty/region vars
Jacob Parker [Sun, 25 Mar 2012 20:29:18 +0000 (16:29 -0400)]
str::to_chars -> str::chars
Jacob Parker [Sun, 25 Mar 2012 20:26:48 +0000 (16:26 -0400)]
Fixed vim highlighting for \' (and other) escapes in char literals
Patrick Walton [Sun, 25 Mar 2012 06:13:04 +0000 (23:13 -0700)]
rustc: Generalize several parts of infer in preparation for using them for region bounds as well
Niko Matsakis [Sun, 25 Mar 2012 05:15:34 +0000 (22:15 -0700)]
correct more broken tests
Niko Matsakis [Sun, 25 Mar 2012 04:59:16 +0000 (21:59 -0700)]
add test that was failing from tedh
Niko Matsakis [Sun, 25 Mar 2012 04:55:53 +0000 (21:55 -0700)]
add annotation for variable that used to infer to bot
Niko Matsakis [Sun, 25 Mar 2012 04:24:47 +0000 (21:24 -0700)]
Avoid unifying vars when possible; handle bot (more) correctly
Niko Matsakis [Sat, 24 Mar 2012 17:14:03 +0000 (10:14 -0700)]
new test which features conflicting variance requirements
Patrick Walton [Sun, 25 Mar 2012 04:30:57 +0000 (21:30 -0700)]
rustc: Stub some region resolution stuff in infer
Patrick Walton [Sun, 25 Mar 2012 02:21:51 +0000 (19:21 -0700)]
test: Rename run-pass/simple-regions.rs to run-pass/regions-simple.rs
This groups all the region tests under regions-*.
Patrick Walton [Sun, 25 Mar 2012 01:59:11 +0000 (18:59 -0700)]
test: Add a simple test for dangling pointers
Patrick Walton [Sun, 25 Mar 2012 01:30:53 +0000 (18:30 -0700)]
rustc: Add some simple region checking (no region vars yet)
Amazingly, this causes no test cases to fail!
Niko Matsakis [Sat, 24 Mar 2012 16:20:20 +0000 (09:20 -0700)]
prune unused unification code; leave region code that still needs to be ported
Tim Chevalier [Sat, 24 Mar 2012 06:08:41 +0000 (23:08 -0700)]
Allow methods to call other methods in the same class
Tim Chevalier [Sat, 24 Mar 2012 04:43:10 +0000 (21:43 -0700)]
Add another test for cross-crate method calls
Niko Matsakis [Sat, 24 Mar 2012 05:36:21 +0000 (22:36 -0700)]
add a few measly comments, remove some dead code
Niko Matsakis [Sat, 24 Mar 2012 05:06:39 +0000 (22:06 -0700)]
xfail-test regions tests
Niko Matsakis [Fri, 23 Mar 2012 03:06:01 +0000 (20:06 -0700)]
Implement new inference algorithm.
Tim Chevalier [Sat, 24 Mar 2012 03:53:38 +0000 (20:53 -0700)]
Fix breakage
Tim Chevalier [Sat, 24 Mar 2012 02:49:01 +0000 (19:49 -0700)]
Handle self correctly when translating classes
This change uses the same code for handling the "self" reference for
classes as is already used for impls/ifaces. This allows removing the
extra maybe_self_id argument (which was just for classes) to trans_closure
that I added before. I also rewrote the translation for class ctors so
that it doesn't generate new AST nodes (instead translating directly).
Also changed visit so that it visits class ctors correctly with visit_fn,
and changed typestate to not do return-checking when visiting a class ctor.
Patrick Walton [Sat, 24 Mar 2012 01:21:23 +0000 (18:21 -0700)]
rustc: Remove `// */` sequence from trans/base.rs; it breaks vi syntax highlighting
Patrick Walton [Sat, 24 Mar 2012 00:28:24 +0000 (17:28 -0700)]
rustc: Stub a table of borrowings
Patrick Walton [Sat, 24 Mar 2012 00:04:58 +0000 (17:04 -0700)]
rustc: Make region folding not descend into function types
Since region parameters are always universally quantified at the function
level, this would be incorrect.
Tim Chevalier [Fri, 23 Mar 2012 23:21:12 +0000 (16:21 -0700)]
Remove unneeded code
Tim Chevalier [Fri, 23 Mar 2012 22:50:21 +0000 (15:50 -0700)]
Remove ctypes -- it's no longer used.
Tim Chevalier [Fri, 23 Mar 2012 22:36:40 +0000 (15:36 -0700)]
Remove a FIXME and workaround that appear to be obsolete
Tim Chevalier [Fri, 23 Mar 2012 21:41:02 +0000 (14:41 -0700)]
Remove char::to_lower, char::to_upper, use libc versions instead
As per Graydon's comments on #1985: remove char::to_lower and
char::to_upper. The str versions of these functions now call
libc::tolower and libc::toupper (using wrappers that cast between
char and c_char). Not sure how much better that is, but it at least
makes it clearer that these functions are Unicode-unsafe.
Patrick Walton [Fri, 23 Mar 2012 23:18:28 +0000 (16:18 -0700)]
test: Add a test case that ensures `ret &EXPR` works.
Patrick Walton [Fri, 23 Mar 2012 23:15:58 +0000 (16:15 -0700)]
rustc: Fix parsing of `ret &EXPR`
The parser didn't think that `&` could start an expression.
Patrick Walton [Fri, 23 Mar 2012 22:44:37 +0000 (15:44 -0700)]
test: Fix unresolved name in regions-mock-trans-impls.rs
Patrick Walton [Fri, 23 Mar 2012 22:28:47 +0000 (15:28 -0700)]
test: Add a version of the "mock-trans" regions test case that uses impls
Patrick Walton [Fri, 23 Mar 2012 22:17:34 +0000 (15:17 -0700)]
test: Fix leak in regions-mock-trans
Patrick Walton [Fri, 23 Mar 2012 22:05:39 +0000 (15:05 -0700)]
test: Fix whitespace at EOL
Patrick Walton [Fri, 23 Mar 2012 21:42:39 +0000 (14:42 -0700)]
test: Add a trans.rs-workalike test case for regions
Patrick Walton [Fri, 23 Mar 2012 18:37:10 +0000 (11:37 -0700)]
rustc: Redo region inference to be a bit less broken
Marijn Haverbeke [Fri, 23 Mar 2012 15:05:53 +0000 (16:05 +0100)]
Keep an explicit map of things that have to be spilled
This prevents us from spilling locals more than once.
Closes #2040
Marijn Haverbeke [Fri, 23 Mar 2012 14:05:16 +0000 (15:05 +0100)]
Remove last vestiges of old-style intrinsics
Closes #2048
Marijn Haverbeke [Fri, 23 Mar 2012 14:04:14 +0000 (15:04 +0100)]
Register new snapshot
Marijn Haverbeke [Fri, 23 Mar 2012 13:45:47 +0000 (14:45 +0100)]
Remove more needless context threading in trans
Marijn Haverbeke [Fri, 23 Mar 2012 12:32:00 +0000 (13:32 +0100)]
Revert resolve kludge that was working around #2049
Marijn Haverbeke [Fri, 23 Mar 2012 12:30:29 +0000 (13:30 +0100)]
Fix inconsistent-iteration hazard in map.rs
Closes #2049
Marijn Haverbeke [Fri, 23 Mar 2012 11:57:37 +0000 (12:57 +0100)]
Stop trying to link intrinsics.bc
Marijn Haverbeke [Fri, 23 Mar 2012 11:52:53 +0000 (12:52 +0100)]
Interpret native mods with ABI rust-intrinsic as builtins
Marijn Haverbeke [Fri, 23 Mar 2012 11:51:20 +0000 (12:51 +0100)]
Revert removal of intrinsics
Oops. We can't do this yet until the next snapshot.
Marijn Haverbeke [Fri, 23 Mar 2012 11:38:36 +0000 (12:38 +0100)]
Clean up some confused shuffling of def_ids in resolve.rs
Marijn Haverbeke [Fri, 23 Mar 2012 11:03:16 +0000 (12:03 +0100)]
Rename builtin back to intrinsic
As per Graydon's request
Issue #1981
Marijn Haverbeke [Fri, 23 Mar 2012 10:51:06 +0000 (11:51 +0100)]
Remove support for the old-style intrinsics
Closes #2042
Closes #1981
Marijn Haverbeke [Fri, 23 Mar 2012 10:38:21 +0000 (11:38 +0100)]
Register snapshot, turn off USE_SNAPSHOT flags
Marijn Haverbeke [Fri, 23 Mar 2012 10:09:19 +0000 (11:09 +0100)]
Kludge in resolve to be able to land builtins
Something strange is happening to hash maps. I'm still investigating but
want to get my snapshot built in the meantime. (Problem only happened on
OS X.)
Marijn Haverbeke [Fri, 23 Mar 2012 09:22:23 +0000 (10:22 +0100)]
Fix bug in function-instance reuse
You can't safely reuse functions that pass a T by move, since they might
zero it out, which will not end well when it doesn't know its precise
size.
Marijn Haverbeke [Thu, 22 Mar 2012 15:02:34 +0000 (16:02 +0100)]
Change vector append to no longer rely on an intrinsic
Issue #1981
Marijn Haverbeke [Thu, 22 Mar 2012 12:44:16 +0000 (13:44 +0100)]
Support [rust_stack] annotation on native functions (crudely)
Marijn Haverbeke [Thu, 22 Mar 2012 11:30:10 +0000 (12:30 +0100)]
Replace most uses of intrinsics in core with builtins
Issue #1981
Marijn Haverbeke [Thu, 22 Mar 2012 10:59:53 +0000 (11:59 +0100)]
Temporarily turn on USE_SNAPSHOT_RUNTIME and USE_SNAPSHOT_CORELIB
Marijn Haverbeke [Wed, 21 Mar 2012 14:42:20 +0000 (15:42 +0100)]
Implement built-in native modules as an alternative to intrinsics
Issue #1981
Tim Chevalier [Fri, 23 Mar 2012 01:03:12 +0000 (18:03 -0700)]
Make cross-crate calls to class methods work
Brian Anderson [Fri, 23 Mar 2012 00:19:01 +0000 (17:19 -0700)]
rt: Run resource destructors during cycle collection
Brian Anderson [Thu, 22 Mar 2012 22:25:02 +0000 (15:25 -0700)]
Bump version numbers to 0.2
Graydon Hoare [Thu, 22 Mar 2012 20:44:20 +0000 (13:44 -0700)]
Add an LLVM-instruction-counting mode to trans.
Pipe to xdu to see a trans call graph of generated insns.
Niko Matsakis [Thu, 22 Mar 2012 15:39:41 +0000 (08:39 -0700)]
make --enforce-mut-vars always on, add mut annotations to remaining files
Niko Matsakis [Thu, 22 Mar 2012 14:31:18 +0000 (07:31 -0700)]
update promotion rules to not fail when .dsym file does not exist
Niko Matsakis [Thu, 15 Mar 2012 13:47:03 +0000 (09:47 -0400)]
add mut decls to rustc and make them mandatory
Brian Anderson [Wed, 21 Mar 2012 23:11:46 +0000 (16:11 -0700)]
rt: Fix valgrind stack hints
Brian Anderson [Wed, 21 Mar 2012 22:10:42 +0000 (15:10 -0700)]
rt: Shave 16 bytes off the __morestack frame
Brian Anderson [Wed, 21 Mar 2012 22:06:52 +0000 (15:06 -0700)]
rt: Shave a few instructions off __morestack
Brian Anderson [Wed, 21 Mar 2012 21:47:48 +0000 (14:47 -0700)]
rt: Stop using large stacks for the main task
Brian Anderson [Wed, 21 Mar 2012 21:20:06 +0000 (14:20 -0700)]
rt: Use get_task_from_tcb during stack growth calls
Brian Anderson [Wed, 21 Mar 2012 21:15:30 +0000 (14:15 -0700)]
rt: Add rust_task::get_task_from_tcb
Brian Anderson [Wed, 21 Mar 2012 21:13:31 +0000 (14:13 -0700)]
rt: Add a task field to stk_seg and populate it
Brian Anderson [Thu, 16 Feb 2012 00:03:37 +0000 (16:03 -0800)]
rt: Add a get_sp_limit function
Brian Anderson [Wed, 21 Mar 2012 21:12:12 +0000 (14:12 -0700)]
rt: Rename record_sp to record_sp_limit
Brian Anderson [Wed, 21 Mar 2012 21:06:43 +0000 (14:06 -0700)]
rt: Reset the stack limit after catching an exception
This wasn't causing problems but it looked wrong
Brian Anderson [Wed, 21 Mar 2012 21:00:37 +0000 (14:00 -0700)]
rt: Inline a bunch of stack switching code
Brian Anderson [Wed, 21 Mar 2012 20:50:11 +0000 (13:50 -0700)]
rt: Swap the definition of stk_seg::next and prev
Brian Anderson [Wed, 21 Mar 2012 20:17:24 +0000 (13:17 -0700)]
rt: Don't switch to the C stack on the upcall_new_stack fast path
Brian Anderson [Wed, 21 Mar 2012 07:31:40 +0000 (00:31 -0700)]
rt: Don't swatch stacks during upcall_del_stack
Graydon Hoare [Thu, 22 Mar 2012 02:00:52 +0000 (19:00 -0700)]
Every time you don't use a variable, a kitten scowls.