]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoChange all uses of 'when' in alt-patterns to 'if'
Austin Seipp [Tue, 10 Jan 2012 01:15:17 +0000 (19:15 -0600)]
Change all uses of 'when' in alt-patterns to 'if'

Issue #1396

12 years agoAdd Grahame Bowland to AUTHORS.txt
Brian Anderson [Tue, 10 Jan 2012 01:19:25 +0000 (17:19 -0800)]
Add Grahame Bowland to AUTHORS.txt

12 years agoMerge pull request #1477 from erickt/master
Brian Anderson [Tue, 10 Jan 2012 01:13:35 +0000 (17:13 -0800)]
Merge pull request #1477 from erickt/master

Adding longlong and ulonglong types

12 years agoRemove proto_sugar and 'lambda' as keyword, commit to fn@.
Graydon Hoare [Tue, 10 Jan 2012 00:12:37 +0000 (16:12 -0800)]
Remove proto_sugar and 'lambda' as keyword, commit to fn@.

12 years agoFix rpath bug.
Graydon Hoare [Tue, 10 Jan 2012 00:11:25 +0000 (16:11 -0800)]
Fix rpath bug.

12 years agolibcore: add longlong and ulonglong types.
Erick Tryzelaar [Mon, 9 Jan 2012 23:14:08 +0000 (15:14 -0800)]
libcore: add longlong and ulonglong types.

12 years agoRegister snapshots
Brian Anderson [Mon, 9 Jan 2012 22:58:00 +0000 (14:58 -0800)]
Register snapshots

12 years agort: Build the stage0 runtime for non-hosts from the working dir
Brian Anderson [Mon, 9 Jan 2012 21:34:01 +0000 (13:34 -0800)]
rt: Build the stage0 runtime for non-hosts from the working dir

12 years agort: Set Linux red zone to 20K again
Brian Anderson [Mon, 9 Jan 2012 19:44:32 +0000 (11:44 -0800)]
rt: Set Linux red zone to 20K again

With runtime logging on it smashes the stack

12 years agoMake the parser accept 'if' as an alternative to 'when' in alt patterns.
Austin Seipp [Mon, 9 Jan 2012 15:42:07 +0000 (09:42 -0600)]
Make the parser accept 'if' as an alternative to 'when' in alt patterns.

Also fix the pretty printer, making it output 'if' instead of 'when'.

Issue #1396

12 years agoMerge pull request #1470 from grahame/grahame
Brian Anderson [Mon, 9 Jan 2012 18:35:48 +0000 (10:35 -0800)]
Merge pull request #1470 from grahame/grahame

add new read_chars method, fix bug in read_char

12 years agoFix error message case in two cfail test
Marijn Haverbeke [Mon, 9 Jan 2012 16:49:06 +0000 (17:49 +0100)]
Fix error message case in two cfail test

I had made the error consistent with other errors, but forgot to
also change the tests.

12 years agoIface types are not structural
Marijn Haverbeke [Mon, 9 Jan 2012 15:44:22 +0000 (16:44 +0100)]
Iface types are not structural

Not sure how they ended up being marked as such.

12 years agoWork around recursive type check for iface types
Marijn Haverbeke [Mon, 9 Jan 2012 15:07:35 +0000 (16:07 +0100)]
Work around recursive type check for iface types

They are nominal, and can safely refer to themselves.

12 years agoProperly recognize self as an upvar when closed over
Marijn Haverbeke [Mon, 9 Jan 2012 14:56:58 +0000 (15:56 +0100)]
Properly recognize self as an upvar when closed over

Closes #1463

12 years agoFix #1474: check that block args resolved to bare fns do not make use of upvars
Niko Matsakis [Mon, 9 Jan 2012 14:49:56 +0000 (06:49 -0800)]
Fix #1474: check that block args resolved to bare fns do not make use of upvars

12 years agochange spawn_connected argument to copy mode
Niko Matsakis [Mon, 9 Jan 2012 00:31:26 +0000 (16:31 -0800)]
change spawn_connected argument to copy mode

12 years agoFix bug in iface shape code
Marijn Haverbeke [Mon, 9 Jan 2012 14:12:18 +0000 (15:12 +0100)]
Fix bug in iface shape code

Issue #1437

12 years agoRemove leftover comm.rs in std
Marijn Haverbeke [Mon, 9 Jan 2012 13:53:13 +0000 (14:53 +0100)]
Remove leftover comm.rs in std

(The actual comm module lives in core.)

12 years agoFix typo in example in libcore docs
Marijn Haverbeke [Mon, 9 Jan 2012 13:44:52 +0000 (14:44 +0100)]
Fix typo in example in libcore docs

