]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoRollup merge of #34685 - GuillaumeGomez:section_header, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34685 - GuillaumeGomez:section_header, r=steveklabnik

Remove invalid CSS rule for doc titles

r? @steveklabnik

Before:

![issue](https://cloud.githubusercontent.com/assets/3050060/16625595/a2f65914-43a5-11e6-9ff2-bcdf11b68cc3.png)

After:

![fixed](https://cloud.githubusercontent.com/assets/3050060/16625602/a9b635ee-43a5-11e6-9f9d-853137eb4e6b.png)

8 years agoRollup merge of #34667 - KaivoAnastetiks:fix/crate-documentation, r=Manishearth
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34667 - KaivoAnastetiks:fix/crate-documentation, r=Manishearth

Add a section about crate documentation.

Fixes #34329
?r @steveklabnik

8 years agoRollup merge of #34664 - alexcrichton:bump, r=brson
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34664 - alexcrichton:bump, r=brson

Bump version to 1.12.0

Beta's now in the forge, let's start working on 1.12.0!

8 years agoRollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez

doc: fix and shorten comment

8 years agoRollup merge of #34626 - sylvestre:master, r=Manishearth
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34626 - sylvestre:master, r=Manishearth

Fix typos

8 years agoRollup merge of #34625 - jaredmanning:patch-1, r=apasel422
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34625 - jaredmanning:patch-1, r=apasel422

Fix spacing in for loop enumeration example

Add a space between the comma and j in (i, j) to make it look nice.

This addresses my recent issue #34624.

😀

8 years agoRollup merge of #34621 - KaivoAnastetiks:fix/#33924, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34621 - KaivoAnastetiks:fix/#33924, r=steveklabnik

Clarifies the meaning of the external mutability.

8 years agoRollup merge of #34619 - frewsxcv:patch-30, r=apasel422
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34619 - frewsxcv:patch-30, r=apasel422

Fix broken markdown link in README.

8 years agoRollup merge of #34615 - rdotdk:master, r=Manishearth
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34615 - rdotdk:master, r=Manishearth

update cargo doc link

updated proper link of cargo doc that contains details about list of options available in semantic versioninig for the dependencies section in Cargo.toml

8 years agoRollup merge of #34558 - GlenDC:master, r=alexcrichton
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34558 - GlenDC:master, r=alexcrichton

rustbuild: propagate bootstrap.py '--help' flag

Fixes #34534.
r? @alexcrichton

8 years agoRollup merge of #34521 - llogiq:doc-fixes, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34521 - llogiq:doc-fixes, r=steveklabnik

extend+improve HIR types documentation

8 years agoRollup merge of #34327 - nrc:save-fix-tuple, r=jseyfried
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34327 - nrc:save-fix-tuple, r=jseyfried

save-analysis: fix a bug with tuple sub-expressions

8 years agoRollup merge of #34277 - ollie27:docs_num, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34277 - ollie27:docs_num, r=steveklabnik

Add/improve num const docs

This adds short summaries to all num consts.

r? @steveklabnik

8 years agoRollup merge of #33265 - tshepang:peek, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:05 +0000 (19:13 -0400)]
Rollup merge of #33265 - tshepang:peek, r=steveklabnik

doc: some `peek` improvements

8 years agoRollup merge of #33250 - durka:patch-19, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:05 +0000 (19:13 -0400)]
Rollup merge of #33250 - durka:patch-19, r=steveklabnik

update documentation of tuple/unit structs

I made the "tuple structs are useless" editorializing a bit weaker and moved it to the end. Feel free to overrule me on that.

I also added an example of how to unpack a tuple struct with dot notation, because it came up on IRC.

`braced_empty_structs` is stable now, so I updated the example for unit-like structs to use that syntax. Should we show both ways?

cc @ubsan
r? @steveklabnik or @GuillaumeGomez

8 years agoAuto merge of #34654 - jseyfried:configure_multi_modified, r=nrc
bors [Wed, 6 Jul 2016 18:13:48 +0000 (11:13 -0700)]
Auto merge of #34654 - jseyfried:configure_multi_modified, r=nrc

Perform `cfg` attribute processing on `MultiModifier`-generated items

Fixes https://users.rust-lang.org/t/unused-attribute-warning-for-custom-derive-attribute/6180.
r? @nrc

8 years agoRemove invalid CSS rule for doc titles
ggomez [Wed, 6 Jul 2016 16:12:24 +0000 (18:12 +0200)]
Remove invalid CSS rule for doc titles

8 years agoAuto merge of #34648 - eddyb:return-in-peace-pls, r=nagisa
bors [Wed, 6 Jul 2016 13:26:37 +0000 (06:26 -0700)]
Auto merge of #34648 - eddyb:return-in-peace-pls, r=nagisa

Revert "Revert "Remove the return_address intrinsic.""

This reverts commit f698cd3a3663a459e459f530f76adef3eeb815fd.

Made possible by the merge of servo/servo#11872, this closes #34227 for good.

8 years agoAuto merge of #34644 - infinity0:master, r=alexcrichton
bors [Wed, 6 Jul 2016 10:30:47 +0000 (03:30 -0700)]
Auto merge of #34644 - infinity0:master, r=alexcrichton

Avoid redundant downloads when bootstrapping

If the local file is available, then verify it against the hash we just
downloaded, and if it matches then we don't need to download it again.

8 years agoAuto merge of #34546 - jseyfried:cfg_attr_path, r=nrc
bors [Wed, 6 Jul 2016 07:34:51 +0000 (00:34 -0700)]
Auto merge of #34546 - jseyfried:cfg_attr_path, r=nrc

Support `cfg_attr` on `path` attributes

Fixes #25544.
This is technically a [breaking-change]. For example, the following would break:
```rust
mod foo; // Suppose `foo.rs` existed in the appropriate location
```

8 years agoAdd regression test
Jeffrey Seyfried [Wed, 29 Jun 2016 09:41:45 +0000 (09:41 +0000)]
Add regression test

8 years agoAuto merge of #34587 - ollie27:rustdoc_prim_titles, r=steveklabnik
bors [Wed, 6 Jul 2016 03:16:40 +0000 (20:16 -0700)]
Auto merge of #34587 - ollie27:rustdoc_prim_titles, r=steveklabnik

rustdoc: Remove paths from primitive page <title> tags

Currently primitive pages have a title like "std::u8 - Rust" this changes
it to "u8 - Rust" as "std::u8" is the name of a module not a primitive
type.

8 years agoTweak verbosity to hopefully better match intuitive expectations
Ximin Luo [Tue, 5 Jul 2016 22:44:31 +0000 (00:44 +0200)]
Tweak verbosity to hopefully better match intuitive expectations

8 years agoHave verify() return a bool rather than a generic RuntimeError
Ximin Luo [Tue, 5 Jul 2016 22:07:26 +0000 (00:07 +0200)]
Have verify() return a bool rather than a generic RuntimeError

8 years agoAuto merge of #34294 - alexandermerritt:book-nuls, r=steveklabnik
bors [Tue, 5 Jul 2016 21:25:07 +0000 (14:25 -0700)]
Auto merge of #34294 - alexandermerritt:book-nuls, r=steveklabnik

Correct use of 'nul' 'null' and capitalization in the book

r? @steveklabnik

8 years agoshow both forms of empty struct declaration
Alex Burka [Tue, 5 Jul 2016 17:46:06 +0000 (13:46 -0400)]
show both forms of empty struct declaration

8 years agoAdd a section about crate documentation.
Kaivo Anastetiks [Tue, 5 Jul 2016 17:17:16 +0000 (13:17 -0400)]
Add a section about crate documentation.

8 years agoBump version to 1.12.0
Alex Crichton [Tue, 5 Jul 2016 15:34:58 +0000 (08:34 -0700)]
Bump version to 1.12.0

Beta's now in the forge, let's start working on 1.12.0!

8 years agoAuto merge of #34412 - gnzlbg:document_platform_intrinsics_generate, r=alexcrichton
bors [Tue, 5 Jul 2016 15:25:37 +0000 (08:25 -0700)]
Auto merge of #34412 - gnzlbg:document_platform_intrinsics_generate, r=alexcrichton

Add x86 intrinsics for bit manipulation (BMI 1.0, BMI 2.0, and TBM).

This PR adds the LLVM x86 intrinsics for the bit manipulation instruction sets (BMI 1.0, BMI 2.0, and TBM).

The objective of this pull-request is to allow building a library that implements all the algorithms offered by those instruction sets, using compiler intrinsics for the targets that support them (by means of `target_feature`).

The target features added are:

- `bmi`: Bit Manipulation Instruction Set 1.0, available in Intel >= Haswell and AMD's >= Jaguar/Piledriver,
- `bmi2`: Bit Manipulation Instruction Set 2.0, available in Intel >= Haswell and AMD's >= Excavator,
- `tbm`: Trailing Bit Manipulation, available only in AMD's Piledriver (won't be available in newer CPUs).

The intrinsics added are:

- BMI 1.0:
  - `bextr`: Bit field extract (with register).
- BMI 2.0:
  - `bzhi`: Zero high bits starting with specified bit position.
  - `pdep`: Parallel bits deposit.
  - `pext`: Parallel bits extract.
- TBM:
 - `bextri`: Bit field extract (with immediate).

8 years agoReplace it's by its.
Kaivo Anastetiks [Tue, 5 Jul 2016 11:26:38 +0000 (07:26 -0400)]
Replace it's by its.

8 years agoAuto merge of #34647 - TimNN:compiler-rt-ios-workaround, r=alexcrichton
bors [Tue, 5 Jul 2016 11:06:50 +0000 (04:06 -0700)]
Auto merge of #34647 - TimNN:compiler-rt-ios-workaround, r=alexcrichton

Update compiler-rt with iOS linking warnings workaround

Closes #34617.

r? @alexcrichton

8 years agoAdd regression test
Jeffrey Seyfried [Tue, 5 Jul 2016 00:22:13 +0000 (00:22 +0000)]
Add regression test

8 years agoAuto merge of #34594 - willcrichton:master, r=nrc
bors [Tue, 5 Jul 2016 05:24:08 +0000 (22:24 -0700)]
Auto merge of #34594 - willcrichton:master, r=nrc

Move LLVM cleanup so modules are accessible during `after_llvm` phase

Fix for #34432. Also added a new phase controller `after_compilation_done` that gets called at the very end (i.e. after linking) at the suggestion of @nrc. The added test will segfault if the modules get deallocated too early, so it ensures the LLVM is not prematurely cleaned up.

r? @nrc

8 years agoAuto merge of #34646 - michaelwoerister:warn-blacklisted-lldb, r=alexcrichton
bors [Tue, 5 Jul 2016 00:59:14 +0000 (17:59 -0700)]
Auto merge of #34646 - michaelwoerister:warn-blacklisted-lldb, r=alexcrichton

Make rust-lldb warn about unsupported versions of LLDB

r? @alexcrichton

8 years agoStrip unconfigured items from `MultiModifier`-expanded AST
Jeffrey Seyfried [Mon, 4 Jul 2016 03:10:04 +0000 (03:10 +0000)]
Strip unconfigured items from `MultiModifier`-expanded AST

8 years agoMake rust-lldb warn about unsupported versions of LLDB
Michael Woerister [Mon, 4 Jul 2016 16:38:33 +0000 (12:38 -0400)]
Make rust-lldb warn about unsupported versions of LLDB

8 years agoAuto merge of #34639 - dzamlo:master, r=michaelwoerister
bors [Mon, 4 Jul 2016 22:09:36 +0000 (15:09 -0700)]
Auto merge of #34639 - dzamlo:master, r=michaelwoerister

Use lazy iterator in vec/slice gdb pretty printers

8 years agoUse lazy iterator in vec/slice gdb pretty printers
Loïc Damien [Mon, 4 Jul 2016 00:43:33 +0000 (02:43 +0200)]
Use lazy iterator in vec/slice gdb pretty printers

8 years agoRevert "Revert "Remove the return_address intrinsic.""
Eduard Burtescu [Mon, 4 Jul 2016 18:06:50 +0000 (21:06 +0300)]
Revert "Revert "Remove the return_address intrinsic.""

This reverts commit f698cd3a3663a459e459f530f76adef3eeb815fd.

8 years agoupdate compiler-rt with iOS linking warnings workaround
Tim Neumann [Mon, 4 Jul 2016 17:11:03 +0000 (19:11 +0200)]
update compiler-rt with iOS linking warnings workaround

closes #34617.

8 years agoAuto merge of #34602 - Xmasreturns:patch-4, r=steveklabnik
bors [Mon, 4 Jul 2016 16:57:02 +0000 (09:57 -0700)]
Auto merge of #34602 - Xmasreturns:patch-4, r=steveklabnik

Update glossary.md

Added a brief description of Combinators

8 years agoAvoid redundant downloads when bootstrapping
Ximin Luo [Mon, 4 Jul 2016 14:37:46 +0000 (16:37 +0200)]
Avoid redundant downloads when bootstrapping

If the local file is available, then verify it against the hash we just
downloaded, and if it matches then we don't need to download it again.

8 years agoAuto merge of #34590 - pwlandoll:master, r=apasel422
bors [Mon, 4 Jul 2016 12:03:04 +0000 (05:03 -0700)]
Auto merge of #34590 - pwlandoll:master, r=apasel422

Issue #34076: Removing reference to removed path.prefix() function

In the documentation for `std::path::Path`, there is a [reference](https://doc.rust-lang.org/std/path/struct.Path.html#method.is_absolute) to the `path.prefix()` function which has since been removed. The offending reference is now also removed.

First pull request, feedback welcome!

r? @steveklabnik

8 years agoAuto merge of #34638 - zackmdavis:if_let_over_none_empty_block_arm, r=jseyfried
bors [Mon, 4 Jul 2016 09:18:46 +0000 (02:18 -0700)]
Auto merge of #34638 - zackmdavis:if_let_over_none_empty_block_arm, r=jseyfried

prefer `if let` to match with `None => {}` arm in some places

This is a spiritual succesor to #34268 / 8531d581, in which we replaced a
number of matches of None to the unit value with `if let` conditionals
where it was judged that this made for clearer/simpler code (as would be
recommended by Manishearth/rust-clippy's `single_match` lint). The same
rationale applies to matches of None to the empty block.

----

r? @jseyfried

8 years agoRenamed phase to compilation_done
Will Crichton [Mon, 4 Jul 2016 06:47:53 +0000 (02:47 -0400)]
Renamed phase to compilation_done

8 years agoAdded new compilation phase and test
Will Crichton [Fri, 1 Jul 2016 08:54:37 +0000 (04:54 -0400)]
Added new compilation phase and test

8 years agoMoved LLVM cleanup to after `after_llvm` phase
Will Crichton [Thu, 30 Jun 2016 20:32:13 +0000 (16:32 -0400)]
Moved LLVM cleanup to after `after_llvm` phase

8 years agoAuto merge of #34550 - cynicaldevil:master, r=Manishearth
bors [Mon, 4 Jul 2016 06:17:50 +0000 (23:17 -0700)]
Auto merge of #34550 - cynicaldevil:master, r=Manishearth

Added a pretty printer for &mut slices

Fixes #30232
I have added a test which checks for correctness in gdb, but I need some help to do the same for lldb.

r? @Manishearth

8 years agoAuto merge of #34480 - jseyfried:remove_entry_points, r=nrc
bors [Mon, 4 Jul 2016 01:17:36 +0000 (18:17 -0700)]
Auto merge of #34480 - jseyfried:remove_entry_points, r=nrc

Remove redundant `CompileController` entry points

Remove the `after_expand` and `after_write_deps` `CompileController` entry points.

The only things that separate these entry points from `after_hir_lowering` are dep-info generation and HIR map construction, neither of which is computationally intensive or has the potential to error.

r? @nrc

8 years agoprefer `if let` to match with `None => {}` arm in some places
Zack M. Davis [Sun, 3 Jul 2016 21:38:37 +0000 (14:38 -0700)]
prefer `if let` to match with `None => {}` arm in some places

This is a spiritual succesor to #34268/8531d581, in which we replaced a
number of matches of None to the unit value with `if let` conditionals
where it was judged that this made for clearer/simpler code (as would be
recommended by Manishearth/rust-clippy's `single_match` lint). The same
rationale applies to matches of None to the empty block.

8 years agoAuto merge of #34530 - alexcrichton:stabilize-1.11, r=aturon
bors [Sun, 3 Jul 2016 21:33:55 +0000 (14:33 -0700)]
Auto merge of #34530 - alexcrichton:stabilize-1.11, r=aturon

std: Stabilize APIs for the 1.11.0 release

Although the set of APIs being stabilized this release is relatively small, the
trains keep going! Listed below are the APIs in the standard library which have
either transitioned from unstable to stable or those from unstable to
deprecated.

Stable

* `BTreeMap::{append, split_off}`
* `BTreeSet::{append, split_off}`
* `Cell::get_mut`
* `RefCell::get_mut`
* `BinaryHeap::append`
* `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past
  libstd stabilizations
* `Iterator::sum`
* `Iterator::product`

Deprecated

* `{f32, f64}::next_after`
* `{f32, f64}::integer_decode`
* `{f32, f64}::ldexp`
* `{f32, f64}::frexp`
* `num::One`
* `num::Zero`

Added APIs (all unstable)

* `iter::Sum`
* `iter::Product`
* `iter::Step` - a few methods were added to accomodate deprecation of One/Zero

Removed APIs

* `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is
  unstable

Closes #27739
Closes #27752
Closes #32526
Closes #33444
Closes #34152
cc #34529 (new tracking issue)

8 years agodoc: fix and shorten comment
Tshepang Lekhonkhobe [Sun, 3 Jul 2016 20:03:45 +0000 (22:03 +0200)]
doc: fix and shorten comment

8 years agoAdded a pretty printer for &mut slices
Nikhil Shagrithaya [Wed, 29 Jun 2016 14:34:06 +0000 (20:04 +0530)]
Added a pretty printer for &mut slices

8 years agostd: Stabilize APIs for the 1.11.0 release
Alex Crichton [Tue, 28 Jun 2016 15:56:56 +0000 (08:56 -0700)]
std: Stabilize APIs for the 1.11.0 release

Although the set of APIs being stabilized this release is relatively small, the
trains keep going! Listed below are the APIs in the standard library which have
either transitioned from unstable to stable or those from unstable to
deprecated.

Stable

* `BTreeMap::{append, split_off}`
* `BTreeSet::{append, split_off}`
* `Cell::get_mut`
* `RefCell::get_mut`
* `BinaryHeap::append`
* `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past
  libstd stabilizations
* `Iterator::sum`
* `Iterator::product`

Deprecated

* `{f32, f64}::next_after`
* `{f32, f64}::integer_decode`
* `{f32, f64}::ldexp`
* `{f32, f64}::frexp`
* `num::One`
* `num::Zero`

Added APIs (all unstable)

* `iter::Sum`
* `iter::Product`
* `iter::Step` - a few methods were added to accomodate deprecation of One/Zero

Removed APIs

* `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is
  unstable

Closes #27739
Closes #27752
Closes #32526
Closes #33444
Closes #34152
cc #34529 (new tracking issue)

8 years agoAuto merge of #34540 - jupp0r:patch-1, r=steveklabnik
bors [Sun, 3 Jul 2016 17:39:53 +0000 (10:39 -0700)]
Auto merge of #34540 - jupp0r:patch-1, r=steveklabnik

Improve code example for try!

This change improves the code example for try!,
avoiding to use try! in the example code that shows
what code constructs try! can replace.

8 years agoAuto merge of #34532 - jonmarkprice:master, r=steveklabnik
bors [Sun, 3 Jul 2016 14:47:36 +0000 (07:47 -0700)]
Auto merge of #34532 - jonmarkprice:master, r=steveklabnik

Book: Small grammatical and stylistic edits to book

I've been reading [the book](https://doc.rust-lang.org/book/) and noticed a few small grammatical and stylistic issues which I've rolled into this pull request.

I'm not sure if I should do so many small, unrelated edits in a single pull request but it seems like a lot of overhead for each small edit. Maybe one commit per edit but one pull request per file/section? Feedback is very much appreciated as this is my first pull request ever!

r? @steveklabnik rollup

8 years agoAuto merge of #34504 - retep998:patch-1, r=alexcrichton
bors [Sun, 3 Jul 2016 12:02:51 +0000 (05:02 -0700)]
Auto merge of #34504 - retep998:patch-1, r=alexcrichton

Instructions on how to build Rust with rustbuild

This is a much simpler option for those on Windows who use msvc.

8 years agoAuto merge of #34614 - cynicaldevil:build-time, r=alexcrichton
bors [Sun, 3 Jul 2016 09:17:58 +0000 (02:17 -0700)]
Auto merge of #34614 - cynicaldevil:build-time, r=alexcrichton

Build: Shows total time taken to build the compiler

Fixes #34600
Prints the total time taken to build rustc by executing `src/bootstrap/bootstrap.py`; also includes time taken to download `stage0` compiler and deps.

r? @alexcrichton

8 years agoFix a few typos in the doc
Sylvestre Ledru [Sun, 3 Jul 2016 08:00:19 +0000 (10:00 +0200)]
Fix a few typos in the doc

8 years agoFix a few typos in the code
Sylvestre Ledru [Sun, 3 Jul 2016 08:00:52 +0000 (10:00 +0200)]
Fix a few typos in the code

8 years agoFix spacing in for loop enumeration example
Jared Manning [Sun, 3 Jul 2016 08:01:18 +0000 (03:01 -0500)]
Fix spacing in for loop enumeration example

Add a space between the comma and j in (i, j) to make it look nice.

8 years agoAuto merge of #34597 - CensoredUsername:bootstrap-fix, r=alexcrichton
bors [Sun, 3 Jul 2016 06:33:54 +0000 (23:33 -0700)]
Auto merge of #34597 - CensoredUsername:bootstrap-fix, r=alexcrichton

Support more python 2.7 versions in bootstrap.py

It seems python broke compatability between 2.7.9  and 2.7.12 as on the former a WindowsError was raised while on the latter a subprocess.CalledProcessError was raised while testing for the existence of uname.

As a WindowsError being thrown obviously indicates we're running on windows, this should probably be accepted too.

8 years agoAuto merge of #34591 - brson:relnotes, r=alexcrichton
bors [Sun, 3 Jul 2016 03:09:13 +0000 (20:09 -0700)]
Auto merge of #34591 - brson:relnotes, r=alexcrichton

Release notes for 1.10.0

[Rundered](https://github.com/brson/rust/tree/relnotes/RELEASES.md).

To me highlights look like panic hooks, unix sockets, cargo, and usability improvements.

f? @rust-lang/core @rust-lang/lang @rust-lang/compiler @rust-lang/tools @bstrie

8 years agoClarifies the meaning of the external mutability.
Kaivo Anastetiks [Sun, 3 Jul 2016 00:39:21 +0000 (20:39 -0400)]
Clarifies the meaning of the external mutability.

8 years agoAuto merge of #34580 - eddyb:two-steps-forward-one-step-backwards, r=nagisa
bors [Sun, 3 Jul 2016 00:25:05 +0000 (17:25 -0700)]
Auto merge of #34580 - eddyb:two-steps-forward-one-step-backwards, r=nagisa

Revert "Remove the return_address intrinsic."

This reverts commit b30134dbc3c29cf62a4518090e1389ff26918c19.

Servo might want this merged if they don't merge servo/servo#11872 soon.

cc @pnkfelix @jdm

8 years agoFix broken markdown link in README.
Corey Farwell [Sun, 3 Jul 2016 00:15:28 +0000 (20:15 -0400)]
Fix broken markdown link in README.

8 years agoAuto merge of #34605 - arielb1:bug-in-the-jungle, r=eddyb
bors [Sat, 2 Jul 2016 19:25:29 +0000 (12:25 -0700)]
Auto merge of #34605 - arielb1:bug-in-the-jungle, r=eddyb

fail obligations that depend on erroring obligations

Fix a bug where an obligation that depend on an erroring obligation would
be regarded as successful, leading to global cache pollution and random
lossage.

Fixes #33723.
Fixes #34503.

r? @eddyb since @nikomatsakis is on vacation

beta-nominating because of the massive lossage potential (e.g. with `Copy` this could lead to random memory leaks), plus this is a regression.

8 years agoAuto merge of #34443 - eddyb:sized-matters, r=arielb1
bors [Sat, 2 Jul 2016 16:36:52 +0000 (09:36 -0700)]
Auto merge of #34443 - eddyb:sized-matters, r=arielb1

Disallow constants and statics from having unsized types.

This is a `[breaking-change]` which fixes #34390 by banning unsized `const` and `static`, e.g.:
```rust
const A: [i32] = *(&[0, 1, 2] as &[i32]);
static B: str = *"foo";
```

This was not intentionally allowed, and other than for `static` since some versions ago, it ICE'd.
If you've been taking advantage of this with `static`, you should be able to just use references instead.

8 years agoupdate cargo doc link
Hariharan R [Sat, 2 Jul 2016 15:06:41 +0000 (20:36 +0530)]
update cargo doc link

updated proper link of cargo doc that contains details about list of options available in semantic versioninig for the dependencies section in Cargo.toml

8 years agoBuild: Shows total time taken to build the compiler
Nikhil Shagrithaya [Sat, 2 Jul 2016 14:19:27 +0000 (19:49 +0530)]
Build: Shows total time taken to build the compiler

8 years agoAuto merge of #34539 - arielb1:metadata-hash, r=alexcrichton
bors [Sat, 2 Jul 2016 13:50:59 +0000 (06:50 -0700)]
Auto merge of #34539 - arielb1:metadata-hash, r=alexcrichton

Make the metadata lock more robust

Fixes #33778 and friends.

I also needed to add a metadata encoding version to rlibs, as they did not have it before. To keep it backwards-compatible, I added 4 zeroes to the start of the metadata, which are treated as an empty length field by older rustcs.

r? @alexcrichton

8 years agofix test fallout
Ariel Ben-Yehuda [Sat, 2 Jul 2016 11:50:36 +0000 (14:50 +0300)]
fix test fallout

8 years agoadd a encoding version to the actual metadata
Ariel Ben-Yehuda [Sat, 2 Jul 2016 11:41:31 +0000 (14:41 +0300)]
add a encoding version to the actual metadata

previously, only .so files included a metadata encoding version, *outside*
of the zlib compressed area. This adds an encoding version inside the metadata
itself, in both .so and .rlib files.

Fixes #33778.

8 years agomake the metadata lock more robust and bump the metadata encoding version
Ariel Ben-Yehuda [Fri, 1 Jul 2016 21:36:33 +0000 (00:36 +0300)]
make the metadata lock more robust and bump the metadata encoding version

check the metadata lock when loading rather than afterwards

Fixes #33733
Fixes #33015

8 years agoInstructions on how to build Rust with rustbuild
Peter Atashian [Mon, 27 Jun 2016 17:51:27 +0000 (13:51 -0400)]
Instructions on how to build Rust with rustbuild

This is a much simpler option for those on Windows who use msvc.

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoAuto merge of #34611 - Manishearth:rollup, r=Manishearth
bors [Sat, 2 Jul 2016 10:18:59 +0000 (03:18 -0700)]
Auto merge of #34611 - Manishearth:rollup, r=Manishearth

Rollup of 7 pull requests

- Successful merges: #34531, #34545, #34551, #34566, #34567, #34574, #34583
- Failed merges:

8 years agoRollup merge of #34583 - steveklabnik:remove-unneeded-deprecated, r=alexcrichton
Manish Goregaokar [Sat, 2 Jul 2016 10:16:50 +0000 (15:46 +0530)]
Rollup merge of #34583 - steveklabnik:remove-unneeded-deprecated, r=alexcrichton

remove unneeded allow flag

There isn't anything deprecated being used in this function.

This built fine for me locally, but just to be sure, should check Travis.

8 years agoRollup merge of #34574 - jviide:patch-1, r=alexcrichton
Manish Goregaokar [Sat, 2 Jul 2016 10:16:50 +0000 (15:46 +0530)]
Rollup merge of #34574 - jviide:patch-1, r=alexcrichton

Fix README.md command consistency

The `./configure` command in README.md's Building Documentation section was missing the `$` prefix. Add the prefix to be consistent with other commands in the document.

8 years agoRollup merge of #34567 - alexcrichton:rustbuild-android, r=brson
Manish Goregaokar [Sat, 2 Jul 2016 10:16:50 +0000 (15:46 +0530)]
Rollup merge of #34567 - alexcrichton:rustbuild-android, r=brson

rustbuild: Implement testing for Android

This commit enhances the rustbuild support for testing Android to the same level
of parity as the makefiles. This involved:

* A new step to copy the standard library and other shared objects to the
  emulator. This is injected as a dependency of all test suites for Android.
* Appropriate arguments are now passed through to compiletest to ensure that it
  can run tests.
* When testing the standard library the test executables are probed for and
  shipped to the emulator to run for each test.
* Fixing compilation of compiler-rt a bit

All support added here is modeled after what's found in the makefiles, just
translating one strategy to another. As an added bonus this commit adds support
for the "check" step to automatically run tests for all targets, and the
"check-target" step now runs all tests for a particular target, automatically
filtering the tests if the target is detected as a cross-compile.

Note that we don't (and probably won't) have a bot which is actually going to
exercise any of this just yet, but all tests have passed locally for me at
least.

8 years agoRollup merge of #34566 - ollie27:linkchecker_invalid_urls, r=alexcrichton
Manish Goregaokar [Sat, 2 Jul 2016 10:16:49 +0000 (15:46 +0530)]
Rollup merge of #34566 - ollie27:linkchecker_invalid_urls, r=alexcrichton

Reject invalid urls in linkchecker

For example root-relative links will now be rejected.

Also remove some exceptions which have since been fixed and fix a typo in
the broken redirect handling.

8 years agoRollup merge of #34551 - GuillaumeGomez:runtest_improvement, r=alexcrichton
Manish Goregaokar [Sat, 2 Jul 2016 10:16:49 +0000 (15:46 +0530)]
Rollup merge of #34551 - GuillaumeGomez:runtest_improvement, r=alexcrichton

Improve runtest output

8 years agoRollup merge of #34545 - sanxiyn:rustbuild, r=alexcrichton
Manish Goregaokar [Sat, 2 Jul 2016 10:16:49 +0000 (15:46 +0530)]
Rollup merge of #34545 - sanxiyn:rustbuild, r=alexcrichton

Add rustc-stageN targets to rustbuild

8 years agoRollup merge of #34531 - GuillaumeGomez:libsyntax_err_codes, r=jonathandturner
Manish Goregaokar [Sat, 2 Jul 2016 10:16:49 +0000 (15:46 +0530)]
Rollup merge of #34531 - GuillaumeGomez:libsyntax_err_codes, r=jonathandturner

Add error codes in libsyntax

r? @jonathandturner

Fixes #34526

8 years agoAuto merge of #34515 - alexcrichton:more-checks, r=brson
bors [Sat, 2 Jul 2016 07:29:06 +0000 (00:29 -0700)]
Auto merge of #34515 - alexcrichton:more-checks, r=brson

configure: Check for valid Python on MinGW as well

The LLVM build system is somewhat picky about which Python is used to build it
as it's known to be incompatible with the default `python2` package that ships
with MinGW. This was previously detected for MSVC builds but the logic was left
out for MinGW by accident (now that we've switched to cmake builds for LLVM
everywhere).

This corrects the `./configure` check and also updates the `README.md`
accordingly. Additionally, a number of instructions were updated to work with
the most recent copy of MSYS2.

Closes https://github.com/rust-lang/rust/issues/28260
Closes #34489

8 years agoAuto merge of #34492 - retep998:please-be-robust-already, r=alexcrichton
bors [Sat, 2 Jul 2016 04:39:16 +0000 (21:39 -0700)]
Auto merge of #34492 - retep998:please-be-robust-already, r=alexcrichton

Make MSVC detection ludicrously robust

Resurrection of https://github.com/rust-lang/rust/pull/31158

r? @alexcrichton

8 years agoAuto merge of #34067 - tbu-:pr_lookup_host_ignore_other_addresses, r=alexcrichton
bors [Sat, 2 Jul 2016 01:43:28 +0000 (18:43 -0700)]
Auto merge of #34067 - tbu-:pr_lookup_host_ignore_other_addresses, r=alexcrichton

Ignore unknown address types when looking up hosts

Previously, any function using a `ToSocketAddrs` input would fail if
passed a hostname that resolves to an address type different from the
ones recognized by Rust.

This also changes the `LookupHost` iterator to only include the known
address types, as a result, it doesn't have to return `Result`s any
more, which are likely misinterpreted as failed name lookups.

8 years agofail obligations that depend on erroring obligations
Ariel Ben-Yehuda [Fri, 1 Jul 2016 23:11:00 +0000 (02:11 +0300)]
fail obligations that depend on erroring obligations

Fix a bug where an obligation that depend on an erroring obligation would
be regarded as successful, leading to global cache pollution and random
lossage.

Fixes #33723.
Fixes #34503.

8 years agoAuto merge of #33940 - seanmonstar:siphash-1-3, r=alexcrichton
bors [Fri, 1 Jul 2016 22:53:07 +0000 (15:53 -0700)]
Auto merge of #33940 - seanmonstar:siphash-1-3, r=alexcrichton

hashmap: use siphash-1-3 as default hasher

Also exposes `SipHash13` and `SipHash24` in `core::hash::sip`, for those that want to differentiate.

For motivation, see this quote from the original issue:

> we proposed SipHash-2-4 as a (strong) PRF/MAC, and so far no attack whatsoever has been found,
although many competent people tried to break it. However, fewer rounds may be sufficient and I would
be very surprised if SipHash-1-3 introduced weaknesses for hash tables.

This keeps a type alias of `SipHasher` to `SipHash24`, and since the internal default hasher of HashMap is specified as "not specified", changing it should not be a breaking change.

Closes #29754

8 years agofix RUST_LOG, hopefully for real this time
Ariel Ben-Yehuda [Fri, 1 Jul 2016 20:51:48 +0000 (23:51 +0300)]
fix RUST_LOG, hopefully for real this time

8 years agoRelease notes for 1.10.0
Brian Anderson [Thu, 30 Jun 2016 22:47:32 +0000 (15:47 -0700)]
Release notes for 1.10.0

8 years agoUpdate glossary.md
Jonathan L [Fri, 1 Jul 2016 20:16:27 +0000 (13:16 -0700)]
Update glossary.md

Added a brief description of Combinators

8 years agoAuto merge of #34578 - alexcrichton:lets-just-keep-trying-to-fix-the-nightlies, r...
bors [Fri, 1 Jul 2016 19:51:59 +0000 (12:51 -0700)]
Auto merge of #34578 - alexcrichton:lets-just-keep-trying-to-fix-the-nightlies, r=brson

mk: Request -march=i686 on i686 Linux

Apparently the gcc on our dist bot is so old and/or obscure that the default
`-m32` switch doesn't think it can generate i686 code (or something like that).
The compiler-rt build system probes for the `__i686__` define in GCC to compile
for an i686 (vs i386) target, so this was failing on the bots.

This tweaks instead to pass `-march=i686` on i686-unknown-linux-gnu to C code to
ensure that we're compiling for i686 instead of i386. This should hopefully not
actually have an impact other than maybe doing some random optimization it
wasn't able to do so before. In theory this isn't making the target less
compatible as all Rust code is already compiled for i686.

Hopefully closes #34572

8 years agoOlder versions of python 2.7 can raise a WindowsError instead of a subprocess.CalledP...
CensoredUsername [Fri, 1 Jul 2016 16:22:24 +0000 (18:22 +0200)]
Older versions of python 2.7 can raise a WindowsError instead of a subprocess.CalledProcessError when `uname` does not exist

8 years agoAuto merge of #34563 - alexcrichton:robust-mk, r=brson
bors [Fri, 1 Jul 2016 06:30:51 +0000 (23:30 -0700)]
Auto merge of #34563 - alexcrichton:robust-mk, r=brson

mk: Don't consider LLVM done until it's done

Currently if an LLVM build is interrupted *after* it creates the llvm-config
binary but before it's done it puts us in an inconsistent state where we think
LLVM is compiled but it's not actually. This tweaks our logic to only consider
LLVM done building once it's actually done building.

This should hopefully alleviate problems on the bots where if we interrupt at
the wrong time it doesn't corrupt the build directory.

8 years agoAuto merge of #34577 - alexcrichton:clean-more-yet-again, r=brson
bors [Fri, 1 Jul 2016 03:07:57 +0000 (20:07 -0700)]
Auto merge of #34577 - alexcrichton:clean-more-yet-again, r=brson

rustbuild: Clean out tmp directory on `make clean`

Right now we generate error index information into this directory, but it's
never cleaned out. This means that if a build *bounces* because of something in
this directory it'll continue to cause all future builds to fail because the
relevant files are never removed.

8 years agoAdd the `after_expand` entry point between import resolution and the rest of name...
Jeffrey Seyfried [Tue, 28 Jun 2016 01:45:54 +0000 (01:45 +0000)]
Add the `after_expand` entry point between import resolution and the rest of name resolution

8 years agoIssue #34076: Removing reference to removed path.prefix() function
Peter Landoll [Thu, 30 Jun 2016 22:34:12 +0000 (18:34 -0400)]
Issue #34076: Removing reference to removed path.prefix() function

8 years agorustdoc: Remove paths from primitive page <title> tags
Oliver Middleton [Thu, 30 Jun 2016 22:16:44 +0000 (23:16 +0100)]
rustdoc: Remove paths from primitive page <title> tags

Currently primitive pages have a title like "std::u8 - Rust" this changes
it to "u8 - Rust" as "std::u8" is the name of a module not a primitive
type.

8 years agorustbuild: Clean out tmp directory on `make clean`
Alex Crichton [Thu, 30 Jun 2016 16:01:27 +0000 (09:01 -0700)]
rustbuild: Clean out tmp directory on `make clean`

Right now we generate error index information into this directory, but it's
never cleaned out. This means that if a build *bounces* because of something in
this directory it'll continue to cause all future builds to fail because the
relevant files are never removed.

8 years agoremove unneeded allow flag
Steve Klabnik [Thu, 30 Jun 2016 21:06:52 +0000 (17:06 -0400)]
remove unneeded allow flag

There isn't anything deprecated being used in this function.