]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoRollup merge of #27525 - Gankro:nomvar, r=aturon
Manish Goregaokar [Wed, 5 Aug 2015 08:15:38 +0000 (13:45 +0530)]
Rollup merge of #27525 - Gankro:nomvar, r=aturon

I thought this was actually a huge error and I'd have to rewrite a bunch but
it looks like everything else was correct.

Closes #27457

r? @aturon

8 years agoRollup merge of #27521 - steveklabnik:doc_std_mem_forget, r=gankro
Manish Goregaokar [Wed, 5 Aug 2015 08:15:38 +0000 (13:45 +0530)]
Rollup merge of #27521 - steveklabnik:doc_std_mem_forget, r=gankro

We were burying the reason to use this function below a bunch of caveats about
its usage. That's backwards. Why a function should be used belongs at the top of
the docs, not the bottom.

Also, add some extra links to related functions mentioned in the body.

/cc @abhijeetbhagat who  pointed this out on IRC

8 years agoRollup merge of #27519 - JanLikar:rearrange-patterns, r=steveklabnik
Manish Goregaokar [Wed, 5 Aug 2015 08:15:38 +0000 (13:45 +0530)]
Rollup merge of #27519 - JanLikar:rearrange-patterns, r=steveklabnik

  - Move "Destructuring" after "Multiple patterns", because some of
    later sections include examples which make use of destructuring.

  - Move "Ignoring bindings" after "Destructoring", because the former
    features Result<T,E> destructuring. Some of examples in later
    sections use "_" and "..", so "Ignoring bindings" must be
    positioned before them.

  - Fix #27347 by moving "Ref and mut ref" before "Ranges" and
    "Bindings", because "Bindings" section includes a somewhat
    difficult example, which also makes use of "ref" and "mut ref"
    operators.

8 years agoAuto merge of #27520 - brson:bump, r=alexcrichton
bors [Wed, 5 Aug 2015 05:37:47 +0000 (05:37 +0000)]
Auto merge of #27520 - brson:bump, r=alexcrichton

This probably wants to go in tomorrow. If it lands today then there will be one day where nightly is on 1.4 and stable is still on 1.1. Not a big deal either way.

8 years agoAuto merge of #27439 - vberger:more_perseverant_resolve, r=nrc
bors [Wed, 5 Aug 2015 03:52:39 +0000 (03:52 +0000)]
Auto merge of #27439 - vberger:more_perseverant_resolve, r=nrc