12 years agoAdd cases for iface values to rust_shape.h
Marijn Haverbeke [Mon, 9 Jan 2012 13:44:21 +0000 (14:44 +0100)]
Add cases for iface values to rust_shape.h

They appear to log okay now, but I can't promise much beyond that.

@pcwalton If you feel like taking a look, I'd be grateful. Interfaces are
boxes containing a (tydesc, dict, value_of_any_type) tuple, where the leading
tydesc describes the whole tuple.

Issue #1437

12 years agoadd tests for io::readchars and io::readchar
Grahame Bowland [Mon, 9 Jan 2012 12:49:17 +0000 (20:49 +0800)]
add tests for io::readchars and io::readchar

Additionally reformat so that 'make check' passes.

12 years agoDon't resolve upvars in fn() { ... } exprs
Marijn Haverbeke [Mon, 9 Jan 2012 10:32:18 +0000 (11:32 +0100)]
Don't resolve upvars in fn() { ... } exprs

Closes #1467

12 years agort: Fix build with clang on non-Mac
Haitao Li [Mon, 9 Jan 2012 07:28:18 +0000 (15:28 +0800)]
rt: Fix build with clang on non-Mac

12 years agoFix bustage
Jesse Ruderman [Mon, 9 Jan 2012 03:34:02 +0000 (19:34 -0800)]
Fix bustage

12 years agoUpdate fuzzer
Jesse Ruderman [Mon, 9 Jan 2012 03:24:24 +0000 (19:24 -0800)]
Update fuzzer

12 years agoAdd Reuben Morais to AUTHORS.txt
Brian Anderson [Mon, 9 Jan 2012 02:00:40 +0000 (18:00 -0800)]
Add Reuben Morais to AUTHORS.txt

12 years agoAllow Clang 3.1
Reuben Morais [Mon, 9 Jan 2012 01:53:26 +0000 (23:53 -0200)]
Allow Clang 3.1

12 years agoUpdate license text for 2012
Brian Anderson [Mon, 9 Jan 2012 00:24:09 +0000 (16:24 -0800)]
Update license text for 2012

12 years agoDeclare MIT license in crate attributes, not BSD
Brian Anderson [Mon, 9 Jan 2012 00:21:43 +0000 (16:21 -0800)]
Declare MIT license in crate attributes, not BSD

The Rust License is actually the MIT license, not BSD

12 years agoadd spawn_connected
Niko Matsakis [Sun, 8 Jan 2012 23:32:13 +0000 (15:32 -0800)]
add spawn_connected

12 years agocorrect long line
Niko Matsakis [Sun, 8 Jan 2012 23:32:03 +0000 (15:32 -0800)]
correct long line

12 years agomodify last use to take into account cap clause, add new test
Niko Matsakis [Sun, 8 Jan 2012 21:32:40 +0000 (13:32 -0800)]
modify last use to take into account cap clause, add new test

12 years agomake spawned fn copy mode so that bare fns can be used
Niko Matsakis [Sun, 8 Jan 2012 19:19:44 +0000 (11:19 -0800)]
make spawned fn copy mode so that bare fns can be used

12 years agoFirst barely-working version of casting to iface
Marijn Haverbeke [Sat, 7 Jan 2012 21:44:14 +0000 (22:44 +0100)]
First barely-working version of casting to iface

Issue #1437

12 years agoAdd fall-through case for non-iface bounds typeck::lookup_method
Marijn Haverbeke [Sun, 8 Jan 2012 20:59:37 +0000 (21:59 +0100)]
Add fall-through case for non-iface bounds typeck::lookup_method

Closes #1462

12 years agoFix some bad code in the dict interner
Marijn Haverbeke [Sat, 7 Jan 2012 19:04:16 +0000 (20:04 +0100)]
Fix some bad code in the dict interner

Issue #1436

12 years agoadd new read_chars method, fix bug in read_char
Grahame Bowland [Sun, 8 Jan 2012 16:37:03 +0000 (00:37 +0800)]
add new read_chars method, fix bug in read_char

having a read_chars method is convenient and more efficient.

the old read_char method had a bug due to re-use of the 'w' width
variable as a loop counter and so was broken for wide characters,
this patch fixes that.

12 years agocore: Update task spawning example
Brian Anderson [Sun, 8 Jan 2012 01:11:54 +0000 (17:11 -0800)]
core: Update task spawning example

12 years agodoc: typo
Brian Anderson [Sun, 8 Jan 2012 01:04:30 +0000 (17:04 -0800)]
doc: typo

