]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agobuild: Add --enable-debug configure option
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.

12 years agotest: Prevent run-fail/too-much-recursion from being optimized to nothing
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

12 years agort: Track backtraces of all allocations with RUSTRT_TRACK_ALLOCATIONS=3
Brian Anderson [Tue, 27 Mar 2012 01:58:40 +0000 (18:58 -0700)]
rt: Track backtraces of all allocations with RUSTRT_TRACK_ALLOCATIONS=3

12 years agort: Make the CC sweep use the box annihilator
Brian Anderson [Mon, 26 Mar 2012 23:27:35 +0000 (16:27 -0700)]
rt: Make the CC sweep use the box annihilator

12 years agorustc: Generate fewer landing pads
Brian Anderson [Mon, 26 Mar 2012 23:25:29 +0000 (16:25 -0700)]
rustc: Generate fewer landing pads

12 years agort: Make the box annihilator walk and delete contents
Brian Anderson [Mon, 26 Mar 2012 23:24:29 +0000 (16:24 -0700)]
rt: Make the box annihilator walk and delete contents

12 years agort: For now, only run the box annihilator after task failure
Brian Anderson [Mon, 26 Mar 2012 21:39:39 +0000 (14:39 -0700)]
rt: For now, only run the box annihilator after task failure

12 years agorustc: Only invoke when there are cleanups
Brian Anderson [Mon, 26 Mar 2012 20:30:56 +0000 (13:30 -0700)]
rustc: Only invoke when there are cleanups

12 years agorustc: Delete some unused invoke code
Brian Anderson [Mon, 26 Mar 2012 19:45:02 +0000 (12:45 -0700)]
rustc: Delete some unused invoke code

12 years agorustc: Don't generate landing pad cleanups for boxy things
Brian Anderson [Sat, 24 Mar 2012 00:52:20 +0000 (17:52 -0700)]
rustc: Don't generate landing pad cleanups for boxy things

12 years agort: Free all outstanding boxes at task death
Brian Anderson [Sat, 24 Mar 2012 00:51:54 +0000 (17:51 -0700)]
rt: Free all outstanding boxes at task death

12 years agorustc: Move ext to librustsyntax
Brian Anderson [Thu, 29 Mar 2012 20:48:05 +0000 (13:48 -0700)]
rustc: Move ext to librustsyntax

12 years agobuild: Add librustsyntax to snapshots
Brian Anderson [Thu, 29 Mar 2012 19:03:49 +0000 (12:03 -0700)]
build: Add librustsyntax to snapshots

12 years agorustc: Remove the rustsyntax::attr wrapper in front
Brian Anderson [Fri, 23 Mar 2012 01:16:22 +0000 (18:16 -0700)]
rustc: Remove the rustsyntax::attr wrapper in front

12 years agorustc: Cleanup
Brian Anderson [Fri, 23 Mar 2012 01:13:28 +0000 (18:13 -0700)]
rustc: Cleanup

12 years agorustc: Move attr, parse, print to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 01:01:08 +0000 (18:01 -0700)]
rustc: Move attr, parse, print to rustsyntax

12 years agorustc: Move lexer and token to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 00:49:30 +0000 (17:49 -0700)]
rustc: Move lexer and token to rustsyntax

12 years agorustc: Remove the session dependency from front::attr
Brian Anderson [Fri, 23 Mar 2012 00:42:53 +0000 (17:42 -0700)]
rustc: Remove the session dependency from front::attr

12 years agorustc: Add an accessor to get the diagnostic handler from the session
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

12 years agorustc: Move diagnostic to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 00:31:32 +0000 (17:31 -0700)]
rustc: Move diagnostic to rustsyntax

12 years agorustc: Move fold to rustsyntax
Brian Anderson [Fri, 23 Mar 2012 00:21:34 +0000 (17:21 -0700)]
rustc: Move fold to rustsyntax

12 years agorustc: Move interner to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 23:58:30 +0000 (16:58 -0700)]
rustc: Move interner to rustsyntax

12 years agorustc: Move ast, ast_util, visit to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 23:07:30 +0000 (16:07 -0700)]
rustc: Move ast, ast_util, visit to rustsyntax

12 years agorustc: Move codemap to rustsyntax
Brian Anderson [Thu, 22 Mar 2012 22:35:22 +0000 (15:35 -0700)]
rustc: Move codemap to rustsyntax

12 years agobuild: Introduce rustsyntax crate
Brian Anderson [Thu, 22 Mar 2012 22:27:35 +0000 (15:27 -0700)]
build: Introduce rustsyntax crate

12 years agoRequire "self" as base expression for intra-class method or field references
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.

