]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoSupport ARM and Android
kyeongwoon [Fri, 30 Nov 2012 00:21:49 +0000 (09:21 +0900)]
Support ARM and Android

Conflicts:
src/libcore/os.rs
src/librustc/back/link.rs
src/librustc/driver/driver.rs
src/librustc/metadata/loader.rs
src/librustc/middle/trans/base.rs

11 years agoUpdate libuv for Android
Brian Anderson [Tue, 8 Jan 2013 22:39:31 +0000 (14:39 -0800)]
Update libuv for Android

11 years agoLong lines
Tim Chevalier [Mon, 14 Jan 2013 00:34:54 +0000 (16:34 -0800)]
Long lines

11 years agoMerge pull request #4474 from tychosci/readlink_safe
Tim Chevalier [Sun, 13 Jan 2013 23:10:33 +0000 (15:10 -0800)]
Merge pull request #4474 from tychosci/readlink_safe

core: Use libc::readlink function properly

11 years agoMerge pull request #4411 from wting/4203_rename_memcpy
Tim Chevalier [Sun, 13 Jan 2013 22:58:24 +0000 (14:58 -0800)]
Merge pull request #4411 from wting/4203_rename_memcpy

Rename memcpy, memmove, memset

11 years agoMerge pull request #4444 from JensNockert/pub-semaphore
Tim Chevalier [Sun, 13 Jan 2013 22:56:14 +0000 (14:56 -0800)]
Merge pull request #4444 from JensNockert/pub-semaphore

Make std::sync::semaphore() public

11 years agoMerge pull request #4459 from jld/constenum
Tim Chevalier [Sun, 13 Jan 2013 22:42:57 +0000 (14:42 -0800)]
Merge pull request #4459 from jld/constenum

Allow consts to be initialized by non-nullary enum constructors

11 years agoMake vectors (& old ports) of zero-size types allocate one byte each.
Jed Davis [Tue, 8 Jan 2013 08:24:43 +0000 (00:24 -0800)]
Make vectors (& old ports) of zero-size types allocate one byte each.

11 years agoMake empty structs debug-printable
Jed Davis [Tue, 8 Jan 2013 08:24:25 +0000 (00:24 -0800)]
Make empty structs debug-printable

11 years agoCorrect (I hope) amd64 ABI handling for empty structs
Jed Davis [Tue, 8 Jan 2013 08:24:06 +0000 (00:24 -0800)]
Correct (I hope) amd64 ABI handling for empty structs

11 years agoOne more place where for loops and their bodies need to be unconfused.
Jed Davis [Tue, 8 Jan 2013 08:23:25 +0000 (00:23 -0800)]
One more place where for loops and their bodies need to be unconfused.

11 years agoFix long lines in for loop trans change
Jed Davis [Sat, 12 Jan 2013 07:42:07 +0000 (23:42 -0800)]
Fix long lines in for loop trans change

11 years agoFor `for` loop bodies, translate the type of the closure
Niko Matsakis [Mon, 7 Jan 2013 18:16:30 +0000 (10:16 -0800)]
For `for` loop bodies, translate the type of the closure
based on the expr_loop_body expression and not the inner closure

11 years agoMake () actually size 0
Jed Davis [Tue, 8 Jan 2013 03:10:16 +0000 (19:10 -0800)]
Make () actually size 0

11 years agocore: Use libc::readlink function properly
Tycho Sci [Sun, 13 Jan 2013 22:33:47 +0000 (07:33 +0900)]
core: Use libc::readlink function properly

The specification of readlink() says it's not guaranteed that the
returned contents of the symbolic link is null-terminated.

11 years agocore: Align cmp::le() with the other implementations
Peter Williams [Sat, 12 Jan 2013 23:48:19 +0000 (18:48 -0500)]
core: Align cmp::le() with the other implementations

Also add comments reminding that IEEE 754 requires unusual semantics for
comparison operators as applied to NaNs (x != x, if x = NaN), in case someone
in the future wants to get clever.

11 years agoMerge pull request #4465 from thestinger/option
Tim Chevalier [Sun, 13 Jan 2013 22:29:05 +0000 (14:29 -0800)]
Merge pull request #4465 from thestinger/option

