]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoAuto merge of #39747 - mattico:fix-llvm4-createcompileunit, r=alexcrichton
bors [Sat, 11 Feb 2017 22:10:53 +0000 (22:10 +0000)]
Auto merge of #39747 - mattico:fix-llvm4-createcompileunit, r=alexcrichton

[LLVM 4.0] Fix CreateCompileUnit

This is largely identical to @dylanmckay's [patch](https://github.com/dylanmckay), except that it doesn't try to use `file_metadata()`. I don't think that is necessary because we don't want the compile unit to be added to  `debug_context.created_files`, though I'd like confirmation from someone who knows for sure. If that is needed, I can modify `file_metadata_()` so that it can be used from `compile_unit_metadata()`.

7 years agoFix as_ptr() drop problem
Matt Ickstadt [Sat, 11 Feb 2017 21:41:03 +0000 (15:41 -0600)]
Fix as_ptr() drop problem

7 years ago[LLVM 4.0] Fix CreateCompileUnit
Matt Ickstadt [Sat, 11 Feb 2017 21:01:25 +0000 (15:01 -0600)]
[LLVM 4.0] Fix CreateCompileUnit

7 years agoAuto merge of #39736 - frewsxcv:rollup, r=frewsxcv
bors [Sat, 11 Feb 2017 07:18:21 +0000 (07:18 +0000)]
Auto merge of #39736 - frewsxcv:rollup, r=frewsxcv

Rollup of 9 pull requests

- Successful merges: #39174, #39660, #39676, #39692, #39701, #39710, #39721, #39724, #39725
- Failed merges:

7 years agoRollup merge of #39725 - Aaronepower:master, r=steveklabnik
Corey Farwell [Sat, 11 Feb 2017 04:41:40 +0000 (23:41 -0500)]
Rollup merge of #39725 - Aaronepower:master, r=steveklabnik

Updated nightly book with installing nightly instructions

7 years agoRollup merge of #39724 - malbarbo:android, r=alexcrichton
Corey Farwell [Sat, 11 Feb 2017 04:41:39 +0000 (23:41 -0500)]
Rollup merge of #39724 - malbarbo:android, r=alexcrichton

Allow rustc data structures compile to android

flock structure is defined in asm*/fcntl.h. This file on android is
generated from the linux kernel source, so they are the same.

7 years agoRollup merge of #39721 - whataloadofwhat:catch-unwind-bang, r=alexcrichton
Corey Farwell [Sat, 11 Feb 2017 04:41:38 +0000 (23:41 -0500)]
Rollup merge of #39721 - whataloadofwhat:catch-unwind-bang, r=alexcrichton

Change std::panicking::try::Data into a union

No longer potentially call `mem::uninitialized::<!>()`

Fixes #39432

7 years agoRollup merge of #39710 - brson:151notes, r=alexcrichton
Corey Farwell [Sat, 11 Feb 2017 04:41:37 +0000 (23:41 -0500)]
Rollup merge of #39710 - brson:151notes, r=alexcrichton

Update 1.15.1 relnotes

Matching what is on stable.

7 years agoRollup merge of #39701 - sgrif:sg-vec-reserve-docs, r=alexcrichton
Corey Farwell [Sat, 11 Feb 2017 04:41:36 +0000 (23:41 -0500)]
Rollup merge of #39701 - sgrif:sg-vec-reserve-docs, r=alexcrichton

Explicitly mention that `Vec::reserve` is based on len not capacity

I spent a good chunk of time tracking down a buffer overrun bug that
resulted from me mistakenly thinking that `reserve` was based on the
current capacity not the current length. It would be helpful if this
were called out explicitly in the docs.

7 years agoRollup merge of #39692 - oli-obk:patch-2, r=aturon
Corey Farwell [Sat, 11 Feb 2017 04:41:35 +0000 (23:41 -0500)]
Rollup merge of #39692 - oli-obk:patch-2, r=aturon

remove wrong packed struct test