12 years agostdlib: Remove the now-obsolete vec::alloc_len in favor of vec::capacity
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

12 years agotest: Rewrite binarytrees to use arenas
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.

12 years agostdlib: Actually increase arena chunk sizes by powers of two
Patrick Walton [Thu, 29 Mar 2012 05:22:50 +0000 (22:22 -0700)]
stdlib: Actually increase arena chunk sizes by powers of two

12 years agostdlib: Allow the fast path of arena allocation to be CCI'd. 15% improvement on binar...
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.

12 years agorustc: Add a vec::alloc_len and fix arena logic to use it
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

12 years agorustc: Don't zero out arena chunks with vec::from_elem; that's slow because it calls...
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.

12 years agorustc: Fix an infinite loop during size calculations for recursive region pointer...
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

12 years agostdlib: Fix a pointer mistake in arenas
Patrick Walton [Thu, 29 Mar 2012 03:26:28 +0000 (20:26 -0700)]
stdlib: Fix a pointer mistake in arenas

12 years agocore: Don't use upcall_vec_grow from str::push_char
Brian Anderson [Thu, 29 Mar 2012 07:17:58 +0000 (00:17 -0700)]
core: Don't use upcall_vec_grow from str::push_char

12 years agoRewrite str::push_char in rust.
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.)

12 years agocore: Don't call into the runtime to reserve if we have capacity
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

12 years agocore: Add str::capacity
Brian Anderson [Thu, 29 Mar 2012 06:14:54 +0000 (23:14 -0700)]
core: Add str::capacity

12 years agocore: Add vec::capacity
Brian Anderson [Thu, 29 Mar 2012 06:10:58 +0000 (23:10 -0700)]
core: Add vec::capacity

12 years agocore: Add str::reserve_at_least
Brian Anderson [Thu, 29 Mar 2012 06:00:58 +0000 (23:00 -0700)]
core: Add str::reserve_at_least

12 years agocore: Add and use vec::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

12 years agocore: Improve docs for str::reserve
Brian Anderson [Thu, 29 Mar 2012 05:43:19 +0000 (22:43 -0700)]
core: Improve docs for str::reserve

12 years agocore: Clarify docs on vec::reserve
Brian Anderson [Thu, 29 Mar 2012 05:36:23 +0000 (22:36 -0700)]
core: Clarify docs on vec::reserve

12 years agoBump version in INSTALL.txt
Tim Chevalier [Thu, 29 Mar 2012 05:44:53 +0000 (22:44 -0700)]
Bump version in INSTALL.txt

12 years agoUpdate snaps for linux to point to snaps that actually work on RHEL5.
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.

12 years agoRemove execvpe use in general, it seems pointless and non-portable.
Graydon Hoare [Thu, 29 Mar 2012 03:28:35 +0000 (20:28 -0700)]
Remove execvpe use in general, it seems pointless and non-portable.

12 years agoFix ARFLAGS to be compatible with old RHEL5 ar.
Graydon Hoare [Thu, 29 Mar 2012 03:28:06 +0000 (20:28 -0700)]
Fix ARFLAGS to be compatible with old RHEL5 ar.

12 years agoAllow explicit self-calls within classes
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).

12 years agouse fresh vars in place of _|_ when incorrect # of params supplied
Niko Matsakis [Thu, 29 Mar 2012 00:01:42 +0000 (17:01 -0700)]
use fresh vars in place of _|_ when incorrect # of params supplied

12 years agoDetect and report types which could never be instantiated.
Niko Matsakis [Wed, 28 Mar 2012 20:42:33 +0000 (13:42 -0700)]
Detect and report types which could never be instantiated.

Fixes #2063.

12 years agocore: Add int8_t, etc. types to libc::types::common::c99
Brian Anderson [Wed, 28 Mar 2012 23:32:02 +0000 (16:32 -0700)]
core: Add int8_t, etc. types to libc::types::common::c99

12 years agoFix long line.
Graydon Hoare [Wed, 28 Mar 2012 22:16:32 +0000 (15:16 -0700)]
Fix long line.

12 years agorefactor so that pretty mode tests also run aux-build. Fixes #2060.
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.

12 years agotest: Un-XFAIL regions-mock-trans.rs and regions-mock-trans-impls.rs
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

12 years agoTidy up multiple declarations and STDC_FOO_MACROS guards in headers.
Graydon Hoare [Wed, 28 Mar 2012 21:26:38 +0000 (14:26 -0700)]
Tidy up multiple declarations and STDC_FOO_MACROS guards in headers.

12 years agoOverride all non-default origins for CC/CXX/CPP, not just undefined.
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.

12 years agorustc: Universally quantify regions when calling functions. Un-XFAIL regions-addr...
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.

