]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoauto merge of #11789 : pongad/rust/master, r=kballard
bors [Sat, 1 Feb 2014 07:31:28 +0000 (23:31 -0800)]
auto merge of #11789 : pongad/rust/master, r=kballard

All tests passing. #5268

10 years agoauto merge of #11965 : alexcrichton/rust/issue-7385, r=alexcrichton
bors [Sat, 1 Feb 2014 06:21:38 +0000 (22:21 -0800)]
auto merge of #11965 : alexcrichton/rust/issue-7385, r=alexcrichton

I've verified that it works on osx x86_64

Closes #7385

Rolled up PRs:

Closes #11898
Closes #11934
Closes #11942
Closes #11952
Closes #11960
Closes #11966
Closes #11953

Closed issues:

Closes #4063
Closes #7911

10 years agoFixing tests
Alex Crichton [Sat, 1 Feb 2014 06:11:18 +0000 (22:11 -0800)]
Fixing tests

10 years agoRemove the need to count lang items
Alex Crichton [Wed, 8 Jan 2014 04:39:15 +0000 (20:39 -0800)]
Remove the need to count lang items

This solves horrible diffs where all you do is renumber literally everything.

10 years agoTest for null buffer in CString.len()/.iter() and fail
Kevin Ballard [Thu, 30 Jan 2014 23:29:36 +0000 (15:29 -0800)]
Test for null buffer in CString.len()/.iter() and fail

Also change .as_str() to fail on null buffer.

10 years agoRemove the obsolete handler for `impl A;`.
Huon Wilson [Fri, 31 Jan 2014 14:46:30 +0000 (01:46 +1100)]
Remove the obsolete handler for `impl A;`.

This is has been obsolete for quite a while now (including a release),
so removing the special handling seems fine. (The error message is quite
good still anyway.)

Fixes #9580.

10 years agoAdd test for sensible #[start] error message.
Huon Wilson [Fri, 31 Jan 2014 13:42:02 +0000 (00:42 +1100)]
Add test for sensible #[start] error message.

Fixes #9575.

10 years agoAdd test cases for #4063.
OGINO Masanori [Wed, 29 Jan 2014 16:04:14 +0000 (01:04 +0900)]
Add test cases for #4063.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agomark the minimum supported Linux kernel version
Daniel Micay [Fri, 31 Jan 2014 14:58:00 +0000 (09:58 -0500)]
mark the minimum supported Linux kernel version

This is just taken from the binary itself. It would be nice to mark the
minimum glibc version too, and the corresponding RHEL/CentOS version.

10 years agomark Windows 8 as supported
Daniel Micay [Fri, 31 Jan 2014 14:53:17 +0000 (09:53 -0500)]
mark Windows 8 as supported

10 years agobump minimum supported OS X version to 10.7
Daniel Micay [Fri, 31 Jan 2014 14:50:44 +0000 (09:50 -0500)]
bump minimum supported OS X version to 10.7

Closes #11927
Closes #10842
Closes #2024

10 years agoAdd test case for issue 7911
JeremyLetang [Wed, 29 Jan 2014 00:54:19 +0000 (19:54 -0500)]
Add test case for issue 7911

10 years agoFix minor doc typos
Virgile Andreani [Thu, 30 Jan 2014 18:29:35 +0000 (19:29 +0100)]
Fix minor doc typos

10 years agoUn-xfail test for 7385
Alex Crichton [Sat, 1 Feb 2014 00:54:45 +0000 (16:54 -0800)]
Un-xfail test for 7385

I've verified that it works on osx x86_64

Closes #7385

10 years agoAdded minmax function.
Michael Darakananda [Sat, 25 Jan 2014 06:40:54 +0000 (22:40 -0800)]
Added minmax function.
Tests ok

10 years agoauto merge of #11768 : nikomatsakis/rust/issue-11385-cell-and-variance, r=pnkfelix
bors [Sat, 1 Feb 2014 03:36:41 +0000 (19:36 -0800)]
auto merge of #11768 : nikomatsakis/rust/issue-11385-cell-and-variance, r=pnkfelix

Introduce marker types for indicating variance and for opting out
of builtin bounds.