This UB was found by running the test under [Miri](https://github.com/solson/miri) which rejects these unsafe unaligned loads. :smile:

7 years agoRollup merge of #39676 - alexcrichton:fix-again, r=brson
Corey Farwell [Sat, 11 Feb 2017 04:41:34 +0000 (23:41 -0500)]
Rollup merge of #39676 - alexcrichton:fix-again, r=brson

Actually fix manifest generation

The previous fix contained an error where `toml::encode` returned a runtime
error, so this version just constructs a literal `toml::Value`.

7 years agoRollup merge of #39660 - alexcrichton:shasum-dirs, r=brson
Corey Farwell [Sat, 11 Feb 2017 04:41:33 +0000 (23:41 -0500)]
Rollup merge of #39660 - alexcrichton:shasum-dirs, r=brson

Don't include directory names in shasums

Right now we just run `shasum` on an absolute path but right now the shasum
files only include filenames, so let's use `current_dir` and just the file name
to only have the file name emitted.

7 years agoRollup merge of #39174 - rspeer:iter-nth-doc-fix, r=alexcrichton
Corey Farwell [Sat, 11 Feb 2017 04:41:32 +0000 (23:41 -0500)]
Rollup merge of #39174 - rspeer:iter-nth-doc-fix, r=alexcrichton

Fix a misleading statement in `Iterator.nth()`

The `Iterator.nth()` documentation says "Note that all preceding elements will be consumed". I assumed from that that the preceding elements would be the *only* ones that were consumed, but in fact the returned element is consumed as well.

The way I read the documentation, I assumed that `nth(0)` would not discard anything (there are 0 preceding elements, and maybe it just peeks at the start of the iterator somehow), so I added a sentence clarifying that it does. I also rephrased it to avoid the stunted "i.e." phrasing.

7 years agoAuto merge of #39642 - stjepang:specialize-slice-partialord, r=alexcrichton
bors [Sat, 11 Feb 2017 04:37:27 +0000 (04:37 +0000)]
Auto merge of #39642 - stjepang:specialize-slice-partialord, r=alexcrichton

Specialize `PartialOrd<A> for [A] where A: Ord`

This way we can call `cmp` instead of `partial_cmp` in the loop, removing some burden of optimizing `Option`s away from the compiler.

PR #39538 introduced a regression where sorting slices suddenly became slower, since `slice1.lt(slice2)` was much slower than `slice1.cmp(slice2) == Less`. This problem is now fixed.

To verify, I benchmarked this simple program:
```rust
fn main() {
    let mut v = (0..2_000_000).map(|x| x * x * x * 18913515181).map(|x| vec![x, x ^ 3137831591]).collect::<Vec<_>>();
    v.sort();
}
```

Before this PR, it would take 0.95 sec, and now it takes 0.58 sec.
I also tried changing the `is_less` lambda to use `cmp` and `partial_cmp`. Now all three versions (`lt`, `cmp`, `partial_cmp`) are equally performant for sorting slices - all of them take 0.58 sec on the
benchmark.

Tangentially, as soon as we get `default impl`, it might be a good idea to implement a blanket default impl for `lt`, `gt`, `le`, `ge` in terms of `cmp` whenever possible. Today, those four functions by default are only implemented in terms of `partial_cmp`.

r? @alexcrichton

7 years agoAuto merge of #39490 - RReverser:em-linker, r=alexcrichton
bors [Fri, 10 Feb 2017 23:50:46 +0000 (23:50 +0000)]
Auto merge of #39490 - RReverser:em-linker, r=alexcrichton

Add Emscripten-specific linker

Emscripten claims to accept most GNU linker options, but in fact most of `-Wl,...` are useless for it and instead it requires some additional special options which are easier to handle in a separate trait.

Currently added:
 - `export_symbols`: works on executables as special Emscripten case since staticlibs/dylibs aren't compiled to JS, while exports are required to be accessible from JS.
Fixes #39171.
 - `optimize` - translates Rust's optimization level to Emscripten optimization level (whether passed via `-C opt-level=...` or `-O...`).
Fixes #36899.
 - `debuginfo` - translates debug info; Emscripten has 5 debug levels while Rust has 3, so chose to translate `-C debuginfo=1` to `-g3` (preserves whitespace, variable and function names for easy debugging).
Fixes #36901.
 - `no_default_libraries` - tells Emscripten to exclude `memcpy` and co.

TODO (in future PR): dynamic linking via `SIDE_MODULE` / `MAIN_MODULE` mechanism.

7 years agoAuto merge of #39438 - clarcharr:box_from, r=alexcrichton
bors [Fri, 10 Feb 2017 21:11:29 +0000 (21:11 +0000)]
Auto merge of #39438 - clarcharr:box_from, r=alexcrichton

Conversions between slices and boxes

This allows conversion for `Copy` slices, `str`, and `CStr` into their boxed counterparts.

This also adds the method `CString::into_boxed_c_str`.

I would like to add similar implementations for `OsStr` as well, but I have not figured out how.

7 years agoChange std::panicking::try::Data into a union
whataloadofwhat [Fri, 10 Feb 2017 17:55:00 +0000 (17:55 +0000)]
Change std::panicking::try::Data into a union

No longer potentially call `mem::uninitialized::<!>()`

Fixes #39432

7 years agoUpdated installing nightly instructions
Aaron Power [Fri, 10 Feb 2017 18:44:32 +0000 (18:44 +0000)]
Updated installing nightly instructions

7 years agoAllow rustc data structures compile to android
Marco A L Barbosa [Fri, 10 Feb 2017 18:28:42 +0000 (16:28 -0200)]
Allow rustc data structures compile to android

flock structure is defined in asm*/fcntl.h. This file on android is
generated from the linux kernel source, so they are the same.

7 years agoDisable memory init file until further notice
Ingvar Stepanyan [Fri, 10 Feb 2017 17:12:18 +0000 (17:12 +0000)]
Disable memory init file until further notice

It's support is currently too buggy in both Rust tests and Cargo.

7 years agoReenable exception catching in Emscripten even on optimized targets
Ingvar Stepanyan [Thu, 9 Feb 2017 13:35:31 +0000 (13:35 +0000)]
Reenable exception catching in Emscripten even on optimized targets

7 years agoAdd Emscripten-specific linker
Ingvar Stepanyan [Fri, 3 Feb 2017 14:58:13 +0000 (14:58 +0000)]
Add Emscripten-specific linker

It claims to accept most GNU linker options, but in fact most of them
have no effect and instead it requires some special options which are
easier to handle in a separate trait.

Currently added:
 - `export_symbols`: works on executables as special Emscripten case
since staticlibs/dylibs aren't compiled to JS, while exports are
required to be accessible from JS.
Fixes #39171.
 - `optimize` - translates Rust's optimization level to Emscripten
optimization level (whether passed via `-C opt-level=...` or `-O...`).
Fixes #36899.
 - `debuginfo` - translates debug info; Emscripten has 5 debug levels
while Rust has 3, so chose to translate `-C debuginfo=1` to `-g3`
(preserves whitespace, variable and function names for easy debugging).
Fixes #36901.
 - `no_default_libraries` - tells Emscripten to exlude `memcpy` and co.

7 years agoAuto merge of #39708 - jethrogb:patch-4, r=frewsxcv
bors [Fri, 10 Feb 2017 14:26:18 +0000 (14:26 +0000)]
Auto merge of #39708 - jethrogb:patch-4, r=frewsxcv

Update set operations documentation

Reminding people of set terminology.

7 years agoiterator docs: Move paragraph about discarding; clarify "consumed"
Rob Speer [Fri, 10 Feb 2017 06:35:29 +0000 (01:35 -0500)]
iterator docs: Move paragraph about discarding; clarify "consumed"

7 years agoRephrase my proposed edit ("objects" -> "elements")
Rob Speer [Thu, 19 Jan 2017 07:53:33 +0000 (02:53 -0500)]
Rephrase my proposed edit ("objects" -> "elements")

7 years agoFix a misleading statement in `Iterator.nth()`
Rob Speer [Thu, 19 Jan 2017 07:51:29 +0000 (02:51 -0500)]
Fix a misleading statement in `Iterator.nth()`

The `Iterator.nth()` documentation says "Note that all preceding elements will be consumed". I assumed from that that the preceding elements would be the *only* ones that were consumed, but in fact the returned element is consumed as well.

The way I read the documentation, I assumed that `nth(0)` would not discard anything (as there are 0 preceding elements), so I added a sentence clarifying that it does. I also rephrased it to avoid the stunted "i.e." phrasing.

7 years agoAuto merge of #39712 - frewsxcv:rollup, r=frewsxcv
bors [Fri, 10 Feb 2017 04:50:08 +0000 (04:50 +0000)]
Auto merge of #39712 - frewsxcv:rollup, r=frewsxcv

Rollup of 6 pull requests

- Successful merges: #39587, #39674, #39693, #39700, #39705, #39707
- Failed merges:

7 years agoRollup merge of #39707 - durka:parsimonious-span-note, r=jonathandturner
Corey Farwell [Fri, 10 Feb 2017 00:43:26 +0000 (19:43 -0500)]
Rollup merge of #39707 - durka:parsimonious-span-note, r=jonathandturner

change span_notes to notes in E0368/E0369

Fixes #39650.

All the uses of `span_note` in these errors were reusing the same span as the original error, which causes unnecessary repetition.

For an example, see the changes to [src/test/ui/span/issue-39018.stderr](https://github.com/rust-lang/rust/pull/39707/files?diff=unified#diff-46336f62958fdb34233db414cb9914a1R4).

r? @jonathandturner

7 years agoRollup merge of #39705 - tspiteri:name-trait-fn-params, r=aturon
Corey Farwell [Fri, 10 Feb 2017 00:43:25 +0000 (19:43 -0500)]
Rollup merge of #39705 - tspiteri:name-trait-fn-params, r=aturon

name anonymous fn parameters in libcore traits

This follows the discussion in rust-lang/rfcs#1685. The patch gives names to anonymous parameters in libcore traits. It would have two benefits I can think of: firstly it would provide names to tools that can use the names from the traits, and secondly core/std can serve as an example when writing traits; this change helps by not encouraging the use of anonymous parameters.

7 years agoRollup merge of #39700 - msopena:master, r=est31
Corey Farwell [Fri, 10 Feb 2017 00:43:24 +0000 (19:43 -0500)]
Rollup merge of #39700 - msopena:master, r=est31

Adding compile fail test for const_indexing feature

First attempt at contributing to rust. Picked up an easy feature to test.

Issue #39059
r? @est31

7 years agoRollup merge of #39693 - durka:patch-36, r=petrochenkov
Corey Farwell [Fri, 10 Feb 2017 00:43:23 +0000 (19:43 -0500)]
Rollup merge of #39693 - durka:patch-36, r=petrochenkov

driver: restore partially deleted comment

Fixes #39689. Comment was lost in commit 811b8747 (#31916 @nagisa).

7 years agoRollup merge of #39674 - jseyfried:fix_token_tree_parsing_ICE, r=nrc
Corey Farwell [Fri, 10 Feb 2017 00:43:21 +0000 (19:43 -0500)]
Rollup merge of #39674 - jseyfried:fix_token_tree_parsing_ICE, r=nrc

parser: fix ICE when parsing token trees after an error

Fixes #39388, fixes #39616.
r? @nrc

7 years agoRollup merge of #39587 - Keruspe:master, r=alexcrichton
Corey Farwell [Fri, 10 Feb 2017 00:43:20 +0000 (19:43 -0500)]
Rollup merge of #39587 - Keruspe:master, r=alexcrichton

rustbuild: support setting verbosity in config.toml

Most if not all the configuration is settable trhough config.toml but the verbosity isn't yet.

This avoids having to pass -v to x.py on each command if you want verbosity to be always on.

7 years agoUpdate 1.15.1 relnotes
Brian Anderson [Fri, 10 Feb 2017 00:30:02 +0000 (00:30 +0000)]
Update 1.15.1 relnotes

7 years agochange span_notes to notes in E0368/E0369
Alex Burka [Thu, 9 Feb 2017 20:37:59 +0000 (20:37 +0000)]
change span_notes to notes in E0368/E0369

7 years agoUpdate set operations documentation
Jethro Beekman [Thu, 9 Feb 2017 22:16:16 +0000 (14:16 -0800)]
Update set operations documentation

Reminding people of set terminology.

7 years agoAuto merge of #39694 - frewsxcv:rollup, r=frewsxcv
bors [Thu, 9 Feb 2017 21:58:10 +0000 (21:58 +0000)]
Auto merge of #39694 - frewsxcv:rollup, r=frewsxcv

Rollup of 6 pull requests

- Successful merges: #39604, #39619, #39670, #39678, #39682, #39683
- Failed merges:

7 years agoname anonymous fn parameters in libcore traits
Trevor Spiteri [Thu, 9 Feb 2017 21:31:21 +0000 (22:31 +0100)]
name anonymous fn parameters in libcore traits

7 years agoExplicitly mention that `Vec::reserve` is based on len not capacity
Sean Griffin [Thu, 9 Feb 2017 18:58:48 +0000 (13:58 -0500)]
Explicitly mention that `Vec::reserve` is based on len not capacity

I spent a good chunk of time tracking down a buffer overrun bug that
resulted from me mistakenly thinking that `reserve` was based on the
current capacity not the current length. It would be helpful if this
were called out explicitly in the docs.

7 years agoAdding compile fail test for const_indexing feature
Mario [Thu, 9 Feb 2017 18:39:46 +0000 (19:39 +0100)]
Adding compile fail test for const_indexing feature

7 years agoRollup merge of #39683 - solson:fix-unaligned-load-librustc_metadata, r=bluss
Corey Farwell [Thu, 9 Feb 2017 17:14:24 +0000 (12:14 -0500)]
Rollup merge of #39683 - solson:fix-unaligned-load-librustc_metadata, r=bluss

Fix unaligned load in librustc_metadata::index.

The derived `Clone` impl contains UB and will be unsafe when we fix https://github.com/rust-lang/rust/issues/27060. See [this comment](https://github.com/rust-lang/rust/issues/27060#issuecomment-278617096) for more context.

r? @bluss

7 years agoRollup merge of #39682 - solson:fix-unaligned-read, r=eddyb
Corey Farwell [Thu, 9 Feb 2017 17:14:23 +0000 (12:14 -0500)]
Rollup merge of #39682 - solson:fix-unaligned-read, r=eddyb

Fix unsafe unaligned loads in test.

r? @eddyb
cc @Aatch @nikomatsakis

The `#[derive(PartialEq, Debug)]` impls on a packed struct contain undefined behaviour. Both generated impls take references to unaligned fields, which will fail to compile once we correctly treat that as unsafe (see https://github.com/rust-lang/rust/issues/27060).

This UB was found by running the test under [Miri](https://github.com/solson/miri/) which rejects these unsafe unaligned loads. ðŸ˜„

Here's a simpler example:

```rust
struct Packed {
    a: u8,
    b: u64,
}
```

It expands to:

```rust
    fn fmt(&self, __arg_0: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        match *self {
            Packed { a: ref __self_0_0, b: ref __self_0_1 } => { // BAD: these patterns are unsafe
                let mut builder = __arg_0.debug_struct("Packed");
                let _ = builder.field("a", &&(*__self_0_0));
                let _ = builder.field("b", &&(*__self_0_1));
                builder.finish()
            }
        }
    }
```

and

```rust
    fn eq(&self, __arg_0: &Packed) -> bool {
        match *__arg_0 {
            Packed { a: ref __self_1_0, b: ref __self_1_1 } => // BAD: these patterns are unsafe
            match *self {
                Packed { a: ref __self_0_0, b: ref __self_0_1 } => // BAD: these patterns are unsafe
                true && (*__self_0_0) == (*__self_1_0) &&
                    (*__self_0_1) == (*__self_1_1),
            },
        }
    }
```

7 years agoRollup merge of #39678 - vadimcn:top-level-expn, r=michaelwoerister
Corey Farwell [Thu, 9 Feb 2017 17:14:22 +0000 (12:14 -0500)]
Rollup merge of #39678 - vadimcn:top-level-expn, r=michaelwoerister

Exclude top-level macro expansions from source location override.

It occurred to me that a simple heuristic can address the issue #36382: any macros that expand into items (including `include!()`) don't need to be stepped over because there's not code to step through above a function scope level.

r? @michaelwoerister

7 years agoRollup merge of #39670 - JanZerebecki:fix-mailmap-gifnksm, r=steveklabnik
Corey Farwell [Thu, 9 Feb 2017 17:14:21 +0000 (12:14 -0500)]
Rollup merge of #39670 - JanZerebecki:fix-mailmap-gifnksm, r=steveklabnik

Fix mailmap for @gifnksm

cc rust-lang-nursery/thanks#71

7 years agoRollup merge of #39619 - michaelwoerister:rename-crate-metadata, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 17:14:19 +0000 (12:14 -0500)]
Rollup merge of #39619 - michaelwoerister:rename-crate-metadata, r=alexcrichton

Choose different name for metadata obj-file to avoid clashes with user-chosen names.

Fixes #39585 and probably https://github.com/rust-lang/rust/issues/39508.
Incremental compilation assigns different names to obj-files than regular compilation. If a crate is called "metadata" this can lead to a clash between the root module's obj-file and the obj-file containing crate-metadata. This PR assigns a name to the metadata obj-file that cannot clash with other obj-file because it contains a `.` which is not allowed in a Rust module identifier.

r? @alexcrichton

cc @nikomatsakis

7 years agoRollup merge of #39604 - est31:i128_tests, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 17:14:18 +0000 (12:14 -0500)]
Rollup merge of #39604 - est31:i128_tests, r=alexcrichton

Unignore u128 test for stage 0,1

Even more SNAP cleanup.

Follow-up of #39519.

Sorry, I didn't check twice.

7 years agoAuto merge of #38109 - tromey:main-subprogram, r=michaelwoerister
bors [Thu, 9 Feb 2017 17:09:50 +0000 (17:09 +0000)]
Auto merge of #38109 - tromey:main-subprogram, r=michaelwoerister

Emit DW_AT_main_subprogram

This changes rustc to emit DW_AT_main_subprogram on the "main" program.
This lets gdb suitably stop at the user's main in response to
"start" (rather than the library's main, which is what happens
currently).

Fixes #32620
r? michaelwoerister

7 years agodriver: restore partially deleted comment
Alex Burka [Thu, 9 Feb 2017 17:07:58 +0000 (12:07 -0500)]
driver: restore partially deleted comment

7 years agoremoved unused struct
Oliver Schneider [Thu, 9 Feb 2017 16:58:26 +0000 (17:58 +0100)]
removed unused struct

7 years agoremove wrong packed struct test
Oliver Schneider [Thu, 9 Feb 2017 16:55:39 +0000 (17:55 +0100)]
remove wrong packed struct test

7 years agoAuto merge of #39686 - frewsxcv:rollup, r=frewsxcv
bors [Thu, 9 Feb 2017 14:25:04 +0000 (14:25 +0000)]
Auto merge of #39686 - frewsxcv:rollup, r=frewsxcv

Rollup of 5 pull requests

- Successful merges: #39595, #39601, #39602, #39615, #39647
- Failed merges:

7 years agoRollup merge of #39647 - japaric:sparc, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 13:47:36 +0000 (08:47 -0500)]
Rollup merge of #39647 - japaric:sparc, r=alexcrichton

build std for sparc64-unknown-linux-gnu

r? @alexcrichton

panicking / unwinding is broken (#39646) but with std available at least people
will be able to debug that issue on real hardware

7 years agoRollup merge of #39615 - phungleson:corefloat, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 13:47:35 +0000 (08:47 -0500)]
Rollup merge of #39615 - phungleson:corefloat, r=alexcrichton

Improve format float

* Move float into mod float like in test
* Add more tests for f64 f32, lower exp, upper exp, which can come if handy in the future if we want refactor further
* Use `assert_eq` for clearer error messages

7 years agoRollup merge of #39602 - estebank:fix-39544, r=eddyb
Corey Farwell [Thu, 9 Feb 2017 13:47:34 +0000 (08:47 -0500)]
Rollup merge of #39602 - estebank:fix-39544, r=eddyb

Fix ICE when accessing mutably an immutable enum

Fix #39544.

7 years agoRollup merge of #39601 - dumbbell:update-liblibc-to-include-aarch64-unknown-freebsd...
Corey Farwell [Thu, 9 Feb 2017 13:47:33 +0000 (08:47 -0500)]
Rollup merge of #39601 - dumbbell:update-liblibc-to-include-aarch64-unknown-freebsd, r=alexcrichton

liblibc: Update to include `aarch64-unknown-freebsd` support

7 years agoRollup merge of #39595 - camlorn:structured_repr, r=eddyb
Corey Farwell [Thu, 9 Feb 2017 13:47:32 +0000 (08:47 -0500)]
Rollup merge of #39595 - camlorn:structured_repr, r=eddyb

Make reprs use a structured representation instead of a slice

This is needed for `-z reorder-fields`.  The old design uses a slice taken from HIR, plus a cache that lazily parses.  The new design stores it directly in the `AdtDef` as a `ReprOptions`.  We're doing this now because we need to be able to add reprs that don't necessarily exist in HIR for `-z reorder-fields`, but it needs to happen anyway.

`lookup_repr_hints` should be mostly deprecated.  I want to remove it from `layout` before closing this, unless people think that should be a separate PR.  The `[WIP]` is because of this.  The problem with closing this as-is is that the code here isn't actually testable until some parts of the compiler start using it.

r? @eddyb

7 years agoAuto merge of #39265 - est31:master, r=petrochenkov
bors [Thu, 9 Feb 2017 11:42:49 +0000 (11:42 +0000)]
Auto merge of #39265 - est31:master, r=petrochenkov

Stabilize static lifetime in statics

Stabilize the "static_in_const" feature. Blockers before this PR can be merged:

* [x] The [FCP with inclination to stabilize](https://github.com/rust-lang/rust/issues/35897#issuecomment-270441437) needs to be over. FCP lasts roughly three weeks, so will be over at Jan 25, aka this thursday.
* [x] Documentation needs to be added (#37928)

Closes #35897.

7 years agoFix unaligned load in librustc_metadata::index.
Scott Olson [Thu, 9 Feb 2017 11:38:52 +0000 (03:38 -0800)]
Fix unaligned load in librustc_metadata::index.

7 years agoFix indentation in test.
Scott Olson [Thu, 9 Feb 2017 11:10:33 +0000 (03:10 -0800)]
Fix indentation in test.

7 years agoAvoid unsafe unaligned loads in test.
Scott Olson [Thu, 9 Feb 2017 11:09:36 +0000 (03:09 -0800)]
Avoid unsafe unaligned loads in test.

7 years agoMerge branch 'master' of git://github.com/rust-lang/rust
Marc-Antoine Perennou [Thu, 9 Feb 2017 09:11:36 +0000 (10:11 +0100)]
Merge branch 'master' of git://github.com/rust-lang/rust

* 'master' of git://github.com/rust-lang/rust: (70 commits)
  sanitizer-dylib: only run where std for x86_64-linux is available
  travis: Fix build order of dist-x86-linux
  fix the sanitizer-dylib test on non x86_64 linux hosts
  dist-x86-linux: install newer kernel headers
  enable sanitizers on build job that tests x86_64 linux
  enable sanitizers on x86_64-linux releases
  use helper function in the rebuild logic of the rustc_*san crates
  build/test the sanitizers only when --enable-sanitizers is used
  sanitizer support
  Add missing urls on join_paths
  Add test for #27433
  Add more examples, get everything passing at last.
  Remove some leftover makefiles.
  Add more test for rustdoc --test
  Rename manifest_version to manifest-version
  reference: clarify #[cfg] section
  Bump stable release date
  rustbuild: Clean build/dist on `make clean`
  Add missing urls for current_dir
  review nits
  ...

7 years agoAuto merge of #39586 - arielb1:packed-values, r=eddyb
bors [Thu, 9 Feb 2017 09:02:43 +0000 (09:02 +0000)]
Auto merge of #39586 - arielb1:packed-values, r=eddyb

emit "align 1" metadata on loads/stores of packed structs

According to the LLVM reference:
> A value of 0 or an omitted align argument means that the operation has
the ABI alignment for the target.

So loads/stores of fields of packed structs need to have their align set
to 1. Implement that by tracking the alignment of `LvalueRef`s.

Fixes #39376.

r? @eddyb

7 years agoExclude top-level macro expansions from source location override.
Vadim Chugunov [Thu, 9 Feb 2017 06:09:51 +0000 (22:09 -0800)]
Exclude top-level macro expansions from source location override.

7 years agoAuto merge of #39677 - frewsxcv:rollup, r=frewsxcv
bors [Thu, 9 Feb 2017 05:58:29 +0000 (05:58 +0000)]
Auto merge of #39677 - frewsxcv:rollup, r=frewsxcv

Rollup of 9 pull requests

- Successful merges: #37928, #38699, #39589, #39598, #39599, #39641, #39649, #39653, #39671
- Failed merges:

7 years agoRollup merge of #39671 - alexcrichton:change-order, r=brson
Corey Farwell [Thu, 9 Feb 2017 04:55:51 +0000 (23:55 -0500)]
Rollup merge of #39671 - alexcrichton:change-order, r=brson

travis: Fix build order of dist-x86-linux

I just tried to build this container locally but it looks like connecting to
ftp.gnu.org requires SNI, so let's build curl/OpenSSL first to ensure that we've
got an SNI-capable client to download gcc/binutils with.

7 years agoRollup merge of #39653 - JanZerebecki:test-issue-27433, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 04:55:50 +0000 (23:55 -0500)]
Rollup merge of #39653 - JanZerebecki:test-issue-27433, r=alexcrichton

Add test for #27433

7 years agoRollup merge of #39649 - GuillaumeGomez:join_paths-url, r=frewsxcv
Corey Farwell [Thu, 9 Feb 2017 04:55:49 +0000 (23:55 -0500)]
Rollup merge of #39649 - GuillaumeGomez:join_paths-url, r=frewsxcv

Add missing urls on join_paths

r? @frewsxcv

7 years agoRollup merge of #39641 - Ms2ger:purge-mk, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 04:55:48 +0000 (23:55 -0500)]
Rollup merge of #39641 - Ms2ger:purge-mk, r=alexcrichton

Remove some leftover makefiles.

7 years agoRollup merge of #39599 - alexcrichton:cargo-tarball-name, r=brson
Corey Farwell [Thu, 9 Feb 2017 04:55:47 +0000 (23:55 -0500)]
Rollup merge of #39599 - alexcrichton:cargo-tarball-name, r=brson

Fix a manifest-generation bug on beta

Right now all Cargo release tarballs are 'nightly', they're not on the standard
channels yet.

7 years agoRollup merge of #39598 - alexcrichton:cargo-branch, r=brson
Corey Farwell [Thu, 9 Feb 2017 04:55:45 +0000 (23:55 -0500)]
Rollup merge of #39598 - alexcrichton:cargo-branch, r=brson

Fix branch name Cargo's downloaded from

This landed on beta in #39546 and this is bringing the patch back to master.

7 years agoRollup merge of #39589 - ollie27:rustdoc_impl_disambiguation, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 04:55:44 +0000 (23:55 -0500)]
Rollup merge of #39589 - ollie27:rustdoc_impl_disambiguation, r=alexcrichton

rustdoc: Improve impl disambiguation

* Don't disambiguate if there are multiple impls for the same type.
* Disambiguate for impls of &Foo and &mut Foo.
* Don't try to disambiguate generic types.

[before](https://doc.rust-lang.org/nightly/std/ops/trait.Rem.html#implementors) [after](https://ollie27.github.io/rust_doc_test/std/ops/trait.Rem.html#implementors)

7 years agoRollup merge of #38699 - japaric:lsan, r=alexcrichton
Corey Farwell [Thu, 9 Feb 2017 04:55:43 +0000 (23:55 -0500)]
Rollup merge of #38699 - japaric:lsan, r=alexcrichton

LeakSanitizer, ThreadSanitizer, AddressSanitizer and MemorySanitizer support

```
$ cargo new --bin leak && cd $_

$ edit Cargo.toml && tail -n3 $_
```

``` toml
[profile.dev]
opt-level = 1
```

```
$ edit src/main.rs && cat $_
```

``` rust
use std::mem;

fn main() {
    let xs = vec![0, 1, 2, 3];
    mem::forget(xs);
}
```

```
$ RUSTFLAGS="-Z sanitizer=leak" cargo run --target x86_64-unknown-linux-gnu; echo $?
    Finished dev [optimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/leak`

=================================================================
==10848==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x557c3488db1f in __interceptor_malloc /shared/rust/checkouts/lsan/src/compiler-rt/lib/lsan/lsan_interceptors.cc:55
    #1 0x557c34888aaa in alloc::heap::exchange_malloc::h68f3f8b376a0da42 /shared/rust/checkouts/lsan/src/liballoc/heap.rs:138
    #2 0x557c34888afc in leak::main::hc56ab767de6d653a $PWD/src/main.rs:4
    #3 0x557c348c0806 in __rust_maybe_catch_panic ($PWD/target/debug/leak+0x3d806)

SUMMARY: LeakSanitizer: 16 byte(s) leaked in 1 allocation(s).
23
```

```
$ cargo new --bin racy && cd $_

$ edit src/main.rs && cat $_
```

``` rust
use std::thread;

static mut ANSWER: i32 = 0;

fn main() {
    let t1 = thread::spawn(|| unsafe { ANSWER = 42 });
    unsafe {
        ANSWER = 24;
    }
    t1.join().ok();
}
```

```
$ RUSTFLAGS="-Z sanitizer=thread" cargo run --target x86_64-unknown-linux-gnu; echo $?
==================
WARNING: ThreadSanitizer: data race (pid=12019)
  Write of size 4 at 0x562105989bb4 by thread T1:
    #0 racy::main::_$u7b$$u7b$closure$u7d$$u7d$::hbe13ea9e8ac73f7e $PWD/src/main.rs:6 (racy+0x000000010e3f)
    #1 _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h2e466a92accacc78 /shared/rust/checkouts/lsan/src/libstd/panic.rs:296 (racy+0x000000010cc5)
    #2 std::panicking::try::do_call::h7f4d2b38069e4042 /shared/rust/checkouts/lsan/src/libstd/panicking.rs:460 (racy+0x00000000c8f2)
    #3 __rust_maybe_catch_panic <null> (racy+0x0000000b4e56)
    #4 std::panic::catch_unwind::h31ca45621ad66d5a /shared/rust/checkouts/lsan/src/libstd/panic.rs:361 (racy+0x00000000b517)
    #5 std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::hccfc37175dea0b01 /shared/rust/checkouts/lsan/src/libstd/thread/mod.rs:357 (racy+0x00000000c226)
    #6 _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hd880bbf91561e033 /shared/rust/checkouts/lsan/src/liballoc/boxed.rs:605 (racy+0x00000000f27e)
    #7 std::sys::imp::thread::Thread::new::thread_start::hebdfc4b3d17afc85 <null> (racy+0x0000000abd40)

  Previous write of size 4 at 0x562105989bb4 by main thread:
    #0 racy::main::h23e6e5ca46d085c3 $PWD/src/main.rs:8 (racy+0x000000010d7c)
    #1 __rust_maybe_catch_panic <null> (racy+0x0000000b4e56)
    #2 __libc_start_main <null> (libc.so.6+0x000000020290)

  Location is global 'racy::ANSWER::h543d2b139f819b19' of size 4 at 0x562105989bb4 (racy+0x0000002f8bb4)

  Thread T1 (tid=12028, running) created by main thread at:
    #0 pthread_create /shared/rust/checkouts/lsan/src/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:902 (racy+0x00000001aedb)
    #1 std::sys::imp::thread::Thread::new::hce44187bf4a36222 <null> (racy+0x0000000ab9ae)
    #2 std::thread::spawn::he382608373eb667e /shared/rust/checkouts/lsan/src/libstd/thread/mod.rs:412 (racy+0x00000000b5aa)
    #3 racy::main::h23e6e5ca46d085c3 $PWD/src/main.rs:6 (racy+0x000000010d5c)
    #4 __rust_maybe_catch_panic <null> (racy+0x0000000b4e56)
    #5 __libc_start_main <null> (libc.so.6+0x000000020290)

SUMMARY: ThreadSanitizer: data race $PWD/src/main.rs:6 in racy::main::_$u7b$$u7b$closure$u7d$$u7d$::hbe13ea9e8ac73f7e
==================
ThreadSanitizer: reported 1 warnings
66
```

```
$ cargo new --bin oob && cd $_

$ edit src/main.rs && cat $_
```

``` rust
fn main() {
    let xs = [0, 1, 2, 3];
    let y = unsafe { *xs.as_ptr().offset(4) };
}
```

```
$ RUSTFLAGS="-Z sanitizer=address" cargo run --target x86_64-unknown-linux-gnu; echo $?
=================================================================
==13328==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff29f3ecd0 at pc 0x55802dc6bf7e bp 0x7fff29f3ec90 sp 0x7fff29f3ec88
READ of size 4 at 0x7fff29f3ecd0 thread T0
    #0 0x55802dc6bf7d in oob::main::h0adc7b67e5feb2e7 $PWD/src/main.rs:3
    #1 0x55802dd60426 in __rust_maybe_catch_panic ($PWD/target/debug/oob+0xfe426)
    #2 0x55802dd58dd9 in std::rt::lang_start::hb2951fc8a59d62a7 ($PWD/target/debug/oob+0xf6dd9)
    #3 0x55802dc6c002 in main ($PWD/target/debug/oob+0xa002)
    #4 0x7fad8c3b3290 in __libc_start_main (/usr/lib/libc.so.6+0x20290)
    #5 0x55802dc6b719 in _start ($PWD/target/debug/oob+0x9719)

Address 0x7fff29f3ecd0 is located in stack of thread T0 at offset 48 in frame
    #0 0x55802dc6bd5f in oob::main::h0adc7b67e5feb2e7 $PWD/src/main.rs:1

  This frame has 1 object(s):
    [32, 48) 'xs' <== Memory access at offset 48 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow $PWD/src/main.rs:3 in oob::main::h0adc7b67e5feb2e7
Shadow bytes around the buggy address:
  0x1000653dfd40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfd50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfd60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfd70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x1000653dfd90: 00 00 00 00 f1 f1 f1 f1 00 00[f3]f3 00 00 00 00
  0x1000653dfda0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfdb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfdc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfdd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000653dfde0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==13328==ABORTING
1
```

```
$ cargo new --bin uninit && cd $_

$ edit src/main.rs && cat $_
```

``` rust
use std::mem;

fn main() {
    let xs: [u8; 4] = unsafe { mem::uninitialized() };
    let y = xs[0] + xs[1];
}
```

```
$ RUSTFLAGS="-Z sanitizer=memory" cargo run; echo $?
==30198==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x563f4b6867da in uninit::main::hc2731cd4f2ed48f8 $PWD/src/main.rs:5
    #1 0x563f4b7033b6 in __rust_maybe_catch_panic ($PWD/target/debug/uninit+0x873b6)
    #2 0x563f4b6fbd69 in std::rt::lang_start::hb2951fc8a59d62a7 ($PWD/target/debug/uninit+0x7fd69)
    #3 0x563f4b6868a9 in main ($PWD/target/debug/uninit+0xa8a9)
    #4 0x7fe844354290 in __libc_start_main (/usr/lib/libc.so.6+0x20290)
    #5 0x563f4b6864f9 in _start ($PWD/target/debug/uninit+0xa4f9)

SUMMARY: MemorySanitizer: use-of-uninitialized-value $PWD/src/main.rs:5 in uninit::main::hc2731cd4f2ed48f8
Exiting
77
```

7 years agoRollup merge of #37928 - chriskrycho:document-rfc-1623, r=steveklabnik
Corey Farwell [Thu, 9 Feb 2017 04:55:42 +0000 (23:55 -0500)]
Rollup merge of #37928 - chriskrycho:document-rfc-1623, r=steveklabnik

Document RFC 1623: static lifetime elision.

This should be the last item required for stabilizing RFC 1623 (#35897).

7 years agoActually fix manifest generation
Alex Crichton [Thu, 9 Feb 2017 04:49:58 +0000 (20:49 -0800)]
Actually fix manifest generation

The previous fix contained an error where `toml::encode` returned a runtime
error, so this version just constructs a literal `toml::Value`.

7 years agosanitizer-dylib: only run where std for x86_64-linux is available
Jorge Aparicio [Thu, 9 Feb 2017 03:58:53 +0000 (22:58 -0500)]
sanitizer-dylib: only run where std for x86_64-linux is available

7 years agoFix ICE when parsing token trees after an error.
Jeffrey Seyfried [Wed, 8 Feb 2017 23:38:41 +0000 (23:38 +0000)]
Fix ICE when parsing token trees after an error.

7 years agotravis: Fix build order of dist-x86-linux
Alex Crichton [Thu, 9 Feb 2017 01:13:46 +0000 (17:13 -0800)]
travis: Fix build order of dist-x86-linux

I just tried to build this container locally but it looks like connecting to
ftp.gnu.org requires SNI, so let's build curl/OpenSSL first to ensure that we've
got an SNI-capable client to download gcc/binutils with.

7 years agoFix mailmap for @gifnksm
Jan Zerebecki [Thu, 9 Feb 2017 00:45:58 +0000 (01:45 +0100)]
Fix mailmap for @gifnksm

cc rust-lang-nursery/thanks#71

7 years agofix the sanitizer-dylib test on non x86_64 linux hosts
Jorge Aparicio [Wed, 8 Feb 2017 03:47:03 +0000 (22:47 -0500)]
fix the sanitizer-dylib test on non x86_64 linux hosts

7 years agodist-x86-linux: install newer kernel headers
Jorge Aparicio [Mon, 6 Feb 2017 19:12:56 +0000 (14:12 -0500)]
dist-x86-linux: install newer kernel headers

7 years agoenable sanitizers on build job that tests x86_64 linux
Jorge Aparicio [Mon, 6 Feb 2017 00:09:32 +0000 (19:09 -0500)]
enable sanitizers on build job that tests x86_64 linux

7 years agoenable sanitizers on x86_64-linux releases
Jorge Aparicio [Sun, 5 Feb 2017 01:15:20 +0000 (20:15 -0500)]
enable sanitizers on x86_64-linux releases

7 years agouse helper function in the rebuild logic of the rustc_*san crates
Jorge Aparicio [Sun, 5 Feb 2017 01:10:29 +0000 (20:10 -0500)]
use helper function in the rebuild logic of the rustc_*san crates

7 years agobuild/test the sanitizers only when --enable-sanitizers is used
Jorge Aparicio [Fri, 3 Feb 2017 23:58:47 +0000 (18:58 -0500)]
build/test the sanitizers only when --enable-sanitizers is used

7 years agosanitizer support
Jorge Aparicio [Fri, 30 Dec 2016 04:28:11 +0000 (23:28 -0500)]
sanitizer support

7 years agoDon't include directory names in shasums
Alex Crichton [Wed, 8 Feb 2017 23:08:30 +0000 (15:08 -0800)]
Don't include directory names in shasums

Right now we just run `shasum` on an absolute path but right now the shasum
files only include filenames, so let's use `current_dir` and just the file name
to only have the file name emitted.

7 years agopacify tidy
Ariel Ben-Yehuda [Mon, 6 Feb 2017 20:23:26 +0000 (21:23 +0100)]
pacify tidy

7 years agoaddress review comments
Ariel Ben-Yehuda [Mon, 6 Feb 2017 17:04:07 +0000 (18:04 +0100)]
address review comments

7 years agoInline the function `with_lvalue_ref` into `trans_transmute`
Ariel Ben-Yehuda [Mon, 6 Feb 2017 16:37:58 +0000 (17:37 +0100)]
Inline the function `with_lvalue_ref` into `trans_transmute`

The function was a footgun because it created `undef` references to
ZSTs, which could cause trouble were they to leak to user code.

7 years agoremove unneeded drop of isize
Ariel Ben-Yehuda [Mon, 6 Feb 2017 16:30:03 +0000 (17:30 +0100)]
remove unneeded drop of isize

7 years agoemit "align 1" metadata on loads/stores of packed structs
Ariel Ben-Yehuda [Mon, 6 Feb 2017 16:27:09 +0000 (17:27 +0100)]
emit "align 1" metadata on loads/stores of packed structs

According to the LLVM reference:
> A value of 0 or an omitted align argument means that the operation has
the ABI alignment for the target.

So loads/stores of fields of packed structs need to have their align set
to 1. Implement that by tracking the alignment of `LvalueRef`s.

Fixes #39376.

7 years agoAdd missing urls on join_paths
Guillaume Gomez [Wed, 8 Feb 2017 17:42:01 +0000 (18:42 +0100)]
Add missing urls on join_paths

7 years agoAdd test for #27433
Jan Zerebecki [Wed, 8 Feb 2017 20:50:29 +0000 (21:50 +0100)]
Add test for #27433

7 years agoAuto merge of #39523 - alexcrichton:fpic, r=aturon
bors [Wed, 8 Feb 2017 20:49:24 +0000 (20:49 +0000)]
Auto merge of #39523 - alexcrichton:fpic, r=aturon

Pass -fPIC to native compiles on 32-bit

This is apparently a regression from 1.14.0 to 1.15.0. Previously we
passed `-fPIC` to C compilers on i686 targets, but the `gcc` crate
apparently [explicitly] didn't do this. I don't recall why that was
avoided but it was [previously passed by the makefiles][mk] and this
seems to have [caused a regression][regression] in Firefox, so this
commit reverts back to passing `-fPIC`.

[explicitly]: https://github.com/alexcrichton/gcc-rs/commit/362bdf20
[mk]: https://github.com/rust-lang/rust/blob/c781fc4a/mk/cfg/i686-unknown-linux-gnu.mk#L11
[regression]: https://bugzilla.mozilla.org/show_bug.cgi?id=1336155

7 years agoAdd more examples, get everything passing at last.
Chris Krycho [Wed, 8 Feb 2017 19:30:31 +0000 (14:30 -0500)]
Add more examples, get everything passing at last.

7 years agoAuto merge of #39645 - frewsxcv:rollup, r=frewsxcv
bors [Wed, 8 Feb 2017 18:11:06 +0000 (18:11 +0000)]
Auto merge of #39645 - frewsxcv:rollup, r=frewsxcv

Rollup of 11 pull requests

- Successful merges: #39462, #39512, #39529, #39557, #39561, #39582, #39583, #39597, #39622, #39624, #39630
- Failed merges:

7 years agoRemove unnecessary specialization for [u8]
Stjepan Glavina [Wed, 8 Feb 2017 17:03:10 +0000 (18:03 +0100)]
Remove unnecessary specialization for [u8]

7 years agobuild-manifest: update TARGETS
Jorge Aparicio [Wed, 8 Feb 2017 16:50:27 +0000 (11:50 -0500)]
build-manifest: update TARGETS

7 years agobuild std for sparc64-unknown-linux-gnu
Jorge Aparicio [Wed, 8 Feb 2017 15:31:19 +0000 (10:31 -0500)]
build std for sparc64-unknown-linux-gnu

7 years agoRollup merge of #39630 - alexcrichton:update-manifest, r=brson
Corey Farwell [Wed, 8 Feb 2017 15:19:59 +0000 (10:19 -0500)]
Rollup merge of #39630 - alexcrichton:update-manifest, r=brson

Rename manifest_version to manifest-version

The current manifests encode this with a dash in the name, so we should preserve
that!