]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoMove config.stamp touch to configure script.
Graydon Hoare [Tue, 27 Mar 2012 00:58:43 +0000 (17:58 -0700)]
Move config.stamp touch to configure script.

12 years agoOnly mention non-host triples if they exist.
Graydon Hoare [Mon, 26 Mar 2012 23:05:49 +0000 (16:05 -0700)]
Only mention non-host triples if they exist.

12 years agoBe more careful with CFG_{SRC,BUILD}_DIR ending in slash.
Graydon Hoare [Mon, 26 Mar 2012 23:05:33 +0000 (16:05 -0700)]
Be more careful with CFG_{SRC,BUILD}_DIR ending in slash.

12 years agoReconfigure less often, and tidy up MKFILE_DEPS.
Graydon Hoare [Mon, 26 Mar 2012 23:04:37 +0000 (16:04 -0700)]
Reconfigure less often, and tidy up MKFILE_DEPS.

12 years agoDisable some advanced (post glibc-2.3) libuv features when building snaps.
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.

12 years agorustc: Begin eliminating ext's dependency on the session
Brian Anderson [Fri, 23 Mar 2012 01:53:30 +0000 (18:53 -0700)]
rustc: Begin eliminating ext's dependency on the session

12 years agorustc: Move eval_const_expr to its own mod
Brian Anderson [Thu, 22 Mar 2012 21:56:56 +0000 (14:56 -0700)]
rustc: Move eval_const_expr to its own mod

12 years agorustc: Combine and unify regions
Patrick Walton [Mon, 26 Mar 2012 22:07:15 +0000 (15:07 -0700)]
rustc: Combine and unify regions

12 years agorustc: "unkown" -> "unknown"
Patrick Walton [Mon, 26 Mar 2012 19:53:06 +0000 (12:53 -0700)]
rustc: "unkown" -> "unknown"

12 years agorustc: Fix typo in infer
Patrick Walton [Mon, 26 Mar 2012 19:52:31 +0000 (12:52 -0700)]
rustc: Fix typo in infer

12 years agorustc: Remove obsolete FIXME in infer
Patrick Walton [Mon, 26 Mar 2012 19:49:14 +0000 (12:49 -0700)]
rustc: Remove obsolete FIXME in infer

12 years agorustc: Generalize resolve_var to work with regions too
Patrick Walton [Mon, 26 Mar 2012 19:40:29 +0000 (12:40 -0700)]
rustc: Generalize resolve_var to work with regions too

12 years agoAdd Jacob Parker to AUTHORS.txt
Brian Anderson [Mon, 26 Mar 2012 19:26:33 +0000 (12:26 -0700)]
Add Jacob Parker to AUTHORS.txt

12 years agoMerge pull request #2054 from j3parker/master
Brian Anderson [Mon, 26 Mar 2012 19:24:53 +0000 (12:24 -0700)]
Merge pull request #2054 from j3parker/master

Minor fixes

12 years agoIn typeck, don't call ty::store_iface_methods on private methods
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.

12 years agoImprove type inference to compute LUB/GLB
Niko Matsakis [Sun, 25 Mar 2012 20:54:05 +0000 (13:54 -0700)]
Improve type inference to compute LUB/GLB

12 years agoRemove stray comment
Tim Chevalier [Mon, 26 Mar 2012 17:04:46 +0000 (10:04 -0700)]
Remove stray comment

12 years agoEnforce privacy declarations for class fields and methods
Tim Chevalier [Mon, 26 Mar 2012 16:59:59 +0000 (09:59 -0700)]
Enforce privacy declarations for class fields and methods

12 years agoFix return-in-block in cargo
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

12 years agoCheck in a forgotten new file
Marijn Haverbeke [Mon, 26 Mar 2012 10:54:06 +0000 (12:54 +0200)]
Check in a forgotten new file

12 years agoDisallow ret inside of block functions
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

12 years agoFix bug in generation of non-generic resource dtors
Marijn Haverbeke [Mon, 26 Mar 2012 09:31:17 +0000 (11:31 +0200)]
Fix bug in generation of non-generic resource dtors

Issue #1944

12 years agorepair the build---also, make try/commit work over both ty/region vars
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

12 years agostr::to_chars -> str::chars
Jacob Parker [Sun, 25 Mar 2012 20:29:18 +0000 (16:29 -0400)]
str::to_chars -> str::chars