improvements to option module

11 years agoMerge pull request #4467 from gifnksm/inlining-core
Tim Chevalier [Sun, 13 Jan 2013 22:15:25 +0000 (14:15 -0800)]
Merge pull request #4467 from gifnksm/inlining-core

Inlining methods/functions in core.

11 years agoMerge pull request #4460 from pkgw/pr-tut-typo
Tim Chevalier [Sun, 13 Jan 2013 22:06:21 +0000 (14:06 -0800)]
Merge pull request #4460 from pkgw/pr-tut-typo

doc: Fix spelling error in macro tutorial

11 years agoadd Option methods for in-place mutation
Daniel Micay [Sun, 13 Jan 2013 16:09:09 +0000 (11:09 -0500)]
add Option methods for in-place mutation

11 years agoInlining methods/functions in core.
gifnksm [Sun, 13 Jan 2013 14:37:30 +0000 (23:37 +0900)]
Inlining methods/functions in core.

Also inlining some functions which take functions as arguments.

11 years agoavoid unwrap in Option::map_consume implementation
Daniel Micay [Sun, 13 Jan 2013 06:38:20 +0000 (01:38 -0500)]
avoid unwrap in Option::map_consume implementation

11 years agoadd Option map_consume_default method
Daniel Micay [Sun, 13 Jan 2013 05:56:50 +0000 (00:56 -0500)]
add Option map_consume_default method

11 years agoadd Option methods for swap_unwrap and map_consume
Daniel Micay [Sun, 13 Jan 2013 05:47:00 +0000 (00:47 -0500)]
add Option methods for swap_unwrap and map_consume

11 years agodoc: Fix spelling error in macro tutorial
Peter Williams [Sun, 30 Dec 2012 16:49:08 +0000 (11:49 -0500)]
doc: Fix spelling error in macro tutorial

11 years agolibstd: "target_os = win32", not "target_os = windows". rs=bustage
Patrick Walton [Sat, 12 Jan 2013 18:11:44 +0000 (10:11 -0800)]
libstd: "target_os = win32", not "target_os = windows". rs=bustage

11 years agoRegression tests for passing enum-typed consts by reference.
Jed Davis [Mon, 7 Jan 2013 10:07:56 +0000 (02:07 -0800)]
Regression tests for passing enum-typed consts by reference.

If the PointerCast in trans_def_lvalue is removed, these cases cause
LLVM assertion failures.

11 years agoAdd more tests for enum constants.
Jed Davis [Fri, 4 Jan 2013 09:22:56 +0000 (01:22 -0800)]
Add more tests for enum constants.

The tests have consts defined both before and after their uses in order
to prevent bugs that depend on the order in which they are translated.

11 years agoOmit needless zeroes for C-like variants of non-C-like enums
Jed Davis [Mon, 31 Dec 2012 04:51:53 +0000 (20:51 -0800)]
Omit needless zeroes for C-like variants of non-C-like enums

11 years agoAllow consts to be non-nullary enum constructors
Jed Davis [Mon, 31 Dec 2012 04:39:15 +0000 (20:39 -0800)]
Allow consts to be non-nullary enum constructors

11 years agoAllow consts' LLVM types to depend on their initializers.
Jed Davis [Mon, 31 Dec 2012 04:30:23 +0000 (20:30 -0800)]
Allow consts' LLVM types to depend on their initializers.

Loosening the connection between the LLVM type and the Rust type
is necessary to use non-nullary enum constructors as const initializers,
because the const needs to be initialized with data of the actual type of
the variant in question, which is (generally) not the same as the u8
array in the `type_of` type.

Thus, referring to a const now requires casting the LLVM global to the
expected pointer type instead of using it as-is.

11 years agoFactor out base::get_discrim_val from const translation
Jed Davis [Mon, 31 Dec 2012 04:29:17 +0000 (20:29 -0800)]
Factor out base::get_discrim_val from const translation

11 years agoAdd William Ting to AUTHORS
Tim Chevalier [Sat, 12 Jan 2013 04:12:29 +0000 (20:12 -0800)]
Add William Ting to AUTHORS