(This is a second try at #26242. This time I think things should be ok.)

The current algorithm handling import resolutions works sequentially, handling imports in the order they appear in the source file, and blocking/bailing on the first one generating an error/being unresolved.

This can lead to situations where the order of the `use` statements can make the difference between "this code compiles" and "this code fails on an unresolved import" (see #18083 for example). This is especially true when considering glob imports.

This PR changes the behaviour of the algorithm to instead try to resolve all imports in a module. If one fails, it is recorded and the next one is tried (instead of directly giving up). Also, all errors generated are stored (and not reported directly).

The main loop of the algorithms guaranties that the algorithm will always finish: if a round of resolution does not resolve anything new, we are stuck and give up. At this point, the new version of the algorithm will display all errors generated by the last round of resolve. This way we are sure to not silence relevant errors or help messages, but also to not give up too early.

**As a consequence, the import resolution becomes independent of the order in which the `use` statements are written in the source files.** I personally don't see any situations where this could be a problem, but this might need some thought.

I passed `rpass` and `cfail` tests on my computer, and now am compiling a full stage2 compiler to ensure the crates reporting errors in my previous attempts still build correctly. I guess once I have checked it, this will need a crater run?

Fixes #18083.

r? @alexcrichton , cc @nrc @brson

8 years agoAuto merge of #27393 - alexcrichton:no-std-changes, r=brson
bors [Wed, 5 Aug 2015 02:00:46 +0000 (02:00 +0000)]
Auto merge of #27393 - alexcrichton:no-std-changes, r=brson

This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of
the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The
`#![no_std]` attribute now injects `extern crate core` at the top of the crate
as well as the libcore prelude into all modules (in the same manner as the
standard library's prelude). The `#![no_core]` attribute disables both std and
core injection.

[rfc]: https://github.com/rust-lang/rfcs/pull/1184

Closes #27394

8 years agoAuto merge of #27351 - pnkfelix:dst-size-and-align-issue-27023, r=nikomatsakis
bors [Tue, 4 Aug 2015 22:55:31 +0000 (22:55 +0000)]
Auto merge of #27351 - pnkfelix:dst-size-and-align-issue-27023, r=nikomatsakis

Change the behavior of the glue code emitted for `size_and_align_of_dst`.

This thus changes the behavior of `std::mem::size_of_val` and `std::mem::align_of_val`.  It tries to move us towards a world where the following property holds:

Given type `T` implements `Trait` and a value `b: Box<T>`, where `std::mem::size_of::<T>()` returns `k`, then:

 * `std::mem::size_of_val(b)` returns `k`
 * `std::mem::size_of_val(b as Box<Trait>)` returns `k`

Note that one might legitimately question whether the above property *should* hold.  The property certainly does not hold today, as illustrated by #27023.

(A follow-up task is to make various tests that check that the above property holds for a wide variety of types ... I chose not to invest effort in writing such a test before we actually determine that the above property is desirable.)

nmatsakis and pnkfelix agree that this PR does not require an RFC.  cc @rust-lang/lang (since others may disagree).

(It also *might* break code, though it is hard for me to imagine that it could break code that wasn't already going to assert-fail when run in e.g. debug builds...)

Fix issue #27023

Also, this (or something like it) is a prerequisite for *fixing`make check` on `--enable-optimize --enable-debug` builds*

8 years agoFix variance ordering
Alexis Beingessner [Tue, 4 Aug 2015 22:09:47 +0000 (15:09 -0700)]
Fix variance ordering

I thought this was actually a huge error and I'd have to rewrite a bunch but
it looks like everything else was correct.

Closes #27457

8 years agoAuto merge of #26470 - l0kod:process-session-leader, r=alexcrichton
bors [Tue, 4 Aug 2015 21:15:54 +0000 (21:15 +0000)]
Auto merge of #26470 - l0kod:process-session-leader, r=alexcrichton

Add a new method `CommandExt::session_leader(&mut self, on: bool)` to create a new session (cf. `setsid(2)`) for the child process. This means that the child is the leader of a new process group. The parent process remains the child reaper of the new process.

This is not enough to create a daemon process. The *init* process should be the child reaper of a daemon. This can be achieved if the parent process exit. Moreover, a daemon should not have a controlling terminal. To acheive this, a session leader (the child) must spawn another process (the daemon) in the same session.

cc rust-lang/rfcs#941
cc #17176

8 years agosyntax: Don't assume `std` exists for tests
Alex Crichton [Thu, 30 Jul 2015 15:53:22 +0000 (08:53 -0700)]
syntax: Don't assume `std` exists for tests

This commit removes the injection of `std::env::args()` from `--test` expanded
code, relying on the test runner itself to call this funciton. This is more
hygienic because we can't assume that `std` exists at the top layer all the
time, and it meaks the injected test module entirely self contained.

8 years agoImprove docs for mem::forget()
Steve Klabnik [Tue, 4 Aug 2015 19:57:54 +0000 (15:57 -0400)]
Improve docs for mem::forget()

We were burying the reason to use this function below a bunch of caveats about
its usage. That's backwards. Why a function should be used belongs at the top of
the docs, not the bottom.

Also, add some extra links to related functions mentioned in the body.

8 years agoBump to 1.4
Brian Anderson [Tue, 4 Aug 2015 19:47:00 +0000 (12:47 -0700)]
Bump to 1.4

8 years agoAuto merge of #27515 - Eljay:rustdoc-search, r=alexcrichton
bors [Tue, 4 Aug 2015 19:37:50 +0000 (19:37 +0000)]
Auto merge of #27515 - Eljay:rustdoc-search, r=alexcrichton

Some small changes to (hopefully) make search more useful:

* Less strict filtering, e.g:
    * searching for "fn: foo" now matches methods and trait functions as well.
    * searching for types also matches primitive types.
    * searching for const will also match associated constants (but there aren't any in std yet)
* Changed searching for types to use the actual keyword "type" instead of the strange C-like "typedef".
* Added const and macro to allowed keywords.

8 years agoRearrange sections in "Patterns"
Jan Likar [Tue, 4 Aug 2015 18:22:42 +0000 (20:22 +0200)]
Rearrange sections in "Patterns"

  - Move "Destructuring" after "Multiple patterns", because some of
    later sections include examples which make use of destructuring.

  - Move "Ignoring bindings" after "Destructoring", because the former
    features Result<T,E> destructuring. Some of examples in later
    sections use "_" and "..", so "Ignoring bindings" must be
    positioned before them.

  - Fix #27347 by moving "Ref and mut ref" before "Ranges" and
    "Bindings", because "Bindings" section includes a somewhat
    difficult example, which also makes use of "ref" and "mut ref"
    operators.

8 years agoAuto merge of #27508 - friedm:remove_integer_suffixes, r=alexcrichton
bors [Tue, 4 Aug 2015 16:31:16 +0000 (16:31 +0000)]
Auto merge of #27508 - friedm:remove_integer_suffixes, r=alexcrichton

For #27501

r? @steveklabnik

8 years agoImprove rustdoc search type filtering.
Eljay [Tue, 4 Aug 2015 15:40:23 +0000 (16:40 +0100)]
Improve rustdoc search type filtering.

8 years agoAuto merge of #27512 - Manishearth:rollup, r=Manishearth
bors [Tue, 4 Aug 2015 12:31:32 +0000 (12:31 +0000)]
Auto merge of #27512 - Manishearth:rollup, r=Manishearth

- Successful merges: #27397, #27398, #27460, #27470, #27491, #27498, #27502
- Failed merges:

8 years agoRollup merge of #27502 - rust-lang:grammer, r=brson
Manish Goregaokar [Tue, 4 Aug 2015 12:30:53 +0000 (18:00 +0530)]
Rollup merge of #27502 - rust-lang:grammer, r=brson

this grammar isn't correct

this should also get backported to beta

/cc @brson

8 years agoRollup merge of #27498 - nagisa:eeeeeeh, r=Gankro
Manish Goregaokar [Tue, 4 Aug 2015 12:30:53 +0000 (18:00 +0530)]
Rollup merge of #27498 - nagisa:eeeeeeh, r=Gankro

r? @Gankro

8 years agoRollup merge of #27491 - GuillaumeGomez:patch-4, r=Manishearth
Manish Goregaokar [Tue, 4 Aug 2015 12:30:53 +0000 (18:00 +0530)]
Rollup merge of #27491 - GuillaumeGomez:patch-4, r=Manishearth

8 years agoRollup merge of #27470 - cactorium:e0074toe0077, r=alexcrichton
Manish Goregaokar [Tue, 4 Aug 2015 12:30:52 +0000 (18:00 +0530)]
Rollup merge of #27470 - cactorium:e0074toe0077, r=alexcrichton

For https://github.com/rust-lang/rust/issues/24407

8 years agoRollup merge of #27460 - JanLikar:master, r=steveklabnik
Manish Goregaokar [Tue, 4 Aug 2015 12:30:52 +0000 (18:00 +0530)]
Rollup merge of #27460 - JanLikar:master, r=steveklabnik

  - Fix #26968 by noting the difference between ".." and "_" more explicitly

  - Change one of the examples to show the match-all behaviour of ".."

  - Merge "Ignoring variants" and "Ignoring bindings" sections into the latter

r? @steveklabnik

8 years agoRollup merge of #27398 - tshepang:patch-5, r=steveklabnik
Manish Goregaokar [Tue, 4 Aug 2015 12:30:52 +0000 (18:00 +0530)]
Rollup merge of #27398 - tshepang:patch-5, r=steveklabnik

8 years agoRollup merge of #27397 - Dangthrimble:master, r=steveklabnik
Manish Goregaokar [Tue, 4 Aug 2015 12:30:52 +0000 (18:00 +0530)]
Rollup merge of #27397 - Dangthrimble:master, r=steveklabnik

Clarifications for those new to Rust and Cargo:
* It's a good idea to get rid of the original `main.exe` in project root
* Slight clarification on the use of `main.rs` vs `lib.rs`
* Clarify that the TOML file needs to be in project root

8 years agoAuto merge of #27507 - eefriedman:link-section, r=alexcrichton
bors [Tue, 4 Aug 2015 09:02:43 +0000 (09:02 +0000)]
Auto merge of #27507 - eefriedman:link-section, r=alexcrichton

Fixes #27467.

8 years agoAuto merge of #27444 - Gankro:nomicon, r=brson
bors [Tue, 4 Aug 2015 06:27:22 +0000 (06:27 +0000)]
Auto merge of #27444 - Gankro:nomicon, r=brson

Closes #27412

r? @brson

8 years agoAddressing nits & tests explanations.
Victor Berger [Tue, 4 Aug 2015 06:14:32 +0000 (08:14 +0200)]
Addressing nits & tests explanations.

8 years agoAuto merge of #27500 - michaelwoerister:bring-gdb-pp-tests-back, r=alexcrichton
bors [Tue, 4 Aug 2015 03:51:32 +0000 (03:51 +0000)]
Auto merge of #27500 - michaelwoerister:bring-gdb-pp-tests-back, r=alexcrichton

This test case has been removed a while ago because it allegedly was broken. But I don't think it is (at least I couldn't reproduce any failure on Linux). Let's give it another chance `:)`

8 years agoremove unneeded integer suffixes from concurrency chapter
Matt Friedman [Tue, 4 Aug 2015 00:48:14 +0000 (19:48 -0500)]
remove unneeded integer suffixes from concurrency chapter

8 years agoFix link_section regression.
Eli Friedman [Mon, 3 Aug 2015 22:38:06 +0000 (15:38 -0700)]
Fix link_section regression.

Fixes #27467.

8 years agosyntax: Implement #![no_core]
Alex Crichton [Thu, 30 Jul 2015 00:01:14 +0000 (17:01 -0700)]
syntax: Implement #![no_core]

This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of
the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The
`#![no_std]` attribute now injects `extern crate core` at the top of the crate
as well as the libcore prelude into all modules (in the same manner as the
standard library's prelude). The `#![no_core]` attribute disables both std and
core injection.

[rfc]: https://github.com/rust-lang/rfcs/pull/1184

8 years agoAuto merge of #26783 - eddyb:methrec, r=huonw
bors [Mon, 3 Aug 2015 23:47:02 +0000 (23:47 +0000)]
Auto merge of #26783 - eddyb:methrec, r=huonw

After #26694, the overloaded operator and "impl not known at method lookup time" cases started triggering the lint.
I've also added checks for overloaded autoderef and method calls via paths (i.e. `T::method()`).
All new 8 test cases did not trigger the lint before #26694.
r? @huonw

8 years agorustc_lint: handle more method calls in unconditional_recursion.
Eduard Burtescu [Mon, 3 Aug 2015 22:17:56 +0000 (01:17 +0300)]
rustc_lint: handle more method calls in unconditional_recursion.

8 years agorustc: replace def::MethodProvenance with ty::ImplOrTraitItemContainer.
Eduard Burtescu [Mon, 3 Aug 2015 22:16:53 +0000 (01:16 +0300)]
rustc: replace def::MethodProvenance with ty::ImplOrTraitItemContainer.

8 years agoAuto merge of #27210 - vadimcn:win64-eh-pers, r=alexcrichton
bors [Mon, 3 Aug 2015 22:12:46 +0000 (22:12 +0000)]
Auto merge of #27210 - vadimcn:win64-eh-pers, r=alexcrichton

After this change, the only remaining symbol we are pulling from libgcc on Win64 is `__chkstk_ms` - the stack probing routine.

8 years agorequired -> used; you -> we
Jonathan Hansford [Mon, 3 Aug 2015 20:37:15 +0000 (21:37 +0100)]
required -> used; you -> we

8 years agoAuto merge of #27134 - fhartwig:derive, r=huonw
bors [Mon, 3 Aug 2015 20:29:21 +0000 (20:29 +0000)]
Auto merge of #27134 - fhartwig:derive, r=huonw

Fixes #25022

This adapts the deriving mechanism to not repeat bounds for the same type parameter. To give an example: for the following code:

```rust
#[derive(Clone)]
pub struct FlatMap<I, U: IntoIterator, F> {
    iter: I,
    f: F,
    frontiter: Option<U::IntoIter>,
    backiter: Option<U::IntoIter>,
}
```
the latest nightly generates the following impl signature:

```rust
impl <I: ::std::clone::Clone,
      U: ::std::clone::Clone + IntoIterator,
      F: ::std::clone::Clone>
::std::clone::Clone for FlatMap<I, U, F> where
    I: ::std::clone::Clone,
    F: ::std::clone::Clone,
    U::IntoIter: ::std::clone::Clone,
    U::IntoIter: ::std::clone::Clone
```

With these changes, the signature changes to this:
```rust
impl <I, U: IntoIterator, F> ::std::clone::Clone for FlatMap<I, U, F> where
    I: ::std::clone::Clone,
    F: ::std::clone::Clone,
    U::IntoIter: ::std::clone::Clone
```
(Nothing in the body of the impl changes)
Note that the second impl is more permissive, as it doesn't have a `Clone` bound on `U` at all. There was a compile-fail test that failed due to this. I don't understand why we would want the old behaviour (and nobody on IRC could tell me either), so please tell me if there is a good reason that I missed.

8 years agosmall fix in RELEASES
Steve Klabnik [Mon, 3 Aug 2015 20:19:21 +0000 (16:19 -0400)]
small fix in RELEASES

this grammar isn't correct

8 years agodebuginfo: Bring back some GDB pretty printing autotests that are not actually broken.
Michael Woerister [Mon, 3 Aug 2015 19:47:53 +0000 (21:47 +0200)]
debuginfo: Bring back some GDB pretty printing autotests that are not actually broken.

8 years agoPost merge changes to #27488
Simonas Kazlauskas [Mon, 3 Aug 2015 18:52:20 +0000 (21:52 +0300)]
Post merge changes to #27488

8 years agorename TARPL to The Rustinomicon
Alexis Beingessner [Fri, 31 Jul 2015 21:13:59 +0000 (14:13 -0700)]
rename TARPL to The Rustinomicon

8 years agoAuto merge of #27495 - tshepang:patch-6, r=Gankro
bors [Mon, 3 Aug 2015 16:51:28 +0000 (16:51 +0000)]
Auto merge of #27495 - tshepang:patch-6, r=Gankro

8 years agoUpdate error comment
Guillaume Gomez [Mon, 3 Aug 2015 14:50:18 +0000 (16:50 +0200)]
Update error comment

8 years agoAuto merge of #27488 - Gankro:uninit-docs, r=bluss
bors [Mon, 3 Aug 2015 14:16:52 +0000 (14:16 +0000)]
Auto merge of #27488 - Gankro:uninit-docs, r=bluss

Inspired by https://github.com/rust-lang/rust/issues/27484

8 years agoreference: follow idiom in this tiny snippet
Tshepang Lekhonkhobe [Mon, 3 Aug 2015 14:07:36 +0000 (16:07 +0200)]
reference: follow idiom in this tiny snippet

8 years agovastly expand on the mem::uninitialized docs
Alexis Beingessner [Mon, 3 Aug 2015 05:04:32 +0000 (22:04 -0700)]
vastly expand on the mem::uninitialized docs

8 years agoUpdated in response to review
Jonathan Hansford [Mon, 3 Aug 2015 09:22:03 +0000 (10:22 +0100)]
Updated in response to review

8 years agoImprove E0423 error message
Guillaume Gomez [Mon, 3 Aug 2015 08:43:13 +0000 (10:43 +0200)]
Improve E0423 error message

8 years agoFix compile errors for ARM.
Vadim Chugunov [Mon, 3 Aug 2015 04:15:01 +0000 (21:15 -0700)]
Fix compile errors for ARM.

8 years agoAuto merge of #27475 - AgostonSzepessy:master, r=alexcrichton
bors [Mon, 3 Aug 2015 01:03:50 +0000 (01:03 +0000)]
Auto merge of #27475 - AgostonSzepessy:master, r=alexcrichton

8 years agoAuto merge of #27476 - Manishearth:rollup, r=Manishearth
bors [Sun, 2 Aug 2015 21:04:21 +0000 (21:04 +0000)]
Auto merge of #27476 - Manishearth:rollup, r=Manishearth

- Successful merges: #27464, #27473
- Failed merges:

8 years agoRollup merge of #27473 - brson:stddocs, r=Gankro
Manish Goregaokar [Sun, 2 Aug 2015 21:03:53 +0000 (02:33 +0530)]
Rollup merge of #27473 - brson:stddocs, r=Gankro

This removes some of the more casual language.

The only outright goofiness I couldn't bear to remove is "these modules are the bedrock upon which all of Rust is forged, and they have mighty names like `std::slice` and `std::cmp`", which I believe the greatest sentence I have ever created.

8 years agoRollup merge of #27464 - killercup:patch-16, r=Gankro
Manish Goregaokar [Sun, 2 Aug 2015 21:03:52 +0000 (02:33 +0530)]
Rollup merge of #27464 - killercup:patch-16, r=Gankro

Because Markdown.

8 years agoAdded error explanation for E0384.
Agoston Szepessy [Sun, 2 Aug 2015 19:30:06 +0000 (15:30 -0400)]
Added error explanation for E0384.

8 years agoAuto merge of #27305 - KieranHunt:master, r=steveklabnik
bors [Sun, 2 Aug 2015 19:08:21 +0000 (19:08 +0000)]
Auto merge of #27305 - KieranHunt:master, r=steveklabnik

I found that the book had little information for `loop`s and `loop` label so I've added some.

8 years agostd: Tighten up crate docs
Brian Anderson [Sun, 2 Aug 2015 18:04:30 +0000 (11:04 -0700)]
std: Tighten up crate docs

8 years agoAuto merge of #27469 - SimonSapin:patch-6, r=Gankro
bors [Sun, 2 Aug 2015 16:03:46 +0000 (16:03 +0000)]
Auto merge of #27469 - SimonSapin:patch-6, r=Gankro

8 years agoDocs: clarify return value of std::io::Seek::seek
Simon Sapin [Sun, 2 Aug 2015 12:15:00 +0000 (14:15 +0200)]
Docs: clarify return value of std::io::Seek::seek

8 years agoTRPL: Add Newline Before Headline
Pascal Hertleif [Sun, 2 Aug 2015 10:32:14 +0000 (12:32 +0200)]
TRPL: Add Newline Before Headline

Because Markdown.

8 years agoWhen a `nounwind` function has a personality routine, LLVM messes up .seh directives...
Vadim Chugunov [Sat, 1 Aug 2015 23:07:38 +0000 (16:07 -0700)]
When a `nounwind` function has a personality routine, LLVM messes up .seh directives (happens to `rust_try` in optimized builds).  A workaround is to give `rust_try` the `uwtable` attribute.
Also, make sure that the dummy "load from null" instruction inserted by init_function() gets cleaned up.

8 years agoAuto merge of #27205 - Gankro:travis-extreme, r=alexcrichton
bors [Sun, 2 Aug 2015 02:42:24 +0000 (02:42 +0000)]
Auto merge of #27205 - Gankro:travis-extreme, r=alexcrichton

Only `make -j4` takes ~50 mins
`make check` bumps it up to ~1hr 30min

Travis seems more than happy to let this happen.

Time limits appear to be meaningless.

Similar to the previous PR, it's easy to tell how much your PR definitely builds by checking the current logs or just considering how long it's been building for.

8 years agoAuto merge of #27459 - da-kid:master, r=steveklabnik
bors [Sat, 1 Aug 2015 22:23:22 +0000 (22:23 +0000)]
Auto merge of #27459 - da-kid:master, r=steveklabnik

Sorry :/

8 years agoFix "Ignoring variants" in "Patterns" chapter
Jan Likar [Sat, 1 Aug 2015 20:04:23 +0000 (22:04 +0200)]
Fix "Ignoring variants" in "Patterns" chapter

  - Fix #26968 by noting the difference between ".." and "_" more explicitly

  - Change one of the examples to show the match-all behaviour of ".."

  - Merge "Ignoring variants" and "Ignoring bindings" sections into the latter

8 years agoAdding an ignore annotation to an infinite loop so that it wont hang the tester.
Kieran Hunt [Sat, 1 Aug 2015 20:02:00 +0000 (22:02 +0200)]
Adding an ignore annotation to an infinite loop so that it wont hang the tester.

8 years agoFix off-by-one error
Daniel Albert [Sat, 1 Aug 2015 18:53:19 +0000 (20:53 +0200)]
Fix off-by-one error

8 years agostd: Allow to spawn a process as a session leader on UNIX
Mickaël Salaün [Sun, 21 Jun 2015 14:43:19 +0000 (16:43 +0200)]
std: Allow to spawn a process as a session leader on UNIX

8 years agoAuto merge of #27453 - Manishearth:rollup, r=Manishearth
bors [Sat, 1 Aug 2015 08:36:59 +0000 (08:36 +0000)]
Auto merge of #27453 - Manishearth:rollup, r=Manishearth

- Successful merges: #26982, #27305, #27419, #27423, #27426
- Failed merges:

8 years agoRollup merge of #27426 - FuGangqiang:master, r=alexcrichton
Manish Goregaokar [Sat, 1 Aug 2015 07:01:24 +0000 (12:31 +0530)]
Rollup merge of #27426 - FuGangqiang:master, r=alexcrichton

8 years agoRollup merge of #27423 - oli-obk:patch-1, r=Gankro
Manish Goregaokar [Sat, 1 Aug 2015 07:01:24 +0000 (12:31 +0530)]
Rollup merge of #27423 - oli-obk:patch-1, r=Gankro

8 years agoRollup merge of #27419 - cpjreynolds:master, r=Gankro
Manish Goregaokar [Sat, 1 Aug 2015 07:01:23 +0000 (12:31 +0530)]
Rollup merge of #27419 - cpjreynolds:master, r=Gankro

Corrects formatting of bullet-ed sentences and changes 'pervasive use raw pointers' to 'pervasive use of raw pointers'.

8 years agoRollup merge of #26982 - nham:orphan-explanations, r=Gankro
Manish Goregaokar [Sat, 1 Aug 2015 07:01:23 +0000 (12:31 +0530)]
Rollup merge of #26982 - nham:orphan-explanations, r=Gankro

part of #24407

I'm not sure whether I should be trying to explain the general rule in the E0210 explanation or just point people to the RFC. However, if we go with the latter option I think that the RFC will need to be revised slightly, since it is not quite as gentle as I would like.

Also, the link to RFC 1023 is not the correct one (it should be https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md), but the correct one is too long. I'm aware of @michaelsproul's PR https://github.com/rust-lang/rust/pull/26290 from awhile back, but it doesn't seem to be working. Has there not been a new snapshot yet?

8 years agoAuto merge of #27447 - eefriedman:parser-cleanup, r=alexcrichton
bors [Sat, 1 Aug 2015 04:49:02 +0000 (04:49 +0000)]
Auto merge of #27447 - eefriedman:parser-cleanup, r=alexcrichton

8 years agoAuto merge of #27441 - dhuseby:adding_freebsd32_snap, r=brson
bors [Sat, 1 Aug 2015 03:14:38 +0000 (03:14 +0000)]
Auto merge of #27441 - dhuseby:adding_freebsd32_snap, r=brson

@alexcrichton please upload the FreeBSD 32-bit snapshot file when landing this patch:
https://github.com/dhuseby/rust-manual-snapshots/raw/master/rust-stage0-2015-07-26-a5c12f4-freebsd-i386-2fee22adec101e2f952a5548fd1437ce1bd8d26f.tar.bz2

8 years agoAuto merge of #27440 - dhuseby:fixing_freebsd_unused_import, r=alexcrichton
bors [Sat, 1 Aug 2015 01:25:31 +0000 (01:25 +0000)]
Auto merge of #27440 - dhuseby:fixing_freebsd_unused_import, r=alexcrichton

@alexcrichton fixes the build bot failures due to unused imports being treated as errors.

8 years agoAuto merge of #27437 - retep998:win10-sdk, r=alexcrichton
bors [Fri, 31 Jul 2015 23:51:25 +0000 (23:51 +0000)]
Auto merge of #27437 - retep998:win10-sdk, r=alexcrichton

r? @alexcrichton

8 years agoAuto merge of #27432 - sanxiyn:impl-dotdot, r=sfackler
bors [Fri, 31 Jul 2015 22:17:12 +0000 (22:17 +0000)]
Auto merge of #27432 - sanxiyn:impl-dotdot, r=sfackler

Fix #27255.

8 years agoAuto merge of #27424 - jashank:patch-1, r=alexcrichton
bors [Fri, 31 Jul 2015 19:33:02 +0000 (19:33 +0000)]
Auto merge of #27424 - jashank:patch-1, r=alexcrichton

#27360 removed a padding field full of uint8_t's, but didn't remove
the use.  This didn't get picked up presumably because (a) bors
doesn't have any BSD builders, and/or (b) #[cfg]'d out blocks don't
get linted.

```
rustc: x86_64-unknown-freebsd/stage1/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc
src/liblibc/lib.rs:1099:42: 1099:49 error: unused import, #[deny(unused_imports)] on by default
src/liblibc/lib.rs:1099                 use types::common::c99::{uint8_t, uint32_t, int32_t};
                                                                 ^~~~~~~
error: aborting due to previous error
fatal runtime error: Could not unwind stack, error = 159555904
```

8 years agoadds FreeBSD i686 snapshot
Dave Huseby [Fri, 31 Jul 2015 18:58:38 +0000 (11:58 -0700)]
adds FreeBSD i686 snapshot

8 years agoAdd Win10 SDK lib subfolder name
Peter Atashian [Fri, 31 Jul 2015 18:40:05 +0000 (14:40 -0400)]
Add Win10 SDK lib subfolder name

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoAuto merge of #27418 - taliesinb:tarpl-typo, r=alexcrichton
bors [Fri, 31 Jul 2015 17:55:22 +0000 (17:55 +0000)]
Auto merge of #27418 - taliesinb:tarpl-typo, r=alexcrichton

this makes the second code block consistent with the first code block -- other than being in reversed order, the first code block claims b is u16 and c is u32, whereas the second code block claims the opposite. seems to be an obvious typo.

8 years agoFix resolve tests and add some more.
Victor Berger [Fri, 31 Jul 2015 17:04:34 +0000 (19:04 +0200)]
Fix resolve tests and add some more.

The precedent resolve modification changed the order in which
imports are handled, so 2 tests needed to be updated.

8 years agoMore perseverant about indeterminate imports.
Victor Berger [Fri, 31 Jul 2015 16:58:59 +0000 (18:58 +0200)]
More perseverant about indeterminate imports.

Most errors generated by resolve might be caused by
not-yet-resolved glob imports. This changes the behavior of the
resolve imports algorithms to not fail prematurally on first
error, but instead buffer intermediate errors and report them
only when stuck.

Fixes #18083

8 years agoRemove unused resolve error message.
Victor Berger [Fri, 31 Jul 2015 08:22:13 +0000 (10:22 +0200)]
Remove unused resolve error message.

There is not situation where `foo` would be unresolved but not `foo::*`.

8 years agofixes unused import compile failure
Dave Huseby [Fri, 31 Jul 2015 16:19:02 +0000 (09:19 -0700)]
fixes unused import compile failure

8 years agoAuto merge of #27414 - Gankro:tarpl-fixes, r=alexcrichton
bors [Fri, 31 Jul 2015 15:28:54 +0000 (15:28 +0000)]
Auto merge of #27414 - Gankro:tarpl-fixes, r=alexcrichton

This is *mostly* reducing *my* use of *italics* but there's some other misc changes interspersed as I went along.

This updates the italicizing alphabetically from `a` to `ra`.

r? @steveklabnik

8 years agolast of the emphasis cleanup
Alexis Beingessner [Fri, 31 Jul 2015 05:48:36 +0000 (22:48 -0700)]
last of the emphasis cleanup

8 years agoAuto merge of #27431 - GuillaumeGomez:patch-3, r=Manishearth
bors [Fri, 31 Jul 2015 12:52:41 +0000 (12:52 +0000)]
Auto merge of #27431 - GuillaumeGomez:patch-3, r=Manishearth

8 years agoFix `impl A .. {}`
Seo Sanghyeon [Fri, 31 Jul 2015 12:24:55 +0000 (21:24 +0900)]
Fix `impl A .. {}`

8 years agoAdd diagnostic messages for E0074-E0077
Kelvin Ly [Fri, 31 Jul 2015 12:22:07 +0000 (08:22 -0400)]
Add diagnostic messages for E0074-E0077

8 years agoReplace "impls" by "implementations"
Guillaume Gomez [Fri, 31 Jul 2015 10:55:53 +0000 (12:55 +0200)]
Replace "impls" by "implementations"

8 years agotrpl: fix link error
FuGangqiang [Fri, 31 Jul 2015 08:25:17 +0000 (16:25 +0800)]
trpl: fix link error

8 years agoFix #27360's unused import
Jashank Jeremy [Fri, 31 Jul 2015 08:11:10 +0000 (18:11 +1000)]
Fix #27360's unused import

#27360 removed a padding field full of uint8_t's, but didn't remove
the use.  This didn't get picked up presumably because (a) bors
doesn't have any BSD builders, and/or (b) #[cfg]'d out blocks don't
get linted.

```
rustc: x86_64-unknown-freebsd/stage1/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc
src/liblibc/lib.rs:1099:42: 1099:49 error: unused import, #[deny(unused_imports)] on by default
src/liblibc/lib.rs:1099                 use types::common::c99::{uint8_t, uint32_t, int32_t};
                                                                 ^~~~~~~
error: aborting due to previous error
fatal runtime error: Could not unwind stack, error = 159555904
```

8 years agofix code and error to match the surronding text
Oliver Schneider [Fri, 31 Jul 2015 07:32:53 +0000 (09:32 +0200)]
fix code and error to match the surronding text

8 years agoAuto merge of #27405 - brson:relnotes, r=alexcrichton
bors [Fri, 31 Jul 2015 06:09:29 +0000 (06:09 +0000)]
Auto merge of #27405 - brson:relnotes, r=alexcrichton

8 years agoAuto merge of #27382 - brson:gate-assoc-type, r=alexcrichton
bors [Fri, 31 Jul 2015 04:33:34 +0000 (04:33 +0000)]
Auto merge of #27382 - brson:gate-assoc-type, r=alexcrichton

There are still problems in both the design and implementation of this, so we don't want it landing in 1.2.

cc @arielb1 @nikomatsakis

cc #27364

r? @alexcrichton

8 years agoRemove unused code in parser.
Eli Friedman [Fri, 31 Jul 2015 03:51:51 +0000 (20:51 -0700)]
Remove unused code in parser.

8 years agoMinor grammatical changes to send-and-sync.
Cole Reynolds [Fri, 31 Jul 2015 03:40:04 +0000 (23:40 -0400)]
Minor grammatical changes to send-and-sync.

Corrects formatting of bullet-ed sentences and changes 'pervasive use raw pointers' to 'pervasive use of raw pointers'

8 years agofix switched-round 'b' and 'c'
Taliesin Beynon [Fri, 31 Jul 2015 03:16:56 +0000 (23:16 -0400)]
fix switched-round 'b' and 'c'

8 years agoAuto merge of #27370 - alexcrichton:stabilize-easy, r=brson
bors [Fri, 31 Jul 2015 02:57:34 +0000 (02:57 +0000)]
Auto merge of #27370 - alexcrichton:stabilize-easy, r=brson

The following APIs were all marked with a `#[stable]` tag:

* process::Child::id
* error::Error::is
* error::Error::downcast
* error::Error::downcast_ref
* error::Error::downcast_mut
* io::Error::get_ref
* io::Error::get_mut
* io::Error::into_inner
* hash::Hash::hash_slice
* hash::Hasher::write_{i,u}{8,16,32,64,size}

8 years agofrob emphasis
Alexis Beingessner [Fri, 31 Jul 2015 01:47:02 +0000 (18:47 -0700)]
frob emphasis