]>
git.lizzy.rs Git - rust.git/log
Brian Anderson [Fri, 30 Mar 2012 02:10:38 +0000 (19:10 -0700)]
build: Add --enable-debug configure option
When CFG_ENABLE_DEBUG is defined it will call rustc with -g --cfg=debug
and cc with -DRUST_DEBUG. Otherwise it calls rustc with --cfg=ndebug and cc
with -DRUST_NDEBUG.
I plan to use this for a few things in the runtime.
Brian Anderson [Thu, 29 Mar 2012 23:43:01 +0000 (16:43 -0700)]
test: Prevent run-fail/too-much-recursion from being optimized to nothing
Brian Anderson [Tue, 27 Mar 2012 01:58:40 +0000 (18:58 -0700)]
rt: Track backtraces of all allocations with RUSTRT_TRACK_ALLOCATIONS=3
Brian Anderson [Mon, 26 Mar 2012 23:27:35 +0000 (16:27 -0700)]
rt: Make the CC sweep use the box annihilator
Brian Anderson [Mon, 26 Mar 2012 23:25:29 +0000 (16:25 -0700)]
rustc: Generate fewer landing pads
Brian Anderson [Mon, 26 Mar 2012 23:24:29 +0000 (16:24 -0700)]
rt: Make the box annihilator walk and delete contents
Brian Anderson [Mon, 26 Mar 2012 21:39:39 +0000 (14:39 -0700)]
rt: For now, only run the box annihilator after task failure
Brian Anderson [Mon, 26 Mar 2012 20:30:56 +0000 (13:30 -0700)]
rustc: Only invoke when there are cleanups
Brian Anderson [Mon, 26 Mar 2012 19:45:02 +0000 (12:45 -0700)]
rustc: Delete some unused invoke code
Brian Anderson [Sat, 24 Mar 2012 00:52:20 +0000 (17:52 -0700)]
rustc: Don't generate landing pad cleanups for boxy things
Brian Anderson [Sat, 24 Mar 2012 00:51:54 +0000 (17:51 -0700)]
rt: Free all outstanding boxes at task death
Brian Anderson [Thu, 29 Mar 2012 20:48:05 +0000 (13:48 -0700)]
rustc: Move ext to librustsyntax
Brian Anderson [Thu, 29 Mar 2012 19:03:49 +0000 (12:03 -0700)]
build: Add librustsyntax to snapshots
Brian Anderson [Fri, 23 Mar 2012 01:16:22 +0000 (18:16 -0700)]
rustc: Remove the rustsyntax::attr wrapper in front
Brian Anderson [Fri, 23 Mar 2012 01:13:28 +0000 (18:13 -0700)]
rustc: Cleanup
Brian Anderson [Fri, 23 Mar 2012 01:01:08 +0000 (18:01 -0700)]
rustc: Move attr, parse, print to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 00:49:30 +0000 (17:49 -0700)]
rustc: Move lexer and token to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 00:42:53 +0000 (17:42 -0700)]
rustc: Remove the session dependency from front::attr
Brian Anderson [Fri, 23 Mar 2012 00:39:45 +0000 (17:39 -0700)]
rustc: Add an accessor to get the diagnostic handler from the session
Brian Anderson [Fri, 23 Mar 2012 00:31:32 +0000 (17:31 -0700)]
rustc: Move diagnostic to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 00:21:34 +0000 (17:21 -0700)]
rustc: Move fold to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 23:58:30 +0000 (16:58 -0700)]
rustc: Move interner to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 23:07:30 +0000 (16:07 -0700)]
rustc: Move ast, ast_util, visit to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 22:35:22 +0000 (15:35 -0700)]
rustc: Move codemap to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 22:27:35 +0000 (15:27 -0700)]
build: Introduce rustsyntax crate
Tim Chevalier [Thu, 29 Mar 2012 19:21:13 +0000 (12:21 -0700)]
Require "self" as base expression for intra-class method or field references
All field or method references within a class must begin with "self." now.
A bare reference to a field or method in the same class will no longer
typecheck.
Patrick Walton [Thu, 29 Mar 2012 15:57:34 +0000 (08:57 -0700)]
stdlib: Remove the now-obsolete vec::alloc_len in favor of vec::capacity
Patrick Walton [Thu, 29 Mar 2012 05:23:25 +0000 (22:23 -0700)]
test: Rewrite binarytrees to use arenas
Perf isn't bad now. Still 50% slower than Java, but faster than other GC'd languages.
Patrick Walton [Thu, 29 Mar 2012 05:22:50 +0000 (22:22 -0700)]
stdlib: Actually increase arena chunk sizes by powers of two
Patrick Walton [Thu, 29 Mar 2012 05:09:54 +0000 (22:09 -0700)]
stdlib: Allow the fast path of arena allocation to be CCI'd. 15% improvement on binary-trees.
Patrick Walton [Thu, 29 Mar 2012 04:53:58 +0000 (21:53 -0700)]
rustc: Add a vec::alloc_len and fix arena logic to use it
Patrick Walton [Thu, 29 Mar 2012 04:04:13 +0000 (21:04 -0700)]
rustc: Don't zero out arena chunks with vec::from_elem; that's slow because it calls the glue.
Patrick Walton [Thu, 29 Mar 2012 03:37:55 +0000 (20:37 -0700)]
rustc: Fix an infinite loop during size calculations for recursive region pointer types
Patrick Walton [Thu, 29 Mar 2012 03:26:28 +0000 (20:26 -0700)]
stdlib: Fix a pointer mistake in arenas
Brian Anderson [Thu, 29 Mar 2012 07:17:58 +0000 (00:17 -0700)]
core: Don't use upcall_vec_grow from str::push_char
Grahame Bowland [Wed, 28 Mar 2012 17:27:37 +0000 (01:27 +0800)]
Rewrite str::push_char in rust.
Avoid crossing to C to reallocate underlying array when possible,
if we must we now only cross once per char (not once per byte.)
Brian Anderson [Thu, 29 Mar 2012 06:18:36 +0000 (23:18 -0700)]
core: Don't call into the runtime to reserve if we have capacity
Brian Anderson [Thu, 29 Mar 2012 06:14:54 +0000 (23:14 -0700)]
core: Add str::capacity
Brian Anderson [Thu, 29 Mar 2012 06:10:58 +0000 (23:10 -0700)]
core: Add vec::capacity
Brian Anderson [Thu, 29 Mar 2012 06:00:58 +0000 (23:00 -0700)]
core: Add str::reserve_at_least
Brian Anderson [Thu, 29 Mar 2012 05:49:28 +0000 (22:49 -0700)]
core: Add and use vec::reserve_at_least
This reserves in powers of two
Brian Anderson [Thu, 29 Mar 2012 05:43:19 +0000 (22:43 -0700)]
core: Improve docs for str::reserve
Brian Anderson [Thu, 29 Mar 2012 05:36:23 +0000 (22:36 -0700)]
core: Clarify docs on vec::reserve
Tim Chevalier [Thu, 29 Mar 2012 05:44:53 +0000 (22:44 -0700)]
Bump version in INSTALL.txt
Graydon Hoare [Thu, 29 Mar 2012 03:28:53 +0000 (20:28 -0700)]
Update snaps for linux to point to snaps that actually work on RHEL5.
Graydon Hoare [Thu, 29 Mar 2012 03:28:35 +0000 (20:28 -0700)]
Remove execvpe use in general, it seems pointless and non-portable.
Graydon Hoare [Thu, 29 Mar 2012 03:28:06 +0000 (20:28 -0700)]
Fix ARFLAGS to be compatible with old RHEL5 ar.
Tim Chevalier [Thu, 29 Mar 2012 01:50:33 +0000 (18:50 -0700)]
Allow explicit self-calls within classes
Allow writing self.f() within a class that has a method f. In a future
commit, this syntax will be required. For now, you can write either
self.f() or f().
I added a "privacy" field to all methods (whether class methods or not),
which allowed me to refactor the AST somewhat (getting rid of the
class_item type; now there's just class_member).
Niko Matsakis [Thu, 29 Mar 2012 00:01:42 +0000 (17:01 -0700)]
use fresh vars in place of _|_ when incorrect # of params supplied
Niko Matsakis [Wed, 28 Mar 2012 20:42:33 +0000 (13:42 -0700)]
Detect and report types which could never be instantiated.
Fixes #2063.
Brian Anderson [Wed, 28 Mar 2012 23:32:02 +0000 (16:32 -0700)]
core: Add int8_t, etc. types to libc::types::common::c99
Graydon Hoare [Wed, 28 Mar 2012 22:16:32 +0000 (15:16 -0700)]
Fix long line.
Niko Matsakis [Wed, 28 Mar 2012 21:58:31 +0000 (14:58 -0700)]
refactor so that pretty mode tests also run aux-build. Fixes #2060.
Patrick Walton [Wed, 28 Mar 2012 21:31:01 +0000 (14:31 -0700)]
test: Un-XFAIL regions-mock-trans.rs and regions-mock-trans-impls.rs
Graydon Hoare [Wed, 28 Mar 2012 21:26:38 +0000 (14:26 -0700)]
Tidy up multiple declarations and STDC_FOO_MACROS guards in headers.
Graydon Hoare [Wed, 28 Mar 2012 21:13:00 +0000 (14:13 -0700)]
Override all non-default origins for CC/CXX/CPP, not just undefined.
Patrick Walton [Tue, 27 Mar 2012 02:00:11 +0000 (19:00 -0700)]
rustc: Universally quantify regions when calling functions. Un-XFAIL regions-addr-of-ret.rs.
Tim Chevalier [Wed, 28 Mar 2012 21:17:41 +0000 (14:17 -0700)]
Allow references to "self" within classes
Allow writing self.f within a class that has a field f. Currently,
the compiler accepts either self.f or f. In a future commit I'll
require writing self.f and not f.
Not sure whether self.f() works if f is a method (making sure that
works next).
Graydon Hoare [Wed, 28 Mar 2012 20:49:39 +0000 (13:49 -0700)]
Fix some gcc-4.4-isms, should build now on 4.1+.
Graydon Hoare [Wed, 28 Mar 2012 20:49:22 +0000 (13:49 -0700)]
Conditionalize CC / CXX / CPP to permit using other gcc versions.
Graydon Hoare [Wed, 28 Mar 2012 20:42:17 +0000 (13:42 -0700)]
Update crate URLs to point to interesting things.
Graydon Hoare [Wed, 28 Mar 2012 20:05:59 +0000 (13:05 -0700)]
Fix typo in release notes.
Jesse Ruderman [Wed, 28 Mar 2012 19:30:07 +0000 (12:30 -0700)]
Update CC fuzzer
Jesse Ruderman [Wed, 28 Mar 2012 19:29:53 +0000 (12:29 -0700)]
Update AST fuzzer
Grahame Bowland [Wed, 28 Mar 2012 09:25:54 +0000 (17:25 +0800)]
python scripts run with Python 2.4 (for RHEL5)
Graydon Hoare [Wed, 28 Mar 2012 18:29:38 +0000 (11:29 -0700)]
Don't include config.stamp in dist tarball.
Tim Chevalier [Wed, 28 Mar 2012 17:31:14 +0000 (10:31 -0700)]
Test case to make sure typestate checks the body of class constructors
Marijn Haverbeke [Wed, 28 Mar 2012 08:35:16 +0000 (10:35 +0200)]
Make sure type_use.rs doesn't get lost in recursive enums
Closes #2059
Tim Chevalier [Wed, 28 Mar 2012 05:25:10 +0000 (22:25 -0700)]
Add config.stamp to .gitignore
Tim Chevalier [Wed, 28 Mar 2012 05:08:48 +0000 (22:08 -0700)]
Enforce mutability declarations in classes; correct shapes for classes
1. Enforce mutability declarations on class fields. Don't allow any
mutation of class fields not declared as mutable (except inside the
constructor).
2. Handle classes correctly in shape (treat classes like records).
Niko Matsakis [Tue, 27 Mar 2012 22:42:37 +0000 (15:42 -0700)]
make type_kind exhaustive, add an entry for type_self (in particular)
Brian Anderson [Tue, 27 Mar 2012 22:10:25 +0000 (15:10 -0700)]
emacs: Make 'mut' a keyword
Brian Anderson [Tue, 27 Mar 2012 21:50:23 +0000 (14:50 -0700)]
core: Rename iter::to_list to to_vec. Closes #2056
Brian Anderson [Tue, 27 Mar 2012 21:03:57 +0000 (14:03 -0700)]
rust: Remove extensions' dependency on the session
Graydon Hoare [Tue, 27 Mar 2012 20:54:49 +0000 (13:54 -0700)]
Minor typo fixes.
Graydon Hoare [Tue, 27 Mar 2012 20:07:26 +0000 (13:07 -0700)]
Prep docs before pdf.
Graydon Hoare [Tue, 27 Mar 2012 19:54:43 +0000 (12:54 -0700)]
Tweak relnotes.
Marijn Haverbeke [Tue, 27 Mar 2012 15:22:57 +0000 (17:22 +0200)]
Emergency safe-ref-checker maintenance
It still has some big problems, but at least it more or less
understands block arguments now.
Closes #1925
Marijn Haverbeke [Tue, 27 Mar 2012 13:14:12 +0000 (15:14 +0200)]
Move some code over to iterator-for to see how it performs.
Marijn Haverbeke [Tue, 27 Mar 2012 11:53:11 +0000 (13:53 +0200)]
Register new snapshot
Marijn Haverbeke [Tue, 27 Mar 2012 10:45:42 +0000 (12:45 +0200)]
Add vec::each, vec::eachi, and list::each
For use with the new for construct.
Issue #1619
Marijn Haverbeke [Tue, 27 Mar 2012 10:33:13 +0000 (12:33 +0200)]
Support returning from loop blocks
The code is somewhat invasive, but it seems hard to do this in a
clean way, since the design itself involves a bunch of 'action
at a distance'.
Issue #1819
Marijn Haverbeke [Mon, 26 Mar 2012 14:09:27 +0000 (16:09 +0200)]
Support an alternate for syntax that calls a higher-order function
The last argument of the call must be a block, and the type of this
argument must a function returning bool. `break` and `cont` are
supported in the body of the block, and return `false` or `true` from
the function. When the end of the function is reached, `true` is
implicitly returned.
for vec::all([1, 2, 3]) {|elt|
if elt == 2 { break; }
log(error, elt);
}
Issue #1619
Graydon Hoare [Tue, 27 Mar 2012 05:10:02 +0000 (22:10 -0700)]
Register new snapshots.
Graydon Hoare [Tue, 27 Mar 2012 01:36:48 +0000 (18:36 -0700)]
Remove duplicate definition.
Graydon Hoare [Tue, 27 Mar 2012 01:35:18 +0000 (18:35 -0700)]
Bulk-edit mutable -> mut.
Graydon Hoare [Tue, 27 Mar 2012 01:17:55 +0000 (18:17 -0700)]
Update release notes.
Graydon Hoare [Tue, 27 Mar 2012 00:59:09 +0000 (17:59 -0700)]
Tidy up doc make rules.
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