11 years agoMerge pull request #4443 from wting/4386_add_privs
Tim Chevalier [Sat, 12 Jan 2013 04:11:57 +0000 (20:11 -0800)]
Merge pull request #4443 from wting/4386_add_privs

Adds priv qualifiers where they have been commented out before implementation.

11 years agoMerge pull request #4445 from apasel422/notop
Tim Chevalier [Sat, 12 Jan 2013 04:10:51 +0000 (20:10 -0800)]
Merge pull request #4445 from apasel422/notop

Allow logical negation operator (!) to be overloaded

11 years agoMerge pull request #4452 from apasel422/cond-macro-fix
Tim Chevalier [Sat, 12 Jan 2013 04:09:54 +0000 (20:09 -0800)]
Merge pull request #4452 from apasel422/cond-macro-fix

libsyntax: Fix name generation in condition! macro

11 years agoMerge pull request #4453 from crabtw/clang3.2
Tim Chevalier [Sat, 12 Jan 2013 04:09:14 +0000 (20:09 -0800)]
Merge pull request #4453 from crabtw/clang3.2

support clang 3.2

11 years agosupport clang 3.2
Jyun-Yan You [Sat, 12 Jan 2013 04:02:22 +0000 (12:02 +0800)]
support clang 3.2

11 years agolibsyntax: Fix name generation in condition! macro
Andrew Paseltiner [Sat, 12 Jan 2013 02:32:10 +0000 (21:32 -0500)]
libsyntax: Fix name generation in condition! macro

11 years agoLong lines
Brian Anderson [Sat, 12 Jan 2013 01:59:35 +0000 (17:59 -0800)]
Long lines

11 years agolibstd: Ignore failing test on Windows
Patrick Walton [Fri, 11 Jan 2013 23:46:07 +0000 (15:46 -0800)]
libstd: Ignore failing test on Windows

11 years agoMake ast_util::path_name_i take a slice vector, eliminate a bad copy
Tim Chevalier [Fri, 11 Jan 2013 23:18:01 +0000 (15:18 -0800)]
Make ast_util::path_name_i take a slice vector, eliminate a bad copy

11 years agoAdd core::private::run_in_bare_thread
Brian Anderson [Fri, 11 Jan 2013 03:03:13 +0000 (19:03 -0800)]
Add core::private::run_in_bare_thread

This begins executing Rust code in a fresh context with no runtime environment

11 years agoComment out test_decode_form_urlencoded again. Filed issue 4449. rs=breakage
Tim Chevalier [Fri, 11 Jan 2013 21:40:15 +0000 (13:40 -0800)]
Comment out test_decode_form_urlencoded again. Filed issue 4449. rs=breakage

11 years agotest: add test for overloading logical negation operator
Andrew Paseltiner [Fri, 11 Jan 2013 21:27:12 +0000 (16:27 -0500)]
test: add test for overloading logical negation operator

11 years agoallow logical negation operator (!) to be overloaded
Andrew Paseltiner [Fri, 11 Jan 2013 17:16:58 +0000 (12:16 -0500)]
allow logical negation operator (!) to be overloaded

11 years agotest: XFAIL issue_3882 due to strange Windows failure. rs=failure
Patrick Walton [Fri, 11 Jan 2013 18:57:24 +0000 (10:57 -0800)]
test: XFAIL issue_3882 due to strange Windows failure. rs=failure

11 years agolibstd: Fix std test. rs=busted
Patrick Walton [Fri, 11 Jan 2013 17:22:23 +0000 (09:22 -0800)]
libstd: Fix std test. rs=busted

11 years agoMake std::sync::semaphore() public
Jens Nockert [Fri, 11 Jan 2013 11:51:16 +0000 (12:51 +0100)]
Make std::sync::semaphore() public

11 years agoAdds priv qualifiers where they have been commented out before implementation.
William Ting [Fri, 11 Jan 2013 08:27:01 +0000 (02:27 -0600)]
Adds priv qualifiers where they have been commented out before implementation.

Updates #4386.

