]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoRollup merge of #31843 - Wafflespeanut:bool_docs, r=steveklabnik
Manish Goregaokar [Wed, 24 Feb 2016 22:51:10 +0000 (04:21 +0530)]
Rollup merge of #31843 - Wafflespeanut:bool_docs, r=steveklabnik

fixes #29332

r? @steveklabnik

8 years agoRollup merge of #31842 - dileepbapat:master, r=alexcrichton
Manish Goregaokar [Wed, 24 Feb 2016 22:51:10 +0000 (04:21 +0530)]
Rollup merge of #31842 - dileepbapat:master, r=alexcrichton

I have made changes and built it after that. Please advise,

https://github.com/rust-lang/rust/issues/31820

8 years agoRollup merge of #31839 - mitaa:rdoc-idx-self, r=alexcrichton
Manish Goregaokar [Wed, 24 Feb 2016 22:51:10 +0000 (04:21 +0530)]
Rollup merge of #31839 - mitaa:rdoc-idx-self, r=alexcrichton

fixes #31598

r? @alexcrichton

8 years agoRollup merge of #31784 - urschrei:chunks_doc, r=steveklabnik
Manish Goregaokar [Wed, 24 Feb 2016 22:51:10 +0000 (04:21 +0530)]
Rollup merge of #31784 - urschrei:chunks_doc, r=steveklabnik

Closes #31773

r? @steveklabnik

8 years agoRollup merge of #31677 - ivan:doc-vtable, r=steveklabnik
Manish Goregaokar [Wed, 24 Feb 2016 22:51:10 +0000 (04:21 +0530)]
Rollup merge of #31677 - ivan:doc-vtable, r=steveklabnik

I sure hope this fix is right

cc @steveklabnik

8 years agoAuto merge of #31832 - mmatyas:update_libc_16f1c19, r=alexcrichton
bors [Wed, 24 Feb 2016 13:32:24 +0000 (13:32 +0000)]
Auto merge of #31832 - mmatyas:update_libc_16f1c19, r=alexcrichton