12 years agoconfigure: Disable git submodule management when there is no .git dir
Brian Anderson [Sat, 7 Jan 2012 22:26:53 +0000 (14:26 -0800)]
configure: Disable git submodule management when there is no .git dir

Tarballs for distribution will not have a git repo.

12 years agofix valgrind error: allocate enough space for all type descs
Niko Matsakis [Sat, 7 Jan 2012 16:03:34 +0000 (08:03 -0800)]
fix valgrind error: allocate enough space for all type descs

12 years agochoose a new arbitrary value
Niko Matsakis [Sat, 7 Jan 2012 06:24:25 +0000 (22:24 -0800)]
choose a new arbitrary value

12 years agoadd rust_util.h header file
Niko Matsakis [Sat, 7 Jan 2012 06:13:41 +0000 (22:13 -0800)]
add rust_util.h header file

12 years agorewrite to use old C++-based mechanism
Niko Matsakis [Sat, 7 Jan 2012 06:02:05 +0000 (22:02 -0800)]
rewrite to use old C++-based mechanism

12 years agoupdate to use new spawn syntax
Niko Matsakis [Sat, 7 Jan 2012 04:55:56 +0000 (20:55 -0800)]
update to use new spawn syntax

12 years agoreport unicode decode failures nicely
Niko Matsakis [Sat, 7 Jan 2012 03:56:33 +0000 (19:56 -0800)]
report unicode decode failures nicely

12 years agorevert changes to trans_uniq.rs
Niko Matsakis [Sat, 7 Jan 2012 03:40:49 +0000 (19:40 -0800)]
revert changes to trans_uniq.rs

12 years agorevert metrics
Niko Matsakis [Sat, 7 Jan 2012 03:39:18 +0000 (19:39 -0800)]
revert metrics

12 years agoplug leak: free shared type descrs recursively, as we ought to
Niko Matsakis [Sat, 7 Jan 2012 01:46:33 +0000 (17:46 -0800)]
plug leak: free shared type descrs recursively, as we ought to

12 years agohack the tydesc that is registered with a malloc to be what cc expects
Niko Matsakis [Fri, 6 Jan 2012 23:12:42 +0000 (15:12 -0800)]
hack the tydesc that is registered with a malloc to be what cc expects

12 years agofix how we walk functions to match new closure fmt
Niko Matsakis [Fri, 6 Jan 2012 20:06:35 +0000 (12:06 -0800)]
fix how we walk functions to match new closure fmt

12 years agorejigger impl to have an opaque closure ptr rather than
Niko Matsakis [Fri, 6 Jan 2012 00:19:12 +0000 (16:19 -0800)]
rejigger impl to have an opaque closure ptr rather than
opaque closure

12 years agocollapse sizeof, alignof into metrics, pass along an instance if avail
Niko Matsakis [Thu, 5 Jan 2012 20:05:22 +0000 (12:05 -0800)]
collapse sizeof, alignof into metrics, pass along an instance if avail

12 years agomake size_of and align_of take an optional value
Niko Matsakis [Thu, 5 Jan 2012 18:44:59 +0000 (10:44 -0800)]
make size_of and align_of take an optional value

12 years agoemit the take glue for closure tydescs
Niko Matsakis [Thu, 5 Jan 2012 17:27:45 +0000 (09:27 -0800)]
emit the take glue for closure tydescs

12 years agoport over the tests to use the new API
Niko Matsakis [Thu, 5 Jan 2012 05:14:53 +0000 (21:14 -0800)]
port over the tests to use the new API

12 years agorewrite task tests
Niko Matsakis [Thu, 5 Jan 2012 04:11:39 +0000 (20:11 -0800)]
rewrite task tests

12 years agosimplify task impl
Niko Matsakis [Sat, 31 Dec 2011 04:46:08 +0000 (20:46 -0800)]
simplify task impl

12 years agoremove trailing whitespace
Niko Matsakis [Sat, 7 Jan 2012 06:07:04 +0000 (22:07 -0800)]
remove trailing whitespace

12 years agoGet these files compiling again
Jesse Ruderman [Sat, 7 Jan 2012 06:06:32 +0000 (22:06 -0800)]
Get these files compiling again

12 years agotest exposing memory management failure for #1078
Niko Matsakis [Sat, 7 Jan 2012 05:14:20 +0000 (21:14 -0800)]
test exposing memory management failure for #1078

12 years agoRevert "rt: Reduce mac red zone to 6K"
Brian Anderson [Sat, 7 Jan 2012 02:16:19 +0000 (18:16 -0800)]
Revert "rt: Reduce mac red zone to 6K"