11 years agolibcore: Fix core test more. rs=broken
Patrick Walton [Fri, 11 Jan 2013 07:08:17 +0000 (23:08 -0800)]
libcore: Fix core test more. rs=broken

11 years agolibcore: Fix core test. rs=broken
Patrick Walton [Fri, 11 Jan 2013 06:36:54 +0000 (22:36 -0800)]
libcore: Fix core test. rs=broken

11 years agolibcore: Fix windows bustage. rs=bustage
Patrick Walton [Fri, 11 Jan 2013 05:58:30 +0000 (21:58 -0800)]
libcore: Fix windows bustage. rs=bustage

11 years agolibcore: Fix linux/windows bustage. rs=fire
Patrick Walton [Fri, 11 Jan 2013 05:49:31 +0000 (21:49 -0800)]
libcore: Fix linux/windows bustage. rs=fire

11 years agolibrustc: Implement a #[no_mangle] attribute to suppress name mangling. r=brson
Patrick Walton [Thu, 10 Jan 2013 07:17:57 +0000 (23:17 -0800)]
librustc: Implement a #[no_mangle] attribute to suppress name mangling. r=brson

This is very helpful for SDL, as SDL wants you to define a function named
`SDL_main`.

11 years agoUse filtered instead of filter in rustdoc. Fixes segfault.
Tim Chevalier [Fri, 11 Jan 2013 05:18:12 +0000 (21:18 -0800)]
Use filtered instead of filter in rustdoc. Fixes segfault.

...of course, it shouldn't be segfaulting, but this fixes the
build.

rs=breakage

11 years agolibrustc: Make all external functions unsafe. r=tjc
Patrick Walton [Fri, 11 Jan 2013 05:23:07 +0000 (21:23 -0800)]
librustc: Make all external functions unsafe. r=tjc

11 years agoAdd John Clements to AUTHORS
Brian Anderson [Fri, 11 Jan 2013 04:49:28 +0000 (20:49 -0800)]
Add John Clements to AUTHORS

11 years agocorrected imprecision in description of mutable fields
John Clements [Fri, 11 Jan 2013 00:28:36 +0000 (16:28 -0800)]
corrected imprecision in description of mutable fields

11 years agoProperly suppress derived type error messages
Tim Chevalier [Fri, 11 Jan 2013 00:43:04 +0000 (16:43 -0800)]
Properly suppress derived type error messages

Previously, the typechecker suppressed many but not all errors,
by suppressing errors where the actual type was either ty_err, or
a function type whose result was ty_err. Added a has_ty_err flag
to the type flags so as to suppress errors for any types involving
ty_err.

r=nmatsakis

11 years agostd: Address XXXes in flatpipes
Tim Chevalier [Fri, 11 Jan 2013 04:09:26 +0000 (20:09 -0800)]
std: Address XXXes in flatpipes

11 years agostd: Fix pattern match on reference, address an XXX
Tim Chevalier [Fri, 11 Jan 2013 04:09:16 +0000 (20:09 -0800)]
std: Fix pattern match on reference, address an XXX

11 years agostd: Fix net_url test that was commented out
Tim Chevalier [Fri, 11 Jan 2013 04:08:49 +0000 (20:08 -0800)]
std: Fix net_url test that was commented out

11 years agostd: Fix test that was commented out
Tim Chevalier [Fri, 11 Jan 2013 04:08:36 +0000 (20:08 -0800)]
std: Fix test that was commented out

11 years agocore: Change XXXs into proper FIXMEs with issue numbers
Tim Chevalier [Thu, 10 Jan 2013 23:16:15 +0000 (15:16 -0800)]
core: Change XXXs into proper FIXMEs with issue numbers

11 years agoUpdate Lindsey's email address
Lindsey Kuper [Thu, 10 Jan 2013 21:29:15 +0000 (16:29 -0500)]
Update Lindsey's email address

11 years agocore: Change XXXs into proper FIXMEs with issue numbers
Tim Chevalier [Thu, 10 Jan 2013 23:16:15 +0000 (15:16 -0800)]
core: Change XXXs into proper FIXMEs with issue numbers

