]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoMore documentation for alt expressions
Matt Brubeck [Fri, 28 Oct 2011 23:01:34 +0000 (16:01 -0700)]
More documentation for alt expressions

12 years agoDocument how RUST_LOG works
Brian Anderson [Fri, 28 Oct 2011 22:47:20 +0000 (15:47 -0700)]
Document how RUST_LOG works

12 years agoCleanup: Remove uneccesary generic_cmp function.
Matt Brubeck [Fri, 28 Oct 2011 21:20:10 +0000 (14:20 -0700)]
Cleanup: Remove uneccesary generic_cmp function.

12 years agoAdd more isNaN tests
Matt Brubeck [Fri, 28 Oct 2011 19:56:54 +0000 (12:56 -0700)]
Add more isNaN tests

12 years agoChange behavior of float::nonpositive/nonnegative
Matt Brubeck [Fri, 28 Oct 2011 00:45:04 +0000 (17:45 -0700)]
Change behavior of float::nonpositive/nonnegative

Rather than being defined as !positive and !negative, these should act the
same as negative and positive (respectively).  The only effect of this change
should be that all four functions will now return false for NaN.

12 years agoUse IEEE 754 semantics for NaN (Issue #1084)
Matt Brubeck [Fri, 28 Oct 2011 05:01:30 +0000 (22:01 -0700)]
Use IEEE 754 semantics for NaN (Issue #1084)

12 years ago+0.0 should be positive and -0.0 should be negative.
Matt Brubeck [Thu, 27 Oct 2011 23:22:16 +0000 (16:22 -0700)]
+0.0 should be positive and -0.0 should be negative.

12 years agostdlib: Replace an unsafe cast with ptr::null
Brian Anderson [Fri, 28 Oct 2011 21:25:40 +0000 (14:25 -0700)]
stdlib: Replace an unsafe cast with ptr::null

12 years agostdlib: Make reinterpret_cast and leak unsafe
Brian Anderson [Fri, 28 Oct 2011 21:19:17 +0000 (14:19 -0700)]
stdlib: Make reinterpret_cast and leak unsafe

12 years agostdlib: Make merge_sort take [mutable? T]
Brian Anderson [Fri, 28 Oct 2011 20:56:01 +0000 (13:56 -0700)]
stdlib: Make merge_sort take [mutable? T]

12 years agostdlib: Fix the list::foldl implementation
Brian Anderson [Fri, 28 Oct 2011 20:45:32 +0000 (13:45 -0700)]
stdlib: Fix the list::foldl implementation

12 years agostdlib: Rename list::length to list::len to match vec::len
Brian Anderson [Fri, 28 Oct 2011 20:37:19 +0000 (13:37 -0700)]
stdlib: Rename list::length to list::len to match vec::len

12 years agostdlib: Rename the 'ls_' param in list functions to 'ls'
Brian Anderson [Fri, 28 Oct 2011 20:34:17 +0000 (13:34 -0700)]
stdlib: Rename the 'ls_' param in list functions to 'ls'

12 years agostdlib: Make list::from_vec more efficient
Brian Anderson [Fri, 28 Oct 2011 20:32:11 +0000 (13:32 -0700)]
stdlib: Make list::from_vec more efficient

12 years agostdlib: make list::from_vec take [mutable? T]
Brian Anderson [Fri, 28 Oct 2011 20:23:50 +0000 (13:23 -0700)]
stdlib: make list::from_vec take [mutable? T]

12 years agorustc: Remove broken --depend flag
Brian Anderson [Fri, 28 Oct 2011 19:56:51 +0000 (12:56 -0700)]
rustc: Remove broken --depend flag

12 years agoMan page cleanup
Brian Anderson [Fri, 28 Oct 2011 19:53:57 +0000 (12:53 -0700)]
Man page cleanup

12 years agorustc: -h cleanup
Brian Anderson [Fri, 28 Oct 2011 19:51:46 +0000 (12:51 -0700)]
rustc: -h cleanup

12 years agorustc: Change --OptLevel to --opt-level
Brian Anderson [Fri, 28 Oct 2011 19:49:19 +0000 (12:49 -0700)]
rustc: Change --OptLevel to --opt-level

12 years agoMore man page cleanup
Brian Anderson [Fri, 28 Oct 2011 19:45:14 +0000 (12:45 -0700)]
More man page cleanup

12 years agoUpdate man page for default library naming
Brian Anderson [Fri, 28 Oct 2011 19:04:53 +0000 (12:04 -0700)]
Update man page for default library naming

12 years agorustc: Use consistent error handling in main
Brian Anderson [Fri, 28 Oct 2011 18:57:01 +0000 (11:57 -0700)]
rustc: Use consistent error handling in main

12 years agorustc: Extract error reporting from codemap
Brian Anderson [Fri, 28 Oct 2011 18:43:07 +0000 (11:43 -0700)]
rustc: Extract error reporting from codemap

12 years agoReorder statements in rustc main to avoid bounds check
Brian Anderson [Fri, 28 Oct 2011 18:17:07 +0000 (11:17 -0700)]
Reorder statements in rustc main to avoid bounds check

12 years agorustc: Lift output file name handling out of main
Haitao Li [Fri, 28 Oct 2011 07:53:57 +0000 (15:53 +0800)]
rustc: Lift output file name handling out of main

12 years agoProduce dyn libraries with proper names
Haitao Li [Fri, 28 Oct 2011 06:57:39 +0000 (14:57 +0800)]
Produce dyn libraries with proper names

Issue #744

12 years agoMake shared kind the default only for generic functions
Marijn Haverbeke [Fri, 28 Oct 2011 15:00:14 +0000 (17:00 +0200)]
Make shared kind the default only for generic functions

You almost never want a function with pinned type params. For
types, objects, resources, and tags, pinned types are actually often
more sane. For most of these, shared rarely makes sense. Only tricky
case is objs -- you'll have to think about the kinds you want there.

Issue #1076

12 years agoMove to blocks, rather than fn@s, in parser.rs
Marijn Haverbeke [Fri, 28 Oct 2011 14:41:56 +0000 (16:41 +0200)]
Move to blocks, rather than fn@s, in parser.rs

12 years agoMove to short type parameter keywords
Marijn Haverbeke [Fri, 28 Oct 2011 13:09:12 +0000 (15:09 +0200)]
Move to short type parameter keywords

Issue #1076

12 years agoRegister snapshot
Marijn Haverbeke [Fri, 28 Oct 2011 13:08:53 +0000 (15:08 +0200)]
Register snapshot

12 years agoMove to short kind kinds words in test suite
Marijn Haverbeke [Fri, 28 Oct 2011 12:57:49 +0000 (14:57 +0200)]
Move to short kind kinds words in test suite

Issue #1076

12 years agoStart accepting short keywords for parameter kinds
Marijn Haverbeke [Fri, 28 Oct 2011 12:57:35 +0000 (14:57 +0200)]
Start accepting short keywords for parameter kinds

This is a pre-snapshot commit to be able to implement #1076 without
the bootstrap compiler getting in my way.

12 years agoRemove whitespace
Brian Anderson [Fri, 28 Oct 2011 04:35:08 +0000 (21:35 -0700)]
Remove whitespace

12 years agoAdd std::vec::foldr
Brian Anderson [Fri, 28 Oct 2011 04:34:16 +0000 (21:34 -0700)]
Add std::vec::foldr

12 years agoAdd a test for std::vec::iter2
Brian Anderson [Fri, 28 Oct 2011 04:17:51 +0000 (21:17 -0700)]
Add a test for std::vec::iter2

12 years agoAdd reverse iterators to std::vec
Brian Anderson [Fri, 28 Oct 2011 04:09:02 +0000 (21:09 -0700)]
Add reverse iterators to std::vec

12 years agoRemove std::vec::eachi. Same function as iter2.
Brian Anderson [Fri, 28 Oct 2011 03:50:10 +0000 (20:50 -0700)]
Remove std::vec::eachi. Same function as iter2.

12 years agoImplement vec::foldl without recursion
Brian Anderson [Fri, 28 Oct 2011 03:47:06 +0000 (20:47 -0700)]
Implement vec::foldl without recursion

12 years agoAdd std::vec::iter
Brian Anderson [Fri, 28 Oct 2011 03:29:13 +0000 (20:29 -0700)]
Add std::vec::iter

12 years agoRemove std::int::eq_alias
Brian Anderson [Fri, 28 Oct 2011 01:23:06 +0000 (18:23 -0700)]
Remove std::int::eq_alias

This is the exact same function as int::eq

12 years agoMake option::is_some option::is_none pure
Brian Anderson [Fri, 28 Oct 2011 01:15:58 +0000 (18:15 -0700)]
Make option::is_some option::is_none pure

12 years agoMake vec::reversed take [mutable? T]
Brian Anderson [Fri, 28 Oct 2011 00:49:13 +0000 (17:49 -0700)]
Make vec::reversed take [mutable? T]

12 years agoMake std:vec::grow_fn take an init_op type
Brian Anderson [Fri, 28 Oct 2011 00:06:49 +0000 (17:06 -0700)]
Make std:vec::grow_fn take an init_op type

12 years agoReorder std::vec so the documentation renders better
Brian Anderson [Fri, 28 Oct 2011 00:03:38 +0000 (17:03 -0700)]
Reorder std::vec so the documentation renders better

Put all types first, then predicates, then functions

12 years agoConvert various functions in std to take lambda blocks
Brian Anderson [Thu, 27 Oct 2011 23:27:47 +0000 (16:27 -0700)]
Convert various functions in std to take lambda blocks

12 years agoDocument std::bitv
Brian Anderson [Thu, 27 Oct 2011 22:35:56 +0000 (15:35 -0700)]
Document std::bitv

12 years agoFix typo in Makefile.in
Brian Anderson [Thu, 27 Oct 2011 22:04:29 +0000 (15:04 -0700)]
Fix typo in Makefile.in

12 years agoAdd a make docs target
Brian Anderson [Thu, 27 Oct 2011 22:02:32 +0000 (15:02 -0700)]
Add a make docs target

12 years agoAdd std docs to the build process
Brian Anderson [Thu, 27 Oct 2011 21:59:22 +0000 (14:59 -0700)]
Add std docs to the build process

12 years agoAdd more std docs
Brian Anderson [Thu, 27 Oct 2011 21:54:18 +0000 (14:54 -0700)]
Add more std docs

12 years agoUse the std::term color constants in the codemap
Brian Anderson [Thu, 27 Oct 2011 20:52:00 +0000 (13:52 -0700)]
Use the std::term color constants in the codemap

Exported constants work now. Woo!

12 years agoRemove uint::max/min in favor if math::max/min
Matt Brubeck [Thu, 27 Oct 2011 20:04:06 +0000 (13:04 -0700)]
Remove uint::max/min in favor if math::max/min

12 years agoAdd documentation to std::uint
Matt Brubeck [Thu, 27 Oct 2011 19:57:48 +0000 (12:57 -0700)]
Add documentation to std::uint

12 years agoAdd std documentation for float and u8 functions
Matt Brubeck [Thu, 27 Oct 2011 19:46:55 +0000 (12:46 -0700)]
Add std documentation for float and u8 functions

12 years agoMark uint add/sub/mul/div/rem functions as pure
Matt Brubeck [Thu, 27 Oct 2011 19:18:51 +0000 (12:18 -0700)]
Mark uint add/sub/mul/div/rem functions as pure

12 years agoAdd function aliases for float operators
Matt Brubeck [Thu, 27 Oct 2011 14:02:40 +0000 (07:02 -0700)]
Add function aliases for float operators

12 years agoAdd tests for the 'as' (cast) operator
Matt Brubeck [Thu, 27 Oct 2011 16:14:13 +0000 (09:14 -0700)]
Add tests for the 'as' (cast) operator

12 years agoAdd 'as' (cast) operator to the documentation
Matt Brubeck [Thu, 27 Oct 2011 15:36:06 +0000 (08:36 -0700)]
Add 'as' (cast) operator to the documentation

12 years agoAdd more std docs
Brian Anderson [Thu, 27 Oct 2011 20:14:56 +0000 (13:14 -0700)]
Add more std docs

12 years agoCleanup in std::task
Brian Anderson [Thu, 27 Oct 2011 18:17:39 +0000 (11:17 -0700)]
Cleanup in std::task

12 years agoMore std docs
Brian Anderson [Thu, 27 Oct 2011 18:15:28 +0000 (11:15 -0700)]
More std docs

12 years agoRemove task::join_id
Brian Anderson [Thu, 27 Oct 2011 03:39:02 +0000 (20:39 -0700)]
Remove task::join_id

This is the old, racy way of joining to a task. It is no longer used.

12 years agoAdd more std documentation
Brian Anderson [Wed, 26 Oct 2011 23:24:31 +0000 (16:24 -0700)]
Add more std documentation

12 years agoUse web-style paragraphs in std docs
Brian Anderson [Wed, 26 Oct 2011 18:55:28 +0000 (11:55 -0700)]
Use web-style paragraphs in std docs

12 years agoAdd more std documentation
Brian Anderson [Wed, 26 Oct 2011 18:28:23 +0000 (11:28 -0700)]
Add more std documentation

12 years agorustc.1: Fix formatting.
Elly Jones [Wed, 26 Oct 2011 04:22:38 +0000 (00:22 -0400)]
rustc.1: Fix formatting.

12 years agorustc.1: Fix sysroot documentation.
Elly Jones [Wed, 26 Oct 2011 03:32:10 +0000 (23:32 -0400)]
rustc.1: Fix sysroot documentation.

12 years agoAdd more comments to install.mk
Brian Anderson [Wed, 26 Oct 2011 04:18:22 +0000 (21:18 -0700)]
Add more comments to install.mk

12 years agoInstall man page for rustc
Brian Anderson [Wed, 26 Oct 2011 04:17:57 +0000 (21:17 -0700)]
Install man page for rustc

12 years agoMerge pull request #1073 from elly/master
Brian Anderson [Wed, 26 Oct 2011 03:18:48 +0000 (20:18 -0700)]
Merge pull request #1073 from elly/master

Add rustc(1).

12 years agoman: Add rustc.1.
Elly Jones [Wed, 26 Oct 2011 03:05:41 +0000 (23:05 -0400)]
man: Add rustc.1.

Document the compiler a bit. Not installed yet as I don't understand automake
very well.

Signed-off-by: Elly Jones <elly@leptoquark.net>
12 years agoBegin documenting std and add doc generation using naturaldocs
Brian Anderson [Mon, 24 Oct 2011 22:25:41 +0000 (15:25 -0700)]
Begin documenting std and add doc generation using naturaldocs

Naturaldocs isn't really that great but it seems easier to get
something working than with doxygen, for which we would need to
convert rust code to something C++ish. We probably want to just
write a rustdoc utility at some point.

12 years agoProperly take mutable object fields into account during alias analysis
Marijn Haverbeke [Tue, 25 Oct 2011 15:57:26 +0000 (17:57 +0200)]
Properly take mutable object fields into account during alias analysis

Closes #1055

12 years agoUpdate our code to new type parameter kind syntax
Marijn Haverbeke [Tue, 25 Oct 2011 13:56:55 +0000 (15:56 +0200)]
Update our code to new type parameter kind syntax

Closes #1067

12 years agoRemove support for @/~-style type param kind annotation
Marijn Haverbeke [Tue, 25 Oct 2011 13:50:45 +0000 (15:50 +0200)]
Remove support for @/~-style type param kind annotation

Issue #1067

12 years agoRegister new snapshot
Marijn Haverbeke [Tue, 25 Oct 2011 13:22:28 +0000 (15:22 +0200)]
Register new snapshot

12 years agoStep one towards new type param kind syntax
Marijn Haverbeke [Tue, 25 Oct 2011 12:31:56 +0000 (14:31 +0200)]
Step one towards new type param kind syntax

Issue #1067

Needs a snapshot to finalize.

12 years agoFix long lines
Brian Anderson [Tue, 25 Oct 2011 00:23:34 +0000 (17:23 -0700)]
Fix long lines

12 years agofix c-stack-cdecl when used w/ i64
Niko Matsakis [Tue, 25 Oct 2011 00:03:18 +0000 (17:03 -0700)]
fix c-stack-cdecl when used w/ i64

12 years agokill errant log_err
Niko Matsakis [Mon, 24 Oct 2011 22:24:37 +0000 (15:24 -0700)]
kill errant log_err

12 years agoremove (unused) fn rust_list_files from win32_fs; that is
Niko Matsakis [Mon, 24 Oct 2011 22:19:57 +0000 (15:19 -0700)]
remove (unused) fn rust_list_files from win32_fs; that is
defined in fs.rs

12 years agoswitch over sqrt from llvm to c-stack-cdecl, exposing a bug in
Niko Matsakis [Mon, 24 Oct 2011 19:33:08 +0000 (12:33 -0700)]
switch over sqrt from llvm to c-stack-cdecl, exposing a bug in
the supported return types of upcall_c_stack

12 years agoadd implicit ctx
Niko Matsakis [Sun, 23 Oct 2011 14:21:40 +0000 (07:21 -0700)]
add implicit ctx

12 years agoremove unused task ptr arg
Niko Matsakis [Sun, 23 Oct 2011 14:21:14 +0000 (07:21 -0700)]
remove unused task ptr arg

12 years agoupdate intrinsics file
Niko Matsakis [Sun, 23 Oct 2011 03:59:20 +0000 (20:59 -0700)]
update intrinsics file

12 years agomove uses of rust ABI in tests to cdecl or c-stack-cdecl as appr
Niko Matsakis [Fri, 21 Oct 2011 22:31:19 +0000 (15:31 -0700)]
move uses of rust ABI in tests to cdecl or c-stack-cdecl as appr

Note: I found a bug in c-stack-cdecl which codes not permit such
native functions to be used as values.  I added an xfail-test
(c-stack-as-value) documenting it.

12 years agomove remaining task natives to cdecl ABI (run on rust stack)
Niko Matsakis [Fri, 21 Oct 2011 21:38:34 +0000 (14:38 -0700)]
move remaining task natives to cdecl ABI (run on rust stack)

12 years agoisolate those funcs in task that can run on the c stack
Niko Matsakis [Fri, 21 Oct 2011 20:31:51 +0000 (13:31 -0700)]
isolate those funcs in task that can run on the c stack

12 years agowork around bug when calling c-stack-cdecl fns from outside crate
Niko Matsakis [Fri, 21 Oct 2011 19:14:01 +0000 (12:14 -0700)]
work around bug when calling c-stack-cdecl fns from outside crate

In the main test, I call the wrapper instead of the native fn, as intended.
I also added an xfail-test that exercises the broken code path.  Will
file a bug.

Description of the broken code path:

The code path is that when we look up the external identifier we go through
trans_external_path() ->  type_of_ty_param_kinds_and_ty() ->
type_of_fn_from_ty() -> type_of_fn(), and type_of_fn() adds a lot of external
parameters. Problem is, I guess, that we don't pass the native ABI (or even the
fact that it's a native function!), just the types and kinds of the parameters.

12 years agomove sys fns into c-stack-cdecl and get_type_desc() into rusti
Niko Matsakis [Fri, 21 Oct 2011 18:06:33 +0000 (11:06 -0700)]
move sys fns into c-stack-cdecl and get_type_desc() into rusti

there is one test failure, stdtest/sys.rs, which inexplicably
(thus far) fails to compile because it invokes
sys::rustrt::last_os_error() instead of invoking
sys::last_os_error().  If stdtest/sys.rs is updated to invoke
the wrapper, it passes.  Still tracing the source of this error.

12 years agomigrate leak
Niko Matsakis [Fri, 21 Oct 2011 00:23:21 +0000 (17:23 -0700)]
migrate leak

12 years agomigrate rust_run_program
Niko Matsakis [Fri, 21 Oct 2011 00:12:47 +0000 (17:12 -0700)]
migrate rust_run_program

12 years agomigrate debugging funcs
Niko Matsakis [Fri, 21 Oct 2011 00:06:52 +0000 (17:06 -0700)]
migrate debugging funcs

12 years agomigrate sched_threads call
Niko Matsakis [Thu, 20 Oct 2011 23:46:33 +0000 (16:46 -0700)]
migrate sched_threads call

12 years agoconvert str methods to c-stack-cdecl
Niko Matsakis [Thu, 20 Oct 2011 18:30:08 +0000 (11:30 -0700)]
convert str methods to c-stack-cdecl

12 years agomake time module use c-stack-cdecl
Niko Matsakis [Thu, 20 Oct 2011 18:25:02 +0000 (11:25 -0700)]
make time module use c-stack-cdecl

12 years agomove rand functions into c-stack-cdecl mode
Niko Matsakis [Thu, 20 Oct 2011 18:09:21 +0000 (11:09 -0700)]
move rand functions into c-stack-cdecl mode

12 years agoremove unnecessary && from various file routines
Niko Matsakis [Thu, 20 Oct 2011 17:18:39 +0000 (10:18 -0700)]
remove unnecessary && from various file routines

12 years agomove more native "rust" to native "c-stack-cdecl"
Niko Matsakis [Thu, 20 Oct 2011 14:14:23 +0000 (07:14 -0700)]
move more native "rust" to native "c-stack-cdecl"

12 years agomove io.rs natives from "rust" to "c-stack-stdlib"
Niko Matsakis [Thu, 20 Oct 2011 14:04:20 +0000 (07:04 -0700)]
move io.rs natives from "rust" to "c-stack-stdlib"