12 years agoFixed vim highlighting for \' (and other) escapes in char literals
Jacob Parker [Sun, 25 Mar 2012 20:26:48 +0000 (16:26 -0400)]
Fixed vim highlighting for \' (and other) escapes in char literals

12 years agorustc: Generalize several parts of infer in preparation for using them for region...
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

12 years agocorrect more broken tests
Niko Matsakis [Sun, 25 Mar 2012 05:15:34 +0000 (22:15 -0700)]
correct more broken tests

12 years agoadd test that was failing from tedh
Niko Matsakis [Sun, 25 Mar 2012 04:59:16 +0000 (21:59 -0700)]
add test that was failing from tedh

12 years agoadd annotation for variable that used to infer to bot
Niko Matsakis [Sun, 25 Mar 2012 04:55:53 +0000 (21:55 -0700)]
add annotation for variable that used to infer to bot

12 years agoAvoid unifying vars when possible; handle bot (more) correctly
Niko Matsakis [Sun, 25 Mar 2012 04:24:47 +0000 (21:24 -0700)]
Avoid unifying vars when possible; handle bot (more) correctly

12 years agonew test which features conflicting variance requirements
Niko Matsakis [Sat, 24 Mar 2012 17:14:03 +0000 (10:14 -0700)]
new test which features conflicting variance requirements

12 years agorustc: Stub some region resolution stuff in infer
Patrick Walton [Sun, 25 Mar 2012 04:30:57 +0000 (21:30 -0700)]
rustc: Stub some region resolution stuff in infer

12 years agotest: Rename run-pass/simple-regions.rs to run-pass/regions-simple.rs
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-*.

12 years agotest: Add a simple test for dangling pointers
Patrick Walton [Sun, 25 Mar 2012 01:59:11 +0000 (18:59 -0700)]
test: Add a simple test for dangling pointers

12 years agorustc: Add some simple region checking (no region vars yet)
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!

12 years agoprune unused unification code; leave region code that still needs to be ported
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

12 years agoAllow methods to call other methods in the same class
Tim Chevalier [Sat, 24 Mar 2012 06:08:41 +0000 (23:08 -0700)]
Allow methods to call other methods in the same class

12 years agoAdd another test for cross-crate method calls
Tim Chevalier [Sat, 24 Mar 2012 04:43:10 +0000 (21:43 -0700)]
Add another test for cross-crate method calls

12 years agoadd a few measly comments, remove some dead code
Niko Matsakis [Sat, 24 Mar 2012 05:36:21 +0000 (22:36 -0700)]
add a few measly comments, remove some dead code

12 years agoxfail-test regions tests
Niko Matsakis [Sat, 24 Mar 2012 05:06:39 +0000 (22:06 -0700)]
xfail-test regions tests

12 years agoImplement new inference algorithm.
Niko Matsakis [Fri, 23 Mar 2012 03:06:01 +0000 (20:06 -0700)]
Implement new inference algorithm.

12 years agoFix breakage
Tim Chevalier [Sat, 24 Mar 2012 03:53:38 +0000 (20:53 -0700)]
Fix breakage

12 years agoHandle self correctly when translating classes
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.

12 years agorustc: Remove `// */` sequence from trans/base.rs; it breaks vi syntax highlighting
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

12 years agorustc: Stub a table of borrowings
Patrick Walton [Sat, 24 Mar 2012 00:28:24 +0000 (17:28 -0700)]
rustc: Stub a table of borrowings

12 years agorustc: Make region folding not descend into function types
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.

12 years agoRemove unneeded code
Tim Chevalier [Fri, 23 Mar 2012 23:21:12 +0000 (16:21 -0700)]
Remove unneeded code

12 years agoRemove ctypes -- it's no longer used.
Tim Chevalier [Fri, 23 Mar 2012 22:50:21 +0000 (15:50 -0700)]
Remove ctypes -- it's no longer used.

12 years agoRemove a FIXME and workaround that appear to be obsolete
Tim Chevalier [Fri, 23 Mar 2012 22:36:40 +0000 (15:36 -0700)]
Remove a FIXME and workaround that appear to be obsolete

12 years agoRemove char::to_lower, char::to_upper, use libc versions instead
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.

12 years agotest: Add a test case that ensures `ret &EXPR` works.
Patrick Walton [Fri, 23 Mar 2012 23:18:28 +0000 (16:18 -0700)]
test: Add a test case that ensures `ret &EXPR` works.