12 years agoAllow references to "self" within classes
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).

12 years agoFix some gcc-4.4-isms, should build now on 4.1+.
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+.

12 years agoConditionalize CC / CXX / CPP to permit using other gcc versions.
Graydon Hoare [Wed, 28 Mar 2012 20:49:22 +0000 (13:49 -0700)]
Conditionalize CC / CXX / CPP to permit using other gcc versions.

12 years agoUpdate crate URLs to point to interesting things.
Graydon Hoare [Wed, 28 Mar 2012 20:42:17 +0000 (13:42 -0700)]
Update crate URLs to point to interesting things.

12 years agoFix typo in release notes.
Graydon Hoare [Wed, 28 Mar 2012 20:05:59 +0000 (13:05 -0700)]
Fix typo in release notes.

12 years agoUpdate CC fuzzer
Jesse Ruderman [Wed, 28 Mar 2012 19:30:07 +0000 (12:30 -0700)]
Update CC fuzzer

12 years agoUpdate AST fuzzer
Jesse Ruderman [Wed, 28 Mar 2012 19:29:53 +0000 (12:29 -0700)]
Update AST fuzzer

12 years agopython scripts run with Python 2.4 (for RHEL5)
Grahame Bowland [Wed, 28 Mar 2012 09:25:54 +0000 (17:25 +0800)]
python scripts run with Python 2.4 (for RHEL5)

12 years agoDon't include config.stamp in dist tarball.
Graydon Hoare [Wed, 28 Mar 2012 18:29:38 +0000 (11:29 -0700)]
Don't include config.stamp in dist tarball.

12 years agoTest case to make sure typestate checks the body of class constructors
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

12 years agoMake sure type_use.rs doesn't get lost in recursive enums
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

12 years agoAdd config.stamp to .gitignore
Tim Chevalier [Wed, 28 Mar 2012 05:25:10 +0000 (22:25 -0700)]
Add config.stamp to .gitignore

12 years agoEnforce mutability declarations in classes; correct shapes for classes
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).

12 years agomake type_kind exhaustive, add an entry for type_self (in particular)
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)

12 years agoemacs: Make 'mut' a keyword
Brian Anderson [Tue, 27 Mar 2012 22:10:25 +0000 (15:10 -0700)]
emacs: Make 'mut' a keyword

12 years agocore: Rename iter::to_list to to_vec. Closes #2056
Brian Anderson [Tue, 27 Mar 2012 21:50:23 +0000 (14:50 -0700)]
core: Rename iter::to_list to to_vec. Closes #2056

12 years agorust: Remove extensions' dependency on the session
Brian Anderson [Tue, 27 Mar 2012 21:03:57 +0000 (14:03 -0700)]
rust: Remove extensions' dependency on the session

12 years agoMinor typo fixes.
Graydon Hoare [Tue, 27 Mar 2012 20:54:49 +0000 (13:54 -0700)]
Minor typo fixes.

12 years agoPrep docs before pdf.
Graydon Hoare [Tue, 27 Mar 2012 20:07:26 +0000 (13:07 -0700)]
Prep docs before pdf.

12 years agoTweak relnotes.
Graydon Hoare [Tue, 27 Mar 2012 19:54:43 +0000 (12:54 -0700)]
Tweak relnotes.

12 years agoEmergency safe-ref-checker maintenance
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

12 years agoMove some code over to iterator-for to see how it performs.
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.

12 years agoRegister new snapshot
Marijn Haverbeke [Tue, 27 Mar 2012 11:53:11 +0000 (13:53 +0200)]
Register new snapshot

12 years agoAdd vec::each, vec::eachi, and list::each
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

12 years agoSupport returning from loop blocks
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

12 years agoSupport an alternate for syntax that calls a higher-order function
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

12 years agoRegister new snapshots.
Graydon Hoare [Tue, 27 Mar 2012 05:10:02 +0000 (22:10 -0700)]
Register new snapshots.

12 years agoRemove duplicate definition.
Graydon Hoare [Tue, 27 Mar 2012 01:36:48 +0000 (18:36 -0700)]
Remove duplicate definition.

12 years agoBulk-edit mutable -> mut.
Graydon Hoare [Tue, 27 Mar 2012 01:35:18 +0000 (18:35 -0700)]
Bulk-edit mutable -> mut.

12 years agoUpdate release notes.
Graydon Hoare [Tue, 27 Mar 2012 01:17:55 +0000 (18:17 -0700)]
Update release notes.

12 years agoTidy up doc make rules.
Graydon Hoare [Tue, 27 Mar 2012 00:59:09 +0000 (17:59 -0700)]
Tidy up doc make rules.

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