Fixes #10834.
Fixes #11385.
cc #5922.

r? @pnkfelix (since you reviewed the variance inference in the first place)

10 years agoauto merge of #11885 : bnoordhuis/rust/issue11694, r=alexcrichton
bors [Sat, 1 Feb 2014 02:21:41 +0000 (18:21 -0800)]
auto merge of #11885 : bnoordhuis/rust/issue11694, r=alexcrichton

EINVAL means that the requested stack size is either not a multiple
of the system page size or that it's smaller than PTHREAD_STACK_MIN.
Figure out what the case is, fix it up and retry.  If it still fails,
give up, like before.

Suggestions for future improvements:

  * don't fail!() but instead signal a condition, or
  * silently ignore the error and use a default sized stack.

Fixes #11694.

The first two commits put the framework in place, the third one contains the meat.

10 years agoIntroduce marker types for indicating variance and for opting out
Niko Matsakis [Wed, 22 Jan 2014 19:03:02 +0000 (14:03 -0500)]
Introduce marker types for indicating variance and for opting out
of builtin bounds.

Fixes #10834.
Fixes #11385.
cc #5922.

10 years agoauto merge of #11810 : Armavica/rust/issue-11645, r=alexcrichton
bors [Fri, 31 Jan 2014 23:11:32 +0000 (15:11 -0800)]
auto merge of #11810 : Armavica/rust/issue-11645, r=alexcrichton

The doc-generating tool comments out the lines that match `/$# /` (note the space), which is not what is wanted here. And it lets live the lines matching `/$#[^ ]/`. But we still want to see a space. So I replaced the normal space by a non breakable one, which fools the parser into displaying the line.

10 years agoauto merge of #11832 : jfager/rust/r5900, r=alexcrichton
bors [Fri, 31 Jan 2014 21:06:39 +0000 (13:06 -0800)]
auto merge of #11832 : jfager/rust/r5900, r=alexcrichton

I tried a couple of different ways to squash this, and still don't think this is ideal, but I wanted to get it out for feedback.

Closes #5900
Closes #9942

There are a few scenarios where the compiler tries to evaluate CastExprs without the corresponding types being available yet in the type context:  https://github.com/mozilla/rust/issues/10618, https://github.com/mozilla/rust/issues/5900, https://github.com/mozilla/rust/issues/9942

This PR takes the approach of having eval_const_expr_partial's CastExpr arm fall back to a limited ast_ty_to_ty call that only checks for (a subset of) valid const types, when the direct type lookup fails.  It's kind of hacky, so I understand if you don't want to take this as is.  I'd need a little mentoring to get this into better shape, as figuring out the proper fix has been a little daunting. I'm also happy if someone else wants to pick this up and run with it.

This closes 5900 and 9942, but only moves the goalposts a little on 10618, which now falls over in a later phase of the compiler.

10 years agoauto merge of #11955 : alexcrichton/rust/fix-unwinding-on-mac-64, r=cmr
bors [Fri, 31 Jan 2014 19:21:33 +0000 (11:21 -0800)]
auto merge of #11955 : alexcrichton/rust/fix-unwinding-on-mac-64, r=cmr

I believe that this is leading to lots of failures on the bots.

cc #11954

10 years agoDisable fp elim on mac64
Alex Crichton [Fri, 31 Jan 2014 18:18:13 +0000 (10:18 -0800)]
Disable fp elim on mac64

I believe that this is leading to lots of failures on the bots.

cc #11954

10 years agoauto merge of #11917 : thestinger/rust/intrinsic, r=alexcrichton
bors [Fri, 31 Jan 2014 18:01:48 +0000 (10:01 -0800)]
auto merge of #11917 : thestinger/rust/intrinsic, r=alexcrichton

10 years agoauto merge of #11933 : kini/rust/patch-1, r=alexcrichton
bors [Fri, 31 Jan 2014 16:46:34 +0000 (08:46 -0800)]
auto merge of #11933 : kini/rust/patch-1, r=alexcrichton

Text refers to "the type shown earlier", when the type in
question was not in fact shown earlier.  I assume this is
an artifact of an earlier revision.

10 years agoauto merge of #11929 : FlaPer87/rust/issue-11681, r=huonw
bors [Fri, 31 Jan 2014 13:36:31 +0000 (05:36 -0800)]
auto merge of #11929 : FlaPer87/rust/issue-11681, r=huonw

closes #11681

10 years agoUse __pthread_get_minstack() when available.
Ben Noordhuis [Wed, 29 Jan 2014 17:19:23 +0000 (18:19 +0100)]
Use __pthread_get_minstack() when available.

glibc >= 2.15 has a __pthread_get_minstack() function that returns
PTHREAD_STACK_MIN plus however many bytes are needed for thread-local
storage.  Use it when it's available because just PTHREAD_STACK_MIN is
not enough in applications that have big thread-local storage
requirements.

Fixes #6233.

10 years agoRetry on EINVAL from pthread_attr_setstacksize()
Ben Noordhuis [Tue, 28 Jan 2014 12:21:31 +0000 (13:21 +0100)]
Retry on EINVAL from pthread_attr_setstacksize()

Enforce that the stack size is > RED_ZONE + PTHREAD_STACK_MIN.  If the
call to pthread_attr_setstacksize() subsequently fails with EINVAL, it
means that the platform requires the stack size to be a multiple of the
page size.  In that case, round up to the nearest page and retry.

Fixes #11694.

10 years agoAdd libc::consts::os::posix01::PTHREAD_STACK_MIN
Ben Noordhuis [Tue, 28 Jan 2014 10:48:30 +0000 (11:48 +0100)]
Add libc::consts::os::posix01::PTHREAD_STACK_MIN

Represents the minimum size of a thread's stack.  As such, it's both
platform and architecture-specific.

I put it under posix01 even though it predates POSIX.1-2001 by some
years.  I believe it was first formalized in SUSv2.  I doubt anyone
cares, though.

10 years agoauto merge of #11918 : omasanori/rust/reduce-warnings, r=alexcrichton
bors [Fri, 31 Jan 2014 12:21:29 +0000 (04:21 -0800)]
auto merge of #11918 : omasanori/rust/reduce-warnings, r=alexcrichton

Moving forward to green waterfall.

10 years agoauto merge of #11947 : alexcrichton/rust/osx-unwind, r=brson
bors [Fri, 31 Jan 2014 07:51:28 +0000 (23:51 -0800)]
auto merge of #11947 : alexcrichton/rust/osx-unwind, r=brson

On OSX 32-bit, the private fields are 5 words long, not 2. I found this
segfaulting before this change, and after this change it no longer segfaulted.

10 years agoFix the size of the _Unwind_Exception struct
Alex Crichton [Fri, 31 Jan 2014 04:58:04 +0000 (20:58 -0800)]
Fix the size of the _Unwind_Exception struct

On OSX 32-bit, the private fields are 5 words long, not 2. I found this
segfaulting before this change, and after this change it no longer segfaulted.

10 years agoauto merge of #11784 : eminence/rust/fix_run_tests, r=alexcrichton
bors [Fri, 31 Jan 2014 02:11:30 +0000 (18:11 -0800)]
auto merge of #11784 : eminence/rust/fix_run_tests, r=alexcrichton

This test is designed to ensure that running a non-existent executable
results in a correct error message (FileNotFound in this case of this
test).  However, if you try to run an executable that doesn't exist, and
that requires searching through the $PATH, and one of the $PATH components
is not readable, then a PermissionDenied error will be returned, instead
of FileNotFound.

Using an absolute path skips the $PATH search logic in exec, thus by-passing the logic in exec that would have returned a PermissionDenied

In the specific case of my machine, /usr/bin/games was part of $PATH, but my user account wasn't in the games group (thus being unable to read /usr/bin/games)

See the man pages for execv and execve for more details.

I've tested this on Linux and OSX, and I am fairly certain that there will be no problems on Windows

10 years agoauto merge of #11759 : nathanielherman/rust/master, r=alexcrichton
bors [Thu, 30 Jan 2014 23:46:28 +0000 (15:46 -0800)]
auto merge of #11759 : nathanielherman/rust/master, r=alexcrichton

For #5172

10 years agoMake size_of, align_of, and element_offset functions return u64 instead of uint in...
Nathaniel Herman [Thu, 30 Jan 2014 22:19:19 +0000 (17:19 -0500)]
Make size_of, align_of, and element_offset functions return u64 instead of uint in trans::machine (per #5172)

10 years agoauto merge of #11895 : xales/rust/libstd, r=alexcrichton
bors [Thu, 30 Jan 2014 21:36:41 +0000 (13:36 -0800)]
auto merge of #11895 : xales/rust/libstd, r=alexcrichton

Fixes #11814

10 years agoauto merge of #11217 : eddyb/rust/generic-default-type-params, r=cmr
bors [Thu, 30 Jan 2014 18:41:47 +0000 (10:41 -0800)]
auto merge of #11217 : eddyb/rust/generic-default-type-params, r=cmr

10 years agoImplement default type parameters in generics.
Eduard Burtescu [Thu, 30 Jan 2014 17:28:02 +0000 (19:28 +0200)]
Implement default type parameters in generics.

10 years agoauto merge of #11914 : FlaPer87/rust/issue-6157, r=alexcrichton
bors [Thu, 30 Jan 2014 15:06:27 +0000 (07:06 -0800)]
auto merge of #11914 : FlaPer87/rust/issue-6157, r=alexcrichton

closes #6157

10 years agoFix inconsistency in tutorial.md
Keshav Kini [Thu, 30 Jan 2014 14:36:49 +0000 (08:36 -0600)]
Fix inconsistency in tutorial.md

Text refers to "the type shown earlier", when the type in
question was not in fact shown earlier.  I assume this is
an artifact of an earlier revision.

10 years agoauto merge of #11911 : kballard/rust/empty-functional-update, r=pcwalton
bors [Thu, 30 Jan 2014 13:06:30 +0000 (05:06 -0800)]
auto merge of #11911 : kballard/rust/empty-functional-update, r=pcwalton

Fixes #8972

10 years agoauto merge of #11909 : thestinger/rust/tydesc, r=pcwalton
bors [Thu, 30 Jan 2014 11:36:25 +0000 (03:36 -0800)]
auto merge of #11909 : thestinger/rust/tydesc, r=pcwalton

10 years agoAdd test case for issue #11681
Flavio Percoco [Thu, 30 Jan 2014 11:17:58 +0000 (12:17 +0100)]
Add test case for issue #11681

10 years agoauto merge of #11907 : sanxiyn/rust/simd-shift, r=thestinger
bors [Thu, 30 Jan 2014 09:56:23 +0000 (01:56 -0800)]
auto merge of #11907 : sanxiyn/rust/simd-shift, r=thestinger

For the purpose of deciding whether to truncate or extend the right hand side of bit shifts, use the size of the element type for SIMD vector types.

Fix #11900.

10 years agoauto merge of #11853 : alexcrichton/rust/up-llvm, r=brson
bors [Thu, 30 Jan 2014 07:46:26 +0000 (23:46 -0800)]
auto merge of #11853 : alexcrichton/rust/up-llvm, r=brson

This upgrade brings commit by @eddyb to help optimizations of virtual calls in
a few places (https://github.com/llvm-mirror/llvm/commit/6d2bd95) as well as a
commit by @c-a to *greatly* improve the runtime of the optimization passes
(https://github.com/rust-lang/llvm/pull/3).

Nice work to these guys!

10 years agoUpgrade LLVM
Alex Crichton [Mon, 27 Jan 2014 20:45:48 +0000 (12:45 -0800)]
Upgrade LLVM

This upgrade brings commit by @eddyb to help optimizations of virtual calls in
a few places (https://github.com/llvm-mirror/llvm/commit/6d2bd95) as well as a
commit by @c-a to *greatly* improve the runtime of the optimization passes
(https://github.com/rust-lang/llvm/pull/3).

Nice work to these guys!

10 years agoauto merge of #11839 : typelist/rust/issue3008, r=huonw
bors [Thu, 30 Jan 2014 06:21:29 +0000 (22:21 -0800)]
auto merge of #11839 : typelist/rust/issue3008, r=huonw

It was possible to trigger a stack overflow in rustc because the routine used to verify enum representability,
type_structurally_contains, would recurse on inner types until hitting the original type. The overflow condition was when a different structurally recursive type (enum or struct) was contained in the type being checked.

I suspect my solution isn't as efficient as it could be. I pondered adding a cache of previously-seen types to avoid duplicating work (if enums A and B both contain type C, my code goes through C twice), but I didn't want to do anything that may not be necessary.

I'm a new contributor, so please pay particular attention to any unidiomatic code, misuse of terminology, bad naming of tests, or similar horribleness :)

Updated to verify struct representability as well.

Fixes #3008.
Fixes #3779.

10 years agoConsider types that contain fixed-length-zero vectors of themselves as non-representa...
Johannes Muenzel [Thu, 30 Jan 2014 05:22:39 +0000 (00:22 -0500)]
Consider types that contain fixed-length-zero vectors of themselves as non-representable until #11924 is resolved

10 years agoauto merge of #11672 : bjz/rust/remove-times, r=brson
bors [Thu, 30 Jan 2014 04:06:36 +0000 (20:06 -0800)]
auto merge of #11672 : bjz/rust/remove-times, r=brson

`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal (which I liked) was then lost after `do` was disabled for closures. It's time to let this one go.

10 years agoRemove Times trait
Brendan Zabarauskas [Thu, 30 Jan 2014 00:20:34 +0000 (11:20 +1100)]
Remove Times trait

`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.

10 years agoAdd compile-fail tests for non-representable structs and enums
Johannes Muenzel [Tue, 28 Jan 2014 06:29:22 +0000 (01:29 -0500)]
Add compile-fail tests for non-representable structs and enums

10 years agoCheck enum and struct representability properly (issues #3008 and #3779)
Johannes Muenzel [Tue, 28 Jan 2014 06:28:50 +0000 (01:28 -0500)]
Check enum and struct representability properly (issues #3008 and #3779)

10 years agoRemove seldom-used std::reference functions.
xales [Wed, 29 Jan 2014 02:05:57 +0000 (21:05 -0500)]
Remove seldom-used std::reference functions.

10 years agoRemove double-use of logging.
xales [Wed, 29 Jan 2014 00:56:06 +0000 (19:56 -0500)]
Remove double-use of logging.

10 years agoRename std::borrow to std::reference.
xales [Wed, 29 Jan 2014 00:29:10 +0000 (19:29 -0500)]
Rename std::borrow to std::reference.

Fixes #11814

10 years agoauto merge of #11893 : Armavica/rust/copyable-cloneable, r=huonw
bors [Thu, 30 Jan 2014 01:01:39 +0000 (17:01 -0800)]
auto merge of #11893 : Armavica/rust/copyable-cloneable, r=huonw

I found awkward to have `MutableCloneableVector` and `CloneableIterator` on the one hand, and `CopyableVector` etc. on the other hand.

The concerned traits are:
* `CopyableVector` --> `CloneableVector`
* `OwnedCopyableVector` --> `OwnedCloneableVector`
* `ImmutableCopyableVector` --> `ImmutableCloneableVector`
* `CopyableTuple` --> `CloneableTuple`

10 years agoremove a layer of indirection from most intrinsics
Daniel Micay [Wed, 29 Jan 2014 23:44:14 +0000 (18:44 -0500)]
remove a layer of indirection from most intrinsics

10 years agoAppend ; to #[allow(dead_code)].
OGINO Masanori [Wed, 29 Jan 2014 22:15:30 +0000 (07:15 +0900)]
Append ; to #[allow(dead_code)].

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agoPrefix _ to unused variables.
OGINO Masanori [Wed, 29 Jan 2014 21:10:13 +0000 (06:10 +0900)]
Prefix _ to unused variables.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agoRemove unused imports.
OGINO Masanori [Wed, 29 Jan 2014 21:06:18 +0000 (06:06 +0900)]
Remove unused imports.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agoauto merge of #11776 : FlaPer87/rust/issue-11681-static-lifetime, r=nikomatsakis
bors [Wed, 29 Jan 2014 23:01:43 +0000 (15:01 -0800)]
auto merge of #11776 : FlaPer87/rust/issue-11681-static-lifetime, r=nikomatsakis

Closes #11681
Closes #11854

10 years agoAdd test for issue 6157
Flavio Percoco [Wed, 29 Jan 2014 22:39:09 +0000 (23:39 +0100)]
Add test for issue 6157

10 years agoFixes temporary lifetime computation for static items
Flavio Percoco [Mon, 27 Jan 2014 22:09:57 +0000 (23:09 +0100)]
Fixes temporary lifetime computation for static items

closes: #11854

10 years agoauto merge of #11879 : thestinger/rust/frame-pointer, r=alexcrichton
bors [Wed, 29 Jan 2014 21:36:40 +0000 (13:36 -0800)]
auto merge of #11879 : thestinger/rust/frame-pointer, r=alexcrichton

This is still used for Rust code (`Options.NoFramePointerElim = true`).

10 years agoenable fp-elim when debug info is disabled
Daniel Micay [Tue, 28 Jan 2014 19:59:28 +0000 (14:59 -0500)]
enable fp-elim when debug info is disabled

This can almost be fully disabled, as it no longer breaks retrieving a
backtrace on OS X as verified by @alexcrichton. However, it still
breaks retrieving the values of parameters. This should be fixable in
the future via a proper location list...

Closes #7477

10 years agouse a more efficient vtable representation
Daniel Micay [Wed, 29 Jan 2014 15:59:47 +0000 (10:59 -0500)]
use a more efficient vtable representation

[TyDesc, ... methods] -> [destructor, ... methods]

10 years agoauto merge of #11877 : Armavica/rust/doc-pm-vector, r=alexcrichton
bors [Wed, 29 Jan 2014 19:36:41 +0000 (11:36 -0800)]
auto merge of #11877 : Armavica/rust/doc-pm-vector, r=alexcrichton

This feature already was in the tutorial, but I believe that the tutorial should be a strict subset of the manual.

I also added an example.

10 years agoAllow empty functional updating of structs
Kevin Ballard [Wed, 29 Jan 2014 08:33:37 +0000 (00:33 -0800)]
Allow empty functional updating of structs

Fixes #8972

10 years agoauto merge of #11754 : alexcrichton/rust/unused-result, r=brson
bors [Wed, 29 Jan 2014 17:46:34 +0000 (09:46 -0800)]
auto merge of #11754 : alexcrichton/rust/unused-result, r=brson

The general consensus is that we want to move away from conditions for I/O, and I propose a two-step plan for doing so:

1. Warn about unused `Result` types. When all of I/O returns `Result`, it will require you inspect the return value for an error *only if* you have a result you want to look at. By default, for things like `write` returning `Result<(), Error>`, these will all go silently ignored. This lint will prevent blind ignorance of these return values, letting you know that there's something you should do about them.

2. Implement a `try!` macro:

```
macro_rules! try( ($e:expr) => (match $e { Ok(e) => e, Err(e) => return Err(e) }) )
```

With these two tools combined, I feel that we get almost all the benefits of conditions. The first step (the lint) is a sanity check that you're not ignoring return values at callsites. The second step is to provide a convenience method of returning early out of a sequence of computations. After thinking about this for awhile, I don't think that we need the so-called "do-notation" in the compiler itself because I think it's just *too* specialized. Additionally, the `try!` macro is super lightweight, easy to understand, and works almost everywhere. As soon as you want to do something more fancy, my answer is "use match".

Basically, with these two tools in action, I would be comfortable removing conditions. What do others think about this strategy?

----

This PR specifically implements the `unused_result` lint. I actually added two lints, `unused_result` and `unused_must_use`, and the first commit has the rationale for why `unused_result` is turned off by default.

10 years agoFlag Result as #[must_use] and deal with fallout.
Alex Crichton [Thu, 23 Jan 2014 17:53:05 +0000 (09:53 -0800)]
Flag Result as #[must_use] and deal with fallout.

10 years agoauto merge of #11868 : bytbox/rust/remove-do, r=alexcrichton
bors [Wed, 29 Jan 2014 16:21:38 +0000 (08:21 -0800)]
auto merge of #11868 : bytbox/rust/remove-do, r=alexcrichton

Fixes #10815.

10 years agostop making visit glue for closures and traits
Daniel Micay [Wed, 29 Jan 2014 15:41:39 +0000 (10:41 -0500)]
stop making visit glue for closures and traits

10 years agoFix SIMD bit shifts
Seo Sanghyeon [Wed, 29 Jan 2014 15:28:29 +0000 (00:28 +0900)]
Fix SIMD bit shifts

10 years agoauto merge of #11867 : dmanescu/rust/8784-arena-glob, r=huonw
bors [Wed, 29 Jan 2014 14:26:38 +0000 (06:26 -0800)]
auto merge of #11867 : dmanescu/rust/8784-arena-glob, r=huonw

In line with the dissolution of libextra - #8784 - this moves arena and glob into
their own respective modules. Updates .gitignore with the entries
doc/{arena,glob} in accordance.

10 years agoRemoving support for the do syntax from libsyntax and librustc.
Scott Lawrence [Tue, 28 Jan 2014 00:03:32 +0000 (19:03 -0500)]
Removing support for the do syntax from libsyntax and librustc.

Fixes #10815.

10 years agoRemoving usage of the do keyword from documentation
Scott Lawrence [Tue, 28 Jan 2014 05:53:01 +0000 (00:53 -0500)]
Removing usage of the do keyword from documentation

10 years agoRemove do keyword from compiletests
Scott Lawrence [Mon, 27 Jan 2014 23:30:22 +0000 (18:30 -0500)]
Remove do keyword from compiletests

10 years agoRemove do keyword from test/
Scott Lawrence [Mon, 27 Jan 2014 23:29:50 +0000 (18:29 -0500)]
Remove do keyword from test/

10 years agoRemoving do keyword from libgreen
Scott Lawrence [Mon, 27 Jan 2014 04:21:44 +0000 (23:21 -0500)]
Removing do keyword from libgreen

10 years agoRemoving do keyword from libextra
Scott Lawrence [Mon, 27 Jan 2014 04:13:24 +0000 (23:13 -0500)]
Removing do keyword from libextra

10 years agoRemoving do keyword from librustpkg
Scott Lawrence [Mon, 27 Jan 2014 04:12:26 +0000 (23:12 -0500)]
Removing do keyword from librustpkg

10 years agoRemoving do keyword from libnative
Scott Lawrence [Mon, 27 Jan 2014 04:01:20 +0000 (23:01 -0500)]
Removing do keyword from libnative

10 years agoRemove do keyword from librustuv
Scott Lawrence [Mon, 27 Jan 2014 03:57:42 +0000 (22:57 -0500)]
Remove do keyword from librustuv

10 years agoRemoving do keyword from libstd and librustc
Scott Lawrence [Mon, 27 Jan 2014 03:42:26 +0000 (22:42 -0500)]
Removing do keyword from libstd and librustc

10 years agoRemoving do keyword from librustdoc
Scott Lawrence [Mon, 27 Jan 2014 03:13:29 +0000 (22:13 -0500)]
Removing do keyword from librustdoc

10 years agoTreat unary struct and enum variants as rvalues
Flavio Percoco [Fri, 24 Jan 2014 19:48:10 +0000 (20:48 +0100)]
Treat unary struct and enum variants as rvalues

Closes #11681

10 years agoauto merge of #11889 : nikomatsakis/rust/issue-3243-stack-alloc-vec, r=nikomatsakis
bors [Wed, 29 Jan 2014 13:06:44 +0000 (05:06 -0800)]
auto merge of #11889 : nikomatsakis/rust/issue-3243-stack-alloc-vec, r=nikomatsakis

(Lifetime of stack allocated vectors was not being enforced)

Closes #3243.

10 years agoDocument vector destructuring with wildcard '..'
Virgile Andreani [Wed, 29 Jan 2014 09:27:58 +0000 (10:27 +0100)]
Document vector destructuring with wildcard '..'

10 years agoauto merge of #11903 : alexcrichton/rust/android-test-deps, r=huonw
bors [Wed, 29 Jan 2014 09:06:41 +0000 (01:06 -0800)]
auto merge of #11903 : alexcrichton/rust/android-test-deps, r=huonw

This changes android testing to upload *all* target crates rather than just a
select subset. This should unblock #11867 which is introducing a libglob
dependency in testing.

10 years agoFix android test deps
Alex Crichton [Wed, 29 Jan 2014 07:29:38 +0000 (23:29 -0800)]
Fix android test deps

This changes android testing to upload *all* target crates rather than just a
select subset. This should unblock #11867 which is introducing a libglob
dependency in testing.

10 years agoauto merge of #11706 : alexcrichton/rust/issue-11253, r=huonw
bors [Wed, 29 Jan 2014 07:41:36 +0000 (23:41 -0800)]
auto merge of #11706 : alexcrichton/rust/issue-11253, r=huonw

Closes #11253

10 years agoGenerate rlibs by default (instead of dylibs)
Alex Crichton [Tue, 21 Jan 2014 19:49:04 +0000 (11:49 -0800)]
Generate rlibs by default (instead of dylibs)

Closes #11253

10 years agoextra: move glob to libglob
David Manescu [Wed, 29 Jan 2014 02:51:33 +0000 (13:51 +1100)]
extra: move glob to libglob

In line with the dissolution of libextra - moves glob to its own library libglob.
Changes based on PR #11787. Updates .gitignore to ignore doc/glob.

10 years agoauto merge of #11887 : alexcrichton/rust/rpath-for-real, r=thestinger
bors [Wed, 29 Jan 2014 05:46:36 +0000 (21:46 -0800)]
auto merge of #11887 : alexcrichton/rust/rpath-for-real, r=thestinger

Closes #5219

10 years agoAdd a limited prim type lookup for safer const expr evaluation
Jason Fager [Wed, 29 Jan 2014 05:05:11 +0000 (00:05 -0500)]
Add a limited prim type lookup for safer const expr evaluation

10 years agoauto merge of #11883 : alexcrichton/rust/fix-mk-install, r=pnkfelix
bors [Wed, 29 Jan 2014 04:26:40 +0000 (20:26 -0800)]
auto merge of #11883 : alexcrichton/rust/fix-mk-install, r=pnkfelix

Closes #11874

10 years agoextra: move arena to libarena
David Manescu [Wed, 29 Jan 2014 02:50:05 +0000 (13:50 +1100)]
extra: move arena to libarena

In line with the dissolution of libextra - #8784 - moves arena to its own library libarena.
Changes based on PR #11787. Updates .gitignore to ignore doc/arena.

10 years agoImplement an unused_result lint
Alex Crichton [Thu, 23 Jan 2014 17:43:29 +0000 (09:43 -0800)]
Implement an unused_result lint

I attempted to implement the lint in two steps. My first attempt was a
default-warn lint about *all* unused results. While this attempt did indeed find
many possible bugs, I felt that the false-positive rate was too high to be
turned on by default for all of Rust.

My second attempt was to make unused-result a default-allow lint, but allow
certain types to opt-in to the notion of "you must use this". For example, the
Result type is now flagged with #[must_use]. This lint about "must use" types is
warn by default (it's different from unused-result).

The unused_must_use lint had a 100% hit rate in the compiler, but there's not
that many places that return Result right now. I believe that this lint is a
crucial step towards moving away from conditions for I/O (because all I/O will
return Result by default). I'm worried that this lint is a little too specific
to Result itself, but I believe that the false positive rate for the
unused_result lint is too high to make it useful when turned on by default.

10 years agoRename CopyableTuple to CloneableTuple
Virgile Andreani [Tue, 28 Jan 2014 22:45:01 +0000 (23:45 +0100)]
Rename CopyableTuple to CloneableTuple

10 years agoRename ImmutableCopyableVector to ImmutableCloneableVector
Virgile Andreani [Tue, 28 Jan 2014 22:42:40 +0000 (23:42 +0100)]
Rename ImmutableCopyableVector to ImmutableCloneableVector

10 years agoRename OwnedCopyableVector to OwnedCloneableVector
Virgile Andreani [Tue, 28 Jan 2014 22:40:36 +0000 (23:40 +0100)]
Rename OwnedCopyableVector to OwnedCloneableVector