12 years agorustc: Fix parsing of `ret &EXPR`
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.

12 years agotest: Fix unresolved name in regions-mock-trans-impls.rs
Patrick Walton [Fri, 23 Mar 2012 22:44:37 +0000 (15:44 -0700)]
test: Fix unresolved name in regions-mock-trans-impls.rs

12 years agotest: Add a version of the "mock-trans" regions test case that uses impls
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

12 years agotest: Fix leak in regions-mock-trans
Patrick Walton [Fri, 23 Mar 2012 22:17:34 +0000 (15:17 -0700)]
test: Fix leak in regions-mock-trans

12 years agotest: Fix whitespace at EOL
Patrick Walton [Fri, 23 Mar 2012 22:05:39 +0000 (15:05 -0700)]
test: Fix whitespace at EOL

12 years agotest: Add a trans.rs-workalike test case for regions
Patrick Walton [Fri, 23 Mar 2012 21:42:39 +0000 (14:42 -0700)]
test: Add a trans.rs-workalike test case for regions

12 years agorustc: Redo region inference to be a bit less broken
Patrick Walton [Fri, 23 Mar 2012 18:37:10 +0000 (11:37 -0700)]
rustc: Redo region inference to be a bit less broken

12 years agoKeep an explicit map of things that have to be spilled
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

12 years agoRemove last vestiges of old-style intrinsics
Marijn Haverbeke [Fri, 23 Mar 2012 14:05:16 +0000 (15:05 +0100)]
Remove last vestiges of old-style intrinsics

Closes #2048

12 years agoRegister new snapshot
Marijn Haverbeke [Fri, 23 Mar 2012 14:04:14 +0000 (15:04 +0100)]
Register new snapshot

12 years agoRemove more needless context threading in trans
Marijn Haverbeke [Fri, 23 Mar 2012 13:45:47 +0000 (14:45 +0100)]
Remove more needless context threading in trans

12 years agoRevert resolve kludge that was working around #2049
Marijn Haverbeke [Fri, 23 Mar 2012 12:32:00 +0000 (13:32 +0100)]
Revert resolve kludge that was working around #2049

12 years agoFix inconsistent-iteration hazard in map.rs
Marijn Haverbeke [Fri, 23 Mar 2012 12:30:29 +0000 (13:30 +0100)]
Fix inconsistent-iteration hazard in map.rs

Closes #2049

12 years agoStop trying to link intrinsics.bc
Marijn Haverbeke [Fri, 23 Mar 2012 11:57:37 +0000 (12:57 +0100)]
Stop trying to link intrinsics.bc

12 years agoInterpret native mods with ABI rust-intrinsic as builtins
Marijn Haverbeke [Fri, 23 Mar 2012 11:52:53 +0000 (12:52 +0100)]
Interpret native mods with ABI rust-intrinsic as builtins

12 years agoRevert removal of intrinsics
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.

12 years agoClean up some confused shuffling of def_ids in resolve.rs
Marijn Haverbeke [Fri, 23 Mar 2012 11:38:36 +0000 (12:38 +0100)]
Clean up some confused shuffling of def_ids in resolve.rs

12 years agoRename builtin back to intrinsic
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

12 years agoRemove support for the old-style intrinsics
Marijn Haverbeke [Fri, 23 Mar 2012 10:51:06 +0000 (11:51 +0100)]
Remove support for the old-style intrinsics

Closes #2042
Closes #1981

12 years agoRegister snapshot, turn off USE_SNAPSHOT flags
Marijn Haverbeke [Fri, 23 Mar 2012 10:38:21 +0000 (11:38 +0100)]
Register snapshot, turn off USE_SNAPSHOT flags

12 years agoKludge in resolve to be able to land builtins
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.)

12 years agoFix bug in function-instance reuse
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.

12 years agoChange vector append to no longer rely on an intrinsic
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

12 years agoSupport [rust_stack] annotation on native functions (crudely)
Marijn Haverbeke [Thu, 22 Mar 2012 12:44:16 +0000 (13:44 +0100)]
Support [rust_stack] annotation on native functions (crudely)

12 years agoReplace most uses of intrinsics in core with builtins
Marijn Haverbeke [Thu, 22 Mar 2012 11:30:10 +0000 (12:30 +0100)]
Replace most uses of intrinsics in core with builtins