This reverts commit d499e739a1eb67e887f5756f9dfef17199a6d041.

12 years agocargo: Print rustc's stdout when compilation fails
Brian Anderson [Sat, 7 Jan 2012 02:04:22 +0000 (18:04 -0800)]
cargo: Print rustc's stdout when compilation fails

stdout is where all the useful info is, not stderr.

12 years agort: Reduce mac red zone to 6K
Brian Anderson [Sat, 7 Jan 2012 00:42:26 +0000 (16:42 -0800)]
rt: Reduce mac red zone to 6K

12 years agorustc: Use std::homedir to locate /home/banderson
Brian Anderson [Sat, 7 Jan 2012 00:38:08 +0000 (16:38 -0800)]
rustc: Use std::homedir to locate /home/banderson

Issue #1359

12 years agostd: Untabify
Brian Anderson [Sat, 7 Jan 2012 00:37:04 +0000 (16:37 -0800)]
std: Untabify

12 years agostd: Add fs::homedir
Brian Anderson [Fri, 6 Jan 2012 19:55:43 +0000 (11:55 -0800)]
std: Add fs::homedir

Returns the home directory of the user as appropriate for the platform.

Issue #1359

12 years agort: Fail the scheduler immediately on task failure in win32
Brian Anderson [Sat, 7 Jan 2012 00:18:33 +0000 (16:18 -0800)]
rt: Fail the scheduler immediately on task failure in win32

12 years agoDisallow variable names that shadow tags in scope
Tim Chevalier [Thu, 5 Jan 2012 19:46:38 +0000 (11:46 -0800)]
Disallow variable names that shadow tags in scope

Now, if you have a tag named "foo", a variable declaration like
"let foo..." is illegal. This change makes it possible to eliminate
the '.' after a nullary tag pattern in an alt (but I'll be doing
that in a future commit) -- as now it's always obvious whether a
name refers to a tag or a new declared variable.

resolve implements this change -- all the other changes are just to
get rid of existing code that declares variables that shadow tag
names.

12 years agoEliminate a use of map::get in freevars
Tim Chevalier [Thu, 5 Jan 2012 19:33:22 +0000 (11:33 -0800)]
Eliminate a use of map::get in freevars

map::get is evil -- just say no!

12 years agoMerge pull request #1450 from erickt/master
Graydon Hoare [Fri, 6 Jan 2012 21:04:49 +0000 (13:04 -0800)]
Merge pull request #1450 from erickt/master

adding some misc functions and some functions just for [u8]

12 years agoAdd some basic comments to trans_imp.rs
Marijn Haverbeke [Fri, 6 Jan 2012 16:50:55 +0000 (17:50 +0100)]
Add some basic comments to trans_imp.rs

12 years agoMake binding of fns with bounded type parameters work
Marijn Haverbeke [Fri, 6 Jan 2012 16:29:06 +0000 (17:29 +0100)]
Make binding of fns with bounded type parameters work

Interns non-static dicts to heap-allocated equivalents so that they no
longer have stack scope.

Closes #1436

12 years agoSupport interface casting in the typechecker
Marijn Haverbeke [Fri, 6 Jan 2012 15:25:04 +0000 (16:25 +0100)]
Support interface casting in the typechecker

Issue #1437

12 years agoDon't delete css and js files in doc/ when making clean
Marijn Haverbeke [Fri, 6 Jan 2012 15:18:27 +0000 (16:18 +0100)]
Don't delete css and js files in doc/ when making clean

We have a bunch of these in the repository.

12 years agoStatically allocate static dicts
Marijn Haverbeke [Fri, 6 Jan 2012 13:22:31 +0000 (14:22 +0100)]
Statically allocate static dicts

Issue #1436

12 years agoFix pretty-printing of ty params in iface methods
Marijn Haverbeke [Fri, 6 Jan 2012 09:36:55 +0000 (10:36 +0100)]
Fix pretty-printing of ty params in iface methods

12 years agoFix bug in method type parameter passing
Marijn Haverbeke [Fri, 6 Jan 2012 09:23:55 +0000 (10:23 +0100)]
Fix bug in method type parameter passing

It would occasionally pass the wrong type parameter, when calling
a generic method from a generic impl on a bounded param type.

12 years agolibstd: rename c_vec::size to len.
Erick Tryzelaar [Fri, 6 Jan 2012 16:12:18 +0000 (08:12 -0800)]
libstd: rename c_vec::size to len.