11 years agoUse deriving_eq for Task
Tim Chevalier [Thu, 10 Jan 2013 23:15:53 +0000 (15:15 -0800)]
Use deriving_eq for Task

11 years agoAdd xfailed test for #3973
Tim Chevalier [Thu, 10 Jan 2013 23:15:24 +0000 (15:15 -0800)]
Add xfailed test for #3973

11 years agotutorial: Remove memory model section
Brian Anderson [Thu, 10 Jan 2013 23:22:22 +0000 (15:22 -0800)]
tutorial: Remove memory model section

11 years agoadd two more copies required in word-count rs=breakage
Niko Matsakis [Thu, 10 Jan 2013 22:16:49 +0000 (14:16 -0800)]
add two more copies required in word-count rs=breakage

11 years agoAdd working test for issue 3935 and xfailed test for issue 3888
Tim Chevalier [Thu, 10 Jan 2013 22:37:59 +0000 (14:37 -0800)]
Add working test for issue 3935 and xfailed test for issue 3888

11 years agoAdd test cases: one xfailed, one not
Tim Chevalier [Thu, 10 Jan 2013 22:15:17 +0000 (14:15 -0800)]
Add test cases: one xfailed, one not

11 years agocorrect expected error msgs in various tests rs=breakage
Niko Matsakis [Thu, 10 Jan 2013 21:57:38 +0000 (13:57 -0800)]
correct expected error msgs in various tests rs=breakage

11 years agotests: Add two test cases, one xfailed
Tim Chevalier [Thu, 10 Jan 2013 21:44:27 +0000 (13:44 -0800)]
tests: Add two test cases, one xfailed

11 years agomode: reset mode on entry to fn body.
Niko Matsakis [Thu, 10 Jan 2013 14:29:26 +0000 (06:29 -0800)]
mode: reset mode on entry to fn body.

This is an interim fix to address the "Beware!" unsoundness.  I have a
more comprehensive rewrite of mode.rs in the pipeline.

r=pcwalton

11 years agoMerge pull request #4414 from gifnksm/bigint-test
Brian Anderson [Thu, 10 Jan 2013 19:19:11 +0000 (11:19 -0800)]
Merge pull request #4414 from gifnksm/bigint-test

Issue 4393 BigInt tests fail on 32-bit platforms

11 years agolibrustc: Implement `&static` as the replacement for `Durable`. r=nmatsakis
Patrick Walton [Thu, 10 Jan 2013 19:16:54 +0000 (11:16 -0800)]
librustc: Implement `&static` as the replacement for `Durable`. r=nmatsakis

11 years agolibrustc: Allow the type parameter version of `Self` to be spelled with a capital S
Patrick Walton [Wed, 9 Jan 2013 22:12:28 +0000 (14:12 -0800)]
librustc: Allow the type parameter version of `Self` to be spelled with a capital S

11 years agotest: fix check-fast breakage.
Graydon Hoare [Thu, 10 Jan 2013 18:24:18 +0000 (10:24 -0800)]
test: fix check-fast breakage.

11 years agoFix: BigInt tests fail on 32-bit platforms
gifnksm [Thu, 10 Jan 2013 13:47:55 +0000 (22:47 +0900)]
Fix: BigInt tests fail on 32-bit platforms

11 years agoRename memcpy, memmove, memset to prevent any confusion with the C equivalents.
William Ting [Thu, 10 Jan 2013 07:11:04 +0000 (01:11 -0600)]
Rename memcpy, memmove, memset to prevent any confusion with the C equivalents.

Closes #4203.

11 years agolibcore: Fix missing `off_t` import on Mac. rs=bustage
Patrick Walton [Thu, 10 Jan 2013 05:15:27 +0000 (21:15 -0800)]
libcore: Fix missing `off_t` import on Mac. rs=bustage

11 years agolibcore: Some more fixes to Windows libc stuff. rs=bustage
Patrick Walton [Thu, 10 Jan 2013 05:14:28 +0000 (21:14 -0800)]
libcore: Some more fixes to Windows libc stuff. rs=bustage

11 years agolibcore: Fix Windows resolve errors. rs=bustage
Patrick Walton [Thu, 10 Jan 2013 04:39:37 +0000 (20:39 -0800)]
libcore: Fix Windows resolve errors. rs=bustage

11 years agolibcore: Fix import in libc. rs=bustage
Patrick Walton [Thu, 10 Jan 2013 03:24:02 +0000 (19:24 -0800)]
libcore: Fix import in libc. rs=bustage

11 years agostd: fix net::tcp::test fallout from 2db3abd harder
Graydon Hoare [Thu, 10 Jan 2013 03:12:51 +0000 (19:12 -0800)]
std: fix net::tcp::test fallout from 2db3abd harder

11 years agocore: fix crashing vec methods due to non-working moved self.
Graydon Hoare [Thu, 10 Jan 2013 01:14:30 +0000 (17:14 -0800)]
core: fix crashing vec methods due to non-working moved self.

11 years agort: Remove unused command line parsing
Brian Anderson [Wed, 9 Jan 2013 23:25:48 +0000 (15:25 -0800)]
rt: Remove unused command line parsing

11 years agoA collection of refactorings that I found it hard/tiresome to divide:
Niko Matsakis [Tue, 8 Jan 2013 22:00:45 +0000 (14:00 -0800)]
A collection of refactorings that I found it hard/tiresome to divide:

- Make `extern fn()` assignable to any closure type, rather than
  a subtype.
- Remove unused int_ty_set and float_ty_set
- Refactor variable unification and make it more DRY
- Do fn sub/lub/glb on the level of fn_sig
- Rename infer::to_str::ToStr to infer::to_str::InferStr
- Capitalize names of various types
- Correct hashing of FnMeta
- Convert various records-of-fns into structs-of-fns.  This is both
  eliminating use of deprecated features and more forwards compatible
  with fn reform.

r=pcwalton

11 years agorustc: yet more arch-specific fallout from 2db3abd
Graydon Hoare [Wed, 9 Jan 2013 22:11:45 +0000 (14:11 -0800)]
rustc: yet more arch-specific fallout from 2db3abd

11 years agoAdd Ilyong Cho to AUTHORS
Brian Anderson [Wed, 9 Jan 2013 19:33:13 +0000 (11:33 -0800)]
Add Ilyong Cho to AUTHORS

11 years agorustc: more arch-specific fallout from 2db3abd
Graydon Hoare [Wed, 9 Jan 2013 18:43:16 +0000 (10:43 -0800)]
rustc: more arch-specific fallout from 2db3abd

11 years agorustc: more fallout from 2db3abd
Graydon Hoare [Wed, 9 Jan 2013 17:49:11 +0000 (09:49 -0800)]
rustc: more fallout from 2db3abd

11 years agocompiletest: more win32 fallout from 2db3abd
Graydon Hoare [Wed, 9 Jan 2013 17:48:17 +0000 (09:48 -0800)]
compiletest: more win32 fallout from 2db3abd

11 years agocore: try to fix arch- and platform-specific fallout from 2db3abd
Graydon Hoare [Wed, 9 Jan 2013 17:26:40 +0000 (09:26 -0800)]
core: try to fix arch- and platform-specific fallout from 2db3abd

11 years agostd: fix net::tcp::test fallout from 2db3abd
Graydon Hoare [Wed, 9 Jan 2013 17:05:06 +0000 (09:05 -0800)]
std: fix net::tcp::test fallout from 2db3abd

11 years agocore: ignore recent should_fail tests on windows
Graydon Hoare [Wed, 9 Jan 2013 16:16:31 +0000 (08:16 -0800)]
core: ignore recent should_fail tests on windows

11 years agocore: add vec.filter that moves elems out of the vector
Erick Tryzelaar [Tue, 8 Jan 2013 05:16:19 +0000 (21:16 -0800)]
core: add vec.filter that moves elems out of the vector

11 years agocore: rename vec.filter to vec.filtered
Erick Tryzelaar [Tue, 8 Jan 2013 05:15:25 +0000 (21:15 -0800)]
core: rename vec.filter to vec.filtered