Issue #1981

12 years agoTemporarily turn on USE_SNAPSHOT_RUNTIME and USE_SNAPSHOT_CORELIB
Marijn Haverbeke [Thu, 22 Mar 2012 10:59:53 +0000 (11:59 +0100)]
Temporarily turn on USE_SNAPSHOT_RUNTIME and USE_SNAPSHOT_CORELIB

12 years agoImplement built-in native modules as an alternative to intrinsics
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

12 years agoMake cross-crate calls to class methods work
Tim Chevalier [Fri, 23 Mar 2012 01:03:12 +0000 (18:03 -0700)]
Make cross-crate calls to class methods work

12 years agort: Run resource destructors during cycle collection
Brian Anderson [Fri, 23 Mar 2012 00:19:01 +0000 (17:19 -0700)]
rt: Run resource destructors during cycle collection

12 years agoBump version numbers to 0.2
Brian Anderson [Thu, 22 Mar 2012 22:25:02 +0000 (15:25 -0700)]
Bump version numbers to 0.2

12 years agoAdd an LLVM-instruction-counting mode to trans.
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.

12 years agomake --enforce-mut-vars always on, add mut annotations to remaining files
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

12 years agoupdate promotion rules to not fail when .dsym file does not exist
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

12 years agoadd mut decls to rustc and make them mandatory
Niko Matsakis [Thu, 15 Mar 2012 13:47:03 +0000 (09:47 -0400)]
add mut decls to rustc and make them mandatory

12 years agort: Fix valgrind stack hints
Brian Anderson [Wed, 21 Mar 2012 23:11:46 +0000 (16:11 -0700)]
rt: Fix valgrind stack hints

12 years agort: Shave 16 bytes off the __morestack frame
Brian Anderson [Wed, 21 Mar 2012 22:10:42 +0000 (15:10 -0700)]
rt: Shave 16 bytes off the __morestack frame

12 years agort: Shave a few instructions off __morestack
Brian Anderson [Wed, 21 Mar 2012 22:06:52 +0000 (15:06 -0700)]
rt: Shave a few instructions off __morestack

12 years agort: Stop using large stacks for the main task
Brian Anderson [Wed, 21 Mar 2012 21:47:48 +0000 (14:47 -0700)]
rt: Stop using large stacks for the main task

12 years agort: Use get_task_from_tcb during stack growth calls
Brian Anderson [Wed, 21 Mar 2012 21:20:06 +0000 (14:20 -0700)]
rt: Use get_task_from_tcb during stack growth calls

12 years agort: Add rust_task::get_task_from_tcb
Brian Anderson [Wed, 21 Mar 2012 21:15:30 +0000 (14:15 -0700)]
rt: Add rust_task::get_task_from_tcb

12 years agort: Add a task field to stk_seg and populate it
Brian Anderson [Wed, 21 Mar 2012 21:13:31 +0000 (14:13 -0700)]
rt: Add a task field to stk_seg and populate it

12 years agort: Add a get_sp_limit function
Brian Anderson [Thu, 16 Feb 2012 00:03:37 +0000 (16:03 -0800)]
rt: Add a get_sp_limit function

12 years agort: Rename record_sp to record_sp_limit
Brian Anderson [Wed, 21 Mar 2012 21:12:12 +0000 (14:12 -0700)]
rt: Rename record_sp to record_sp_limit

12 years agort: Reset the stack limit after catching an exception
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

12 years agort: Inline a bunch of stack switching code
Brian Anderson [Wed, 21 Mar 2012 21:00:37 +0000 (14:00 -0700)]
rt: Inline a bunch of stack switching code

12 years agort: Swap the definition of stk_seg::next and prev
Brian Anderson [Wed, 21 Mar 2012 20:50:11 +0000 (13:50 -0700)]
rt: Swap the definition of stk_seg::next and prev

12 years agort: Don't switch to the C stack on the upcall_new_stack fast path
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

12 years agort: Don't swatch stacks during upcall_del_stack
Brian Anderson [Wed, 21 Mar 2012 07:31:40 +0000 (00:31 -0700)]
rt: Don't swatch stacks during upcall_del_stack

12 years agoEvery time you don't use a variable, a kitten scowls.
Graydon Hoare [Thu, 22 Mar 2012 02:00:52 +0000 (19:00 -0700)]
Every time you don't use a variable, a kitten scowls.