12 years agoadd alignment to i386 for good measure, though we do not yet
Niko Matsakis [Fri, 6 Jan 2012 15:57:56 +0000 (07:57 -0800)]
add alignment to i386 for good measure, though we do not yet
save SSE regs in i386 (we ought to, though!)

12 years agolibcore: add [u8] helper functions to vec.
Erick Tryzelaar [Fri, 6 Jan 2012 15:36:56 +0000 (07:36 -0800)]
libcore: add [u8] helper functions to vec.

12 years agolibstd: switch map to use libcore's hash functions.
Erick Tryzelaar [Tue, 27 Dec 2011 02:59:50 +0000 (18:59 -0800)]
libstd: switch map to use libcore's hash functions.

12 years agolibcore: add a trivial uint hash function.
Erick Tryzelaar [Tue, 27 Dec 2011 02:58:40 +0000 (18:58 -0800)]
libcore: add a trivial uint hash function.

12 years agolibcore: Add binop functions to u32 and u64
Erick Tryzelaar [Tue, 27 Dec 2011 02:15:17 +0000 (18:15 -0800)]
libcore: Add binop functions to u32 and u64

12 years agofix alignment of registers structure
Niko Matsakis [Fri, 6 Jan 2012 15:45:06 +0000 (07:45 -0800)]
fix alignment of registers structure

12 years agobuild: Don't delete llvm files as part of make clean
Brian Anderson [Fri, 6 Jan 2012 06:46:13 +0000 (22:46 -0800)]
build: Don't delete llvm files as part of make clean

Doing this is just resulting in a broken workspace. We have a clean-llvm
target that does the right thing. If we want to we can make it a dependency
of clean, but most people don't need to clean llvm and doing so results
in a lengthy rebuild.

12 years agolibcore: Use correct link name for lgamma_r on win32
Brian Anderson [Fri, 6 Jan 2012 05:34:33 +0000 (21:34 -0800)]
libcore: Use correct link name for lgamma_r on win32

12 years agoStop configure early if git or subconfigures fail.
Graydon Hoare [Fri, 6 Jan 2012 02:59:54 +0000 (18:59 -0800)]
Stop configure early if git or subconfigures fail.

12 years agorustc: Stop exported back::rpath::test
Brian Anderson [Fri, 6 Jan 2012 02:23:28 +0000 (18:23 -0800)]
rustc: Stop exported back::rpath::test

Tests no longer need to be exported

12 years agorustc: Allow the test runner to run unexported tests
Brian Anderson [Fri, 6 Jan 2012 02:16:42 +0000 (18:16 -0800)]
rustc: Allow the test runner to run unexported tests

12 years agoAttempt to fix build breakage due to lgammaf_r having two leading underscores on...
Graydon Hoare [Fri, 6 Jan 2012 01:54:16 +0000 (17:54 -0800)]
Attempt to fix build breakage due to lgammaf_r having two leading underscores on mingw.

12 years agorustc: Configure out #[test] functions when not testing
Brian Anderson [Fri, 6 Jan 2012 01:30:00 +0000 (17:30 -0800)]
rustc: Configure out #[test] functions when not testing

12 years agoSimplify NSIS package script.
Graydon Hoare [Fri, 6 Jan 2012 01:03:02 +0000 (17:03 -0800)]
Simplify NSIS package script.

12 years agoFix a couple paths in the dist target.
Graydon Hoare [Fri, 6 Jan 2012 00:36:34 +0000 (16:36 -0800)]
Fix a couple paths in the dist target.

12 years agoFix LICENSE.txt pointing to the wrong filenames.
Graydon Hoare [Fri, 6 Jan 2012 00:36:19 +0000 (16:36 -0800)]
Fix LICENSE.txt pointing to the wrong filenames.

12 years agorustc: Add cargo's lib directory to search paths
Brian Anderson [Fri, 6 Jan 2012 00:03:28 +0000 (16:03 -0800)]
rustc: Add cargo's lib directory to search paths

12 years agoUse precise return type to allocate retslot in trans_args
Marijn Haverbeke [Thu, 5 Jan 2012 21:45:02 +0000 (22:45 +0100)]
Use precise return type to allocate retslot in trans_args

Using type_of_or_i8 did, predictably, allocate an i8 for a type parameter,
which leads to memory corruption and general confusion.

Closes #1443

12 years agomake test typecheck
Niko Matsakis [Thu, 5 Jan 2012 06:07:03 +0000 (22:07 -0800)]
make test typecheck

12 years agofix pretty printer to correctly insert parens for disamb
Niko Matsakis [Thu, 5 Jan 2012 06:01:58 +0000 (22:01 -0800)]
fix pretty printer to correctly insert parens for disamb