This fixes the `aarch64-linux-android` build (#31595).

8 years agoAuto merge of #31828 - frewsxcv:sepseq-associated-function, r=alexcrichton
bors [Wed, 24 Feb 2016 11:29:31 +0000 (11:29 +0000)]
Auto merge of #31828 - frewsxcv:sepseq-associated-function, r=alexcrichton

None

8 years agoAuto merge of #31782 - pitdicker:clean_out_windows_c, r=alexcrichton
bors [Wed, 24 Feb 2016 07:21:44 +0000 (07:21 +0000)]
Auto merge of #31782 - pitdicker:clean_out_windows_c, r=alexcrichton

I am not entirely sure I have got everything right, but if it compiles it is ok probably...
I tested it with msvc x86_64 and gnu.

Somehow a lot of `EXCEPTION-*` constants are dead code when running test, no idea why.
I have put `#![cfg_attr(test, allow(dead_code))]` at the top for this.

8 years agoAuto merge of #31778 - aturon:snapshot, r=alexcrichton
bors [Wed, 24 Feb 2016 04:42:09 +0000 (04:42 +0000)]
Auto merge of #31778 - aturon:snapshot, r=alexcrichton

r? @alexcrichton

8 years agoAuto merge of #31855 - alexcrichton:fix-tidy, r=nikomatsakis
bors [Wed, 24 Feb 2016 01:55:45 +0000 (01:55 +0000)]
Auto merge of #31855 - alexcrichton:fix-tidy, r=nikomatsakis

The MinGW-based Python implementations would automatically do this, but if we
want to use Python from the official downloads our usage of `/` instead of `\`
can wreak havoc. In a few select locations just use `os.path.normpath` do do the
conversions properly for us.

8 years agomk: Tweak tidy script to work on Windows python
Alex Crichton [Wed, 24 Feb 2016 01:42:50 +0000 (17:42 -0800)]
mk: Tweak tidy script to work on Windows python

The MinGW-based Python implementations would automatically do this, but if we
want to use Python from the official downloads our usage of `/` instead of `\`
can wreak havoc. In a few select locations just use `os.path.normpath` do do the
conversions properly for us.

8 years agoAuto merge of #30614 - arcnmx:cstr-bytes, r=alexcrichton
bors [Tue, 23 Feb 2016 20:08:54 +0000 (20:08 +0000)]
Auto merge of #30614 - arcnmx:cstr-bytes, r=alexcrichton

I'm a bit iffy on the return type, but `Result` would also be a bit weird... The two error cases are `Unterminated` and `InteriorNul(usize)`.

I considered `from_chars(&[c_char])` but this meshes better with `as_bytes_with_nul()` and Rust code in general.

Should there also be a corresponding unsafe `from_bytes_unchecked` variant?

8 years agoUpdated the primitive docs for bool
Ravi Shankar [Tue, 23 Feb 2016 13:35:35 +0000 (19:05 +0530)]
Updated the primitive docs for bool

8 years agoAuto merge of #31751 - gkoz:os_str_path_cmp, r=aturon
bors [Tue, 23 Feb 2016 17:21:18 +0000 (17:21 +0000)]
Auto merge of #31751 - gkoz:os_str_path_cmp, r=aturon

8 years agoCStr::from_bytes_with_nul tests
arcnmx [Tue, 23 Feb 2016 06:37:21 +0000 (01:37 -0500)]
CStr::from_bytes_with_nul tests

8 years ago#31820 - Utilize `if..let` instead of single `match` branch
dileepb [Tue, 23 Feb 2016 15:48:07 +0000 (21:18 +0530)]
#31820 - Utilize `if..let` instead of single `match` branch

8 years agoRegister new snapshots
Aaron Turon [Sat, 20 Feb 2016 00:08:36 +0000 (16:08 -0800)]
Register new snapshots

8 years agoLink cstr from_bytes to tracking issue
arcnmx [Tue, 23 Feb 2016 06:36:50 +0000 (01:36 -0500)]
Link cstr from_bytes to tracking issue

8 years agoAuto merge of #31825 - ollie27:win_lfs, r=alexcrichton
bors [Tue, 23 Feb 2016 14:09:35 +0000 (14:09 +0000)]
Auto merge of #31825 - ollie27:win_lfs, r=alexcrichton

`ReadFile` and `WriteFile` take a DWORD (u32) for the length argument
which was erroneously cast from a usize causing truncation. This meant
methods like `write_all` and `read_exact` would unexpectedly fail if
given a buffer 4 GiB or larger.

We can instead just ask for `u32::MAX` bytes if the given buffer is too
big.

8 years agoDon't record self parameter for static methods
mitaa [Tue, 23 Feb 2016 11:04:27 +0000 (12:04 +0100)]
Don't record self parameter for static methods

8 years agoAuto merge of #31447 - nagisa:mir-cfgsimplify-bitvec, r=nikomatsakis
bors [Tue, 23 Feb 2016 11:12:08 +0000 (11:12 +0000)]
Auto merge of #31447 - nagisa:mir-cfgsimplify-bitvec, r=nikomatsakis

BitVector is more space efficient.

8 years ago[MIR] Change SimplifyCfg pass to use bitvec
Simonas Kazlauskas [Sun, 31 Jan 2016 17:17:15 +0000 (19:17 +0200)]
[MIR] Change SimplifyCfg pass to use bitvec

BitVector is much more space efficient.

8 years agoAuto merge of #31822 - petrochenkov:derive, r=alexcrichton
bors [Tue, 23 Feb 2016 08:07:03 +0000 (08:07 +0000)]
Auto merge of #31822 - petrochenkov:derive, r=alexcrichton

Fixes https://github.com/rust-lang/rust/issues/29548

8 years agoRename CStr::from_bytes to from_bytes_with_nul
arcnmx [Mon, 25 Jan 2016 00:51:19 +0000 (19:51 -0500)]
Rename CStr::from_bytes to from_bytes_with_nul

8 years agoCStr::from_bytes
arcnmx [Tue, 29 Dec 2015 18:41:43 +0000 (13:41 -0500)]
CStr::from_bytes

8 years agoAuto merge of #31814 - petevine:master, r=alexcrichton
bors [Tue, 23 Feb 2016 05:17:08 +0000 (05:17 +0000)]
Auto merge of #31814 - petevine:master, r=alexcrichton

The `vfp2` option was a leftover from `armv6` compatibility features of the original armhf target.
Gcc defaults to `vfp3`on `armv7` hard-float linux systems so we should make it the default for rustc too.

8 years agoUse associated functions for libsyntax SepSeq constructors.
Corey Farwell [Tue, 23 Feb 2016 04:24:42 +0000 (23:24 -0500)]
Use associated functions for libsyntax SepSeq constructors.

8 years agoFix reading/writing 4 GiB or larger files on Windows 64-bit
Oliver Middleton [Tue, 23 Feb 2016 00:04:24 +0000 (00:04 +0000)]
Fix reading/writing 4 GiB or larger files on Windows 64-bit

`ReadFile` and `WriteFile` take a DWORD (u32) for the length argument
which was erroneously cast from a usize causing truncation. This meant
methods like `write_all` and `read_exact` would unexpectedly fail if
given a buffer 4 GiB or larger.

We can instead just ask for `u32::MAX` bytes if the given buffer is too
big.

8 years agoSome refactoring in deriving/debug.rs
Vadim Petrochenkov [Tue, 23 Feb 2016 00:01:24 +0000 (03:01 +0300)]
Some refactoring in deriving/debug.rs

8 years agoAuto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichton
bors [Mon, 22 Feb 2016 23:13:08 +0000 (23:13 +0000)]
Auto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichton

This allows to search for crates in documentation and simplifies the json serialization of the search-index.

fixes #14077

8 years agoAuto merge of #31704 - tbu-:pr_vec_into_iter_clone, r=aturon
bors [Mon, 22 Feb 2016 21:16:36 +0000 (21:16 +0000)]
Auto merge of #31704 - tbu-:pr_vec_into_iter_clone, r=aturon

8 years agoAuto merge of #30969 - Amanieu:extended_atomic_cmpxchg, r=alexcrichton
bors [Mon, 22 Feb 2016 19:10:13 +0000 (19:10 +0000)]
Auto merge of #30969 - Amanieu:extended_atomic_cmpxchg, r=alexcrichton

This is an implementation of rust-lang/rfcs#1443.

8 years agoSimplify search-index serialization
mitaa [Tue, 16 Feb 2016 18:48:28 +0000 (19:48 +0100)]
Simplify search-index serialization

8 years agoAdd a test to make sure trans doesn't choke on any of the intrinsics
Amanieu d'Antras [Mon, 22 Feb 2016 18:39:13 +0000 (18:39 +0000)]
Add a test to make sure trans doesn't choke on any of the intrinsics

8 years agoFix #[derive] for empty structs with braces
Vadim Petrochenkov [Mon, 22 Feb 2016 18:24:32 +0000 (21:24 +0300)]
Fix #[derive] for empty structs with braces

8 years agoAuto merge of #31819 - miqid:doc, r=steveklabnik
bors [Mon, 22 Feb 2016 16:00:56 +0000 (16:00 +0000)]
Auto merge of #31819 - miqid:doc, r=steveklabnik

Hello.

I came across some minor spelling mistakes while going through the documentation for the `Iterator` trait. Also includes a suggested styling fix.

r? @steveklabnik

8 years agoUpdate libc to 16f1c19
Mátyás Mustoha [Mon, 22 Feb 2016 15:54:58 +0000 (16:54 +0100)]
Update libc to 16f1c19

8 years agoCorrect Iterator trait documentation
Michael Huynh [Mon, 22 Feb 2016 14:02:40 +0000 (22:02 +0800)]
Correct Iterator trait documentation

Fixes several minor spelling errors and includes a suggested style fix.

8 years agoEradicate last vestiges of armv6
petevine [Mon, 22 Feb 2016 07:25:29 +0000 (08:25 +0100)]
Eradicate last vestiges of armv6

8 years agoAuto merge of #31813 - nbaksalyar:solaris-fix, r=sanxiyn
bors [Mon, 22 Feb 2016 07:08:25 +0000 (07:08 +0000)]
Auto merge of #31813 - nbaksalyar:solaris-fix, r=sanxiyn

A quick fix for several issues that break a Solaris/Illumos build.
Also, adds a CPU target specification (as seen in a patch for OpenBSD #31727).

8 years agoAuto merge of #31811 - alexcrichton:clean-deps, r=sanxiyn
bors [Mon, 22 Feb 2016 05:20:39 +0000 (05:20 +0000)]
Auto merge of #31811 - alexcrichton:clean-deps, r=sanxiyn

The standard library doesn't depend on rustc_bitflags, so move it to explicit
dependencies on all other crates. Additionally, the arena/fmt_macros deps could
be dropped from libsyntax.

8 years agoAuto merge of #31805 - cuviper:android-lfs, r=alexcrichton
bors [Mon, 22 Feb 2016 03:08:39 +0000 (03:08 +0000)]
Auto merge of #31805 - cuviper:android-lfs, r=alexcrichton

Android should use 64-bit LFS symbols for `lseek` and `ftruncate`, lest
those offset parameters suffer a lossy cast down to a 32-bit `off_t`.

Unlike GNU/Linux, Android's `stat`, `dirent`, and related functions are
always 64-bit LFS compatible, and `open` already implies `O_LARGEFILE`,
so all those don't need to follow Linux.  It might be nice to unify them
anyway, but those other LFS symbols aren't present in API 18 bionic.

r? @alexcrichton

8 years agoAuto merge of #31806 - gokhanettin:to_lowercase-doc, r=japaric
bors [Mon, 22 Feb 2016 01:07:07 +0000 (01:07 +0000)]
Auto merge of #31806 - gokhanettin:to_lowercase-doc, r=japaric

`to_lowercase` example mistakenly calls `to_uppercase` function. This fixes the example.

8 years agoAuto merge of #31810 - gandro:netbsd-fix-stat, r=alexcrichton
bors [Sun, 21 Feb 2016 23:08:24 +0000 (23:08 +0000)]
Auto merge of #31810 - gandro:netbsd-fix-stat, r=alexcrichton

Some struct members have a slighty different name on NetBSD. This has been fixed in the libc crate, but not in libstd, breaking the NetBSD build. Related C struct definition: http://nxr.netbsd.org/xref/src/sys/sys/stat.h?r=1.68#59

This also removes the broken `st_spare()` from MetadataExt, since it is private field reserved for future use.

@dhuseby In case this conflicts with any of your pending patches, feel free to intervene - I'm happy to withdraw this PR.

r? @alexcrichton

8 years agoFix broken Solaris build
Nikita Baksalyar [Sun, 21 Feb 2016 22:57:24 +0000 (01:57 +0300)]
Fix broken Solaris build

8 years agoRaiseException is used by everything except x86 gnu
Paul Dicker [Sun, 21 Feb 2016 19:41:49 +0000 (20:41 +0100)]
RaiseException is used by everything except x86 gnu

8 years agoAuto merge of #31792 - Zoxc:sysroot, r=alexcrichton
bors [Sun, 21 Feb 2016 19:24:02 +0000 (19:24 +0000)]
Auto merge of #31792 - Zoxc:sysroot, r=alexcrichton

With these changes you can build a freestanding sysroot without using floating points using a Cargo.toml and copying the `deps` folder cargo outputs.
```
[package]
name = "sysroot"
version = "0.1.0"

[lib]
path = "lib.rs"
crate-type = ["rlib"]

[dependencies.core]
path = "../vendor/rust/src/src/libcore"
features = ["disable_float"]

[dependencies]
collections = { path = "../vendor/rust/src/src/libcollections" }
```

8 years agorustbuild: Sync some Cargo.toml/lib.rs dependencies
Alex Crichton [Sun, 21 Feb 2016 17:49:13 +0000 (09:49 -0800)]
rustbuild: Sync some Cargo.toml/lib.rs dependencies

The standard library doesn't depend on rustc_bitflags, so move it to explicit
dependencies on all other crates. Additionally, the arena/fmt_macros deps could
be dropped from libsyntax.

8 years agoFixes for 32-bit
Paul Dicker [Sun, 21 Feb 2016 17:15:41 +0000 (18:15 +0100)]
Fixes for 32-bit

8 years agoFix `struct stat` usage on NetBSD
Sebastian Wicki [Sun, 21 Feb 2016 15:31:56 +0000 (16:31 +0100)]
Fix `struct stat` usage on NetBSD

Some struct members have a slighty different name on NetBSD. This has been
fixed in the libc crate, but not in libstd.

This also removes `st_spare` from MetadataExt, since it is private field
reserved for future use.

8 years agoFix liballoc dependencies
John Kåre Alsaker [Sat, 20 Feb 2016 16:57:14 +0000 (17:57 +0100)]
Fix liballoc dependencies

8 years agoAuto merge of #31802 - alexcrichton:fix-dist-rustbuild, r=japaric
bors [Sun, 21 Feb 2016 13:17:37 +0000 (13:17 +0000)]
Auto merge of #31802 - alexcrichton:fix-dist-rustbuild, r=japaric

Forgot to add a few directories to `make dist` so `--enable-rustbuild` can
continue to work.

Closes #31801

8 years agoFix to_lowercase example
Gökhan Karabulut [Sun, 21 Feb 2016 11:19:50 +0000 (13:19 +0200)]
Fix to_lowercase example

8 years agoAuto merge of #31799 - cshaffer:book-fixes, r=steveklabnik
bors [Sun, 21 Feb 2016 11:15:13 +0000 (11:15 +0000)]
Auto merge of #31799 - cshaffer:book-fixes, r=steveklabnik

I noticed a few PRs fixing some of the words around the code refactor in the guessing game tutorial, this should be all that's left.

8 years agoAuto merge of #31785 - sanxiyn:gitmodules, r=alexcrichton
bors [Sun, 21 Feb 2016 09:16:30 +0000 (09:16 +0000)]
Auto merge of #31785 - sanxiyn:gitmodules, r=alexcrichton

libc moved from rust-lang-nursery to rust-lang.

8 years agostd: Use Android LFS off64_t, ftruncate64, and lseek64
Josh Stone [Sun, 21 Feb 2016 09:04:14 +0000 (01:04 -0800)]
std: Use Android LFS off64_t, ftruncate64, and lseek64

Android should use 64-bit LFS symbols for `lseek` and `ftruncate`, lest
those offset parameters suffer a lossy cast down to a 32-bit `off_t`.

Unlike GNU/Linux, Android's `stat`, `dirent`, and related functions are
always 64-bit LFS compatible, and `open` already implies `O_LARGEFILE`,
so all those don't need to follow Linux.  It might be nice to unify them
anyway, but those other LFS symbols aren't present in API 18 bionic.

r? @alexcrichton

8 years agoAuto merge of #31791 - alexcrichton:llvmup3, r=dotdash
bors [Sun, 21 Feb 2016 04:59:50 +0000 (04:59 +0000)]
Auto merge of #31791 - alexcrichton:llvmup3, r=dotdash

Looks like they picked up a bunch of fixes, one of which is even quite relevant
to us!

Closes #31505

8 years agomk: Add missing rustbuild dirs to `dist`
Alex Crichton [Sun, 21 Feb 2016 02:34:07 +0000 (18:34 -0800)]
mk: Add missing rustbuild dirs to `dist`

Forgot to add a few directories to `make dist` so `--enable-rustbuild` can
continue to work.

Closes #31801

8 years agoFix number of lines and methods in guessing game
Chad Shaffer [Sun, 21 Feb 2016 01:00:54 +0000 (17:00 -0800)]
Fix number of lines and methods in guessing game

8 years agoAuto merge of #31761 - Amanieu:volatile, r=alexcrichton
bors [Sun, 21 Feb 2016 00:56:08 +0000 (00:56 +0000)]
Auto merge of #31761 - Amanieu:volatile, r=alexcrichton

Tracking issue: #31756
RFC: rust-lang/rfcs#1467

I've made these unstable for now. Should they be stabilized straight away since we've had plenty of experience with people using the unstable intrinsics?

8 years agoAuto merge of #31757 - petrochenkov:unitdotdot, r=nikomatsakis
bors [Sat, 20 Feb 2016 20:33:33 +0000 (20:33 +0000)]
Auto merge of #31757 - petrochenkov:unitdotdot, r=nikomatsakis

This warning was introduced on Nov 28, 2015 and got into 1.6 stable, it was later requalified from a hardwired warning to a warn-by-default lint.
If this patch is landed soon enough, then `match_of_unit_variant_via_paren_dotdot` will get into 1.8 stable as a deny-by-default lint.
My intention is to turn it into a hard error after March 3, 2016, then it will hit stable at 1.9.

r? @nikomatsakis
cc @pnkfelix

8 years agoAuto merge of #31608 - frewsxcv:osstring-simple-functions, r=alexcrichton
bors [Sat, 20 Feb 2016 18:35:16 +0000 (18:35 +0000)]
Auto merge of #31608 - frewsxcv:osstring-simple-functions, r=alexcrichton

https://github.com/rust-lang/rust/issues/29453

8 years agoAnother rebase on the 3.8 release branch of LLVM
Alex Crichton [Sat, 20 Feb 2016 17:31:17 +0000 (09:31 -0800)]
Another rebase on the 3.8 release branch of LLVM

Looks like they picked up a bunch of fixes, one of which is even quite relevant
to us!

Closes #31505

8 years agoAdd Capacity/length methods for OsString.
Corey Farwell [Fri, 12 Feb 2016 17:21:57 +0000 (12:21 -0500)]
Add Capacity/length methods for OsString.

https://github.com/rust-lang/rust/issues/29453

8 years agoAuto merge of #31747 - jseyfried:stop_resolve_after_fail, r=nrc
bors [Sat, 20 Feb 2016 14:33:13 +0000 (14:33 +0000)]
Auto merge of #31747 - jseyfried:stop_resolve_after_fail, r=nrc

Now that #31461 is merged, a failing resolution can never become indeterminate or succeed, so we no longer have to keep trying to resolve failing import directives.
r? @nrc

8 years agoAuto merge of #31474 - arielb1:mir-typeck, r=nikomatsakis
bors [Sat, 20 Feb 2016 12:38:18 +0000 (12:38 +0000)]
Auto merge of #31474 - arielb1:mir-typeck, r=nikomatsakis

This should stop broken MIR from annoying us when we try to implement things

8 years agoUpdate .gitmodules
Seo Sanghyeon [Sat, 20 Feb 2016 11:37:30 +0000 (20:37 +0900)]
Update .gitmodules

8 years agoaddress review comments
Ariel Ben-Yehuda [Fri, 12 Feb 2016 23:01:08 +0000 (01:01 +0200)]
address review comments

8 years agoAuto merge of #31674 - VladUreche:issue/21221, r=nikomatsakis
bors [Sat, 20 Feb 2016 10:40:42 +0000 (10:40 +0000)]
Auto merge of #31674 - VladUreche:issue/21221, r=nikomatsakis

This commit adds functionality that allows the name resolution pass
to search for entities (traits/types/enums/structs) by name, in
order to show recommendations along with the errors.

For now, only E0405 and E0412 have suggestions attached, as per the
request in bug #21221, but it's likely other errors can also benefit
from the ability to generate suggestions.

8 years agoCorrect size of returned iterator
Stephan Hügel [Sat, 20 Feb 2016 09:04:15 +0000 (09:04 +0000)]
Correct size of returned iterator

The methods don't return `size` slices, but rather slices of
`size` elements. Sorry!

8 years agoClarify chunks() and chunks_mut() iterator content
Stephan Hügel [Sat, 20 Feb 2016 08:52:54 +0000 (08:52 +0000)]
Clarify chunks() and chunks_mut() iterator content

Closes #31773

8 years agoAuto merge of #31620 - alexcrichton:fix-out-of-tree-builds, r=brson
bors [Sat, 20 Feb 2016 08:47:25 +0000 (08:47 +0000)]
Auto merge of #31620 - alexcrichton:fix-out-of-tree-builds, r=brson

This removes creating some extraneous directories and also fixes some submodule management with out of tree builds.

Closes #31619

8 years agoRemove dead code from sys::windows::c
Paul Dicker [Sat, 20 Feb 2016 07:18:02 +0000 (08:18 +0100)]
Remove dead code from sys::windows::c

8 years agoAuto merge of #31777 - steveklabnik:rollup, r=steveklabnik
bors [Sat, 20 Feb 2016 04:48:34 +0000 (04:48 +0000)]
Auto merge of #31777 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #31721, #31737, #31741, #31750, #31763, #31764, #31765, #31775
- Failed merges:

8 years agoAuto merge of #31771 - alexcrichton:oops-that-didnt-fix-anything, r=brson
bors [Sat, 20 Feb 2016 02:52:01 +0000 (02:52 +0000)]
Auto merge of #31771 - alexcrichton:oops-that-didnt-fix-anything, r=brson

In #31717 we rebased our LLVM fork over the 3.8 release branch, and it was
thought that this fixed #31702. The testing, however, must have been erroneous,
as it unfortunately didn't fix the issue! Our MUSL nightly builders are failing
from the same assertion reported in the issue, so we at least know the test case
is a reproduction!

I believe the failure is only happening on the MUSL nightly builders because
none of the auto builders have LLVM assertions enabled, and the Linux nightly
builder *does* have assertions enabled for the binaries we generate but the
distcheck run doesn't test a compiler with LLVM assertions enabled.

8 years agoAuto merge of #31781 - alexcrichton:wtf-segfault, r=aturon
bors [Sat, 20 Feb 2016 00:58:49 +0000 (00:58 +0000)]
Auto merge of #31781 - alexcrichton:wtf-segfault, r=aturon

It's unclear to me whether this test failing under valgrind is actually legit.
The test only fails in valgrind when everything is dynamically linked, and it
appears to work when statically linked.

For now just add the `// no-prefer-dynamic` directive and let's just chalk it up
to a weird valgrind issue.

Closes #31328

8 years agotest: Fix a spuriously failing test on valgrind
Alex Crichton [Sat, 20 Feb 2016 00:53:06 +0000 (16:53 -0800)]
test: Fix a spuriously failing test on valgrind

It's unclear to me whether this test failing under valgrind is actually legit.
The test only fails in valgrind when everything is dynamically linked, and it
appears to work when statically linked.

For now just add the `// no-prefer-dynamic` directive and let's just chalk it up
to a weird valgrind issue.

Closes #31328

8 years agouse the FulfillmentContext and InferCtxt more correctly
Ariel Ben-Yehuda [Fri, 12 Feb 2016 22:23:16 +0000 (00:23 +0200)]
use the FulfillmentContext and InferCtxt more correctly

8 years agoTODO -> FIXME
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:41:01 +0000 (18:41 +0200)]
TODO -> FIXME

8 years agotype-check lvalues
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:05:28 +0000 (18:05 +0200)]
type-check lvalues

8 years agofix a few remaining bugs - make check runs!
Ariel Ben-Yehuda [Thu, 11 Feb 2016 13:38:52 +0000 (15:38 +0200)]
fix a few remaining bugs - make check runs!

8 years agostore the normalized types of field accesses
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:31:42 +0000 (18:31 +0200)]
store the normalized types of field accesses

Fixes #31504

8 years agoderef the argument of overloaded MIR autoderef
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:31:31 +0000 (18:31 +0200)]
deref the argument of overloaded MIR autoderef

Fixes #31466

8 years agomake *mut T -> *const T a coercion
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:31:20 +0000 (18:31 +0200)]
make *mut T -> *const T a coercion

rather than being implicit quasi-subtyping. Nothing good can come out
of quasi-subtyping.

8 years agotuple arguments to overloaded calls
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:30:34 +0000 (18:30 +0200)]
tuple arguments to overloaded calls

also fix translation of "rust-call" functions, although that could use
more optimizations

8 years agoAdd tests for read_volatile and write_volatile
Amanieu d'Antras [Fri, 19 Feb 2016 17:40:36 +0000 (17:40 +0000)]
Add tests for read_volatile and write_volatile

8 years agobe more type-safe in panic/panic_bounds_check
Ariel Ben-Yehuda [Thu, 11 Feb 2016 16:29:44 +0000 (18:29 +0200)]
be more type-safe in panic/panic_bounds_check

TODO: find a correct borrow region

Fixes #31482

8 years agointroduce an early pass to clear dead blocks
Ariel Ben-Yehuda [Sun, 7 Feb 2016 21:09:15 +0000 (23:09 +0200)]
introduce an early pass to clear dead blocks

this makes the the MIR assignment pass complete successfully

8 years agoadd -Z mir-opt-level to disable MIR optimizations
Ariel Ben-Yehuda [Sun, 7 Feb 2016 20:46:39 +0000 (22:46 +0200)]
add -Z mir-opt-level to disable MIR optimizations

setting -Z mir-opt-level=0 will disable all MIR optimizations
for easier debugging

8 years agoRollup merge of #31775 - nxnfufunezn:issue-31769, r=eddyb
Steve Klabnik [Fri, 19 Feb 2016 19:23:29 +0000 (14:23 -0500)]
Rollup merge of #31775 - nxnfufunezn:issue-31769, r=eddyb

Fixes : #31769
r? @eddyb

8 years agoRollup merge of #31765 - tshepang:shorten, r=steveklabnik
Steve Klabnik [Fri, 19 Feb 2016 19:23:29 +0000 (14:23 -0500)]
Rollup merge of #31765 - tshepang:shorten, r=steveklabnik

8 years agoRollup merge of #31764 - tshepang:overlong-sentence, r=steveklabnik
Steve Klabnik [Fri, 19 Feb 2016 19:23:28 +0000 (14:23 -0500)]
Rollup merge of #31764 - tshepang:overlong-sentence, r=steveklabnik

8 years agoRollup merge of #31763 - tshepang:extraneous-word, r=steveklabnik
Steve Klabnik [Fri, 19 Feb 2016 19:23:28 +0000 (14:23 -0500)]
Rollup merge of #31763 - tshepang:extraneous-word, r=steveklabnik

8 years agoRollup merge of #31750 - GuillaumeGomez:mailmap, r=nikomatsakis
Steve Klabnik [Fri, 19 Feb 2016 19:23:28 +0000 (14:23 -0500)]
Rollup merge of #31750 - GuillaumeGomez:mailmap, r=nikomatsakis

It's notably for #31707

8 years agoRollup merge of #31741 - alexcrichton:fix-ios, r=nikomatsakis
Steve Klabnik [Fri, 19 Feb 2016 19:23:28 +0000 (14:23 -0500)]
Rollup merge of #31741 - alexcrichton:fix-ios, r=nikomatsakis

Similar to OSX, these symbols are prefixed by default.

8 years agoRollup merge of #31737 - dhuseby:netbsd_fixes, r=alexcrichton
Steve Klabnik [Fri, 19 Feb 2016 19:23:28 +0000 (14:23 -0500)]
Rollup merge of #31737 - dhuseby:netbsd_fixes, r=alexcrichton

this fixes a small compile error when building for netbsd.

8 years agoRollup merge of #31721 - rphmeier:err_tuplestruct_count, r=Manishearth
Steve Klabnik [Fri, 19 Feb 2016 19:23:28 +0000 (14:23 -0500)]
Rollup merge of #31721 - rphmeier:err_tuplestruct_count, r=Manishearth

Fixes #31706

Also fixes a phrasing error in the diagnostic.

8 years agoFix error[E0518] not displayed for #[inline] on structs inside fns
nxnfufunezn [Fri, 19 Feb 2016 16:57:50 +0000 (22:27 +0530)]
Fix error[E0518] not displayed for #[inline] on structs inside fns

8 years agobegin implementing mir-typeck
Ariel Ben-Yehuda [Sun, 7 Feb 2016 19:13:00 +0000 (21:13 +0200)]
begin implementing mir-typeck

8 years agoAuto merge of #31742 - frewsxcv:needless-lifetimes, r=pnkfelix
bors [Fri, 19 Feb 2016 13:49:46 +0000 (13:49 +0000)]
Auto merge of #31742 - frewsxcv:needless-lifetimes, r=pnkfelix

These explicit lifetimes can be ommitted because of lifetime elision
rules. Instances were found using rust-clippy.