]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #29245 - james-darkfox:master, r=alexcrichton
bors [Sat, 24 Oct 2015 01:19:26 +0000 (01:19 +0000)]
Auto merge of #29245 - james-darkfox:master, r=alexcrichton

8 years agoAuto merge of #29255 - alexcrichton:really-fix, r=brson
bors [Fri, 23 Oct 2015 23:28:53 +0000 (23:28 +0000)]
Auto merge of #29255 - alexcrichton:really-fix, r=brson

The macro in question doesn't actually have a $(2) argument so $(1) should
really be used as it's the target in question.

8 years agoAuto merge of #29065 - steveklabnik:doc_iter_traits, r=alexcrichton
bors [Fri, 23 Oct 2015 21:35:59 +0000 (21:35 +0000)]
Auto merge of #29065 - steveklabnik:doc_iter_traits, r=alexcrichton

This adds a bunch of documentation for most of the traits in std::iter

8 years agoDocument a bunch of std::iter traits
Steve Klabnik [Tue, 13 Oct 2015 23:08:26 +0000 (19:08 -0400)]
Document a bunch of std::iter traits

This adds a bunch of documentation for most of the traits in std::iter

8 years agoAuto merge of #29241 - nikomatsakis:issue-28871, r=arielb1
bors [Fri, 23 Oct 2015 19:46:57 +0000 (19:46 +0000)]
Auto merge of #29241 - nikomatsakis:issue-28871, r=arielb1

Give preference to projections from where-clauses over those from trait definitions. This makes #28871 work again, though I think there's more to fix in this general area.

r? @arielb1
cc @brson (fixes regression)

8 years agoImplements Default for mutable slices. Fixes: #29244
James McGlashan [Fri, 23 Oct 2015 03:39:50 +0000 (14:39 +1100)]
Implements Default for mutable slices. Fixes: #29244

8 years agoAuto merge of #29243 - skeleten:issue-29184, r=alexcrichton
bors [Fri, 23 Oct 2015 16:53:40 +0000 (16:53 +0000)]
Auto merge of #29243 - skeleten:issue-29184, r=alexcrichton

Fixes #29184

This adds an error message for the use of the reserved `typeof` keyword, instead of reporting an ICE.
Also adds a `compile-fail` test.

I chose to add a `span_err` instead of removing to parser code, as to preserve the reservation of `typeof`.

8 years agomk: Really fix win32 distributions
Alex Crichton [Fri, 23 Oct 2015 16:47:44 +0000 (09:47 -0700)]
mk: Really fix win32 distributions

The macro in question doesn't actually have a $(2) argument so $(1) should
really be used as it's the target in question.

8 years agoadd main fn to test
Niko Matsakis [Fri, 23 Oct 2015 15:04:38 +0000 (11:04 -0400)]
add main fn to test

8 years agoAdd error message for using `typeof` instead of an ICE.
skeleten [Thu, 22 Oct 2015 20:08:46 +0000 (22:08 +0200)]
Add error message for using `typeof` instead of an ICE.

This adds error E0516

fixing a type pointed out by @jonas-schievink

8 years agoAuto merge of #29194 - chrisccerami:clarify-headers-in-traits-docs, r=Manishearth
bors [Fri, 23 Oct 2015 09:06:24 +0000 (09:06 +0000)]
Auto merge of #29194 - chrisccerami:clarify-headers-in-traits-docs, r=Manishearth

It's possible that there is some meaning I'm not grasping from the headers "Traits bounds for generic functions" and "Traits bounds for generic structs", but they seem to me like they could be clearer and more grammatically correct.

8 years agoAuto merge of #29242 - matklad:fix-comment, r=alexcrichton
bors [Fri, 23 Oct 2015 06:51:24 +0000 (06:51 +0000)]
Auto merge of #29242 - matklad:fix-comment, r=alexcrichton

Qualified paths allow full path after the `>::`. For example

```rust
<T as Foo>::U::generic_method::<f64>()
```

The example is taken from `test/run-pass/associated-item-long-paths.rs`.

8 years agoAuto merge of #29237 - alexcrichton:packaging, r=brson
bors [Fri, 23 Oct 2015 05:01:40 +0000 (05:01 +0000)]
Auto merge of #29237 - alexcrichton:packaging, r=brson

It looks like the target libs aren't actually the same across hosts so instead
of always packaging the target libs from CFG_BUILD take the target libs from the
host if we have them and then only failing that do we take them from CFG_BUILD.

Closes #29228

8 years agoDefine bounds in glossary.md
Chris C Cerami [Fri, 23 Oct 2015 04:45:44 +0000 (00:45 -0400)]
Define bounds in glossary.md

8 years agoAuto merge of #27894 - steveklabnik:gh26888, r=alexcrichton
bors [Fri, 23 Oct 2015 03:13:10 +0000 (03:13 +0000)]
Auto merge of #27894 - steveklabnik:gh26888, r=alexcrichton

{BTree,Hash}{Map,Set} will not update their key if it already exists, which
can matter with more complex keys. This behavior is now documented.

Fixes #26888

8 years agoDocument replacement behavior in some collections
Steve Klabnik [Tue, 18 Aug 2015 22:38:07 +0000 (18:38 -0400)]
Document replacement behavior in some collections

{BTree,Hash}{Map,Set} will not update their key if it already exists, which
can matter with more complex keys. This behavior is now documented.

Fixes #26888

8 years agoAuto merge of #29216 - steveklabnik:fix_libc, r=alexcrichton
bors [Fri, 23 Oct 2015 00:24:14 +0000 (00:24 +0000)]
Auto merge of #29216 - steveklabnik:fix_libc, r=alexcrichton

This is needed to release a new version of libc

r? @alexcrichton

8 years agoparser: fix erroneous comment
Aleksey Kladov [Thu, 22 Oct 2015 23:17:03 +0000 (02:17 +0300)]
parser: fix erroneous comment

Qualified paths allow full path after the `>::`. For example

```rust
<T as Foo>::U::generic_method::<f64>()
```

The example is taken from `test/run-pass/associated-item-long-paths.rs`.

8 years agofix bug in hir,identified
Niko Matsakis [Thu, 22 Oct 2015 20:05:51 +0000 (16:05 -0400)]
fix bug in hir,identified

8 years agoimprove Scope to print node-ids etc
Niko Matsakis [Thu, 22 Oct 2015 20:05:30 +0000 (16:05 -0400)]
improve Scope to print node-ids etc

8 years agodistinguish projections from the env/obj-types vs those from
Niko Matsakis [Thu, 22 Oct 2015 16:28:47 +0000 (12:28 -0400)]
distinguish projections from the env/obj-types vs those from
trait definitions, and give prefence to the former. This is consistent
with what we do for selection. It also works around a limitation
that was leading to #28871.

8 years agoAuto merge of #29236 - steveklabnik:rollup, r=steveklabnik
bors [Thu, 22 Oct 2015 18:26:27 +0000 (18:26 +0000)]
Auto merge of #29236 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29170, #29180, #29193, #29207, #29213, #29224, #29230
- Failed merges:

8 years agoRollup merge of #29230 - tsion:fix-nomicon-typo-2, r=steveklabnik
Steve Klabnik [Thu, 22 Oct 2015 16:43:50 +0000 (12:43 -0400)]
Rollup merge of #29230 - tsion:fix-nomicon-typo-2, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #29224 - wesleywiser:patch-2, r=alexcrichton
Steve Klabnik [Thu, 22 Oct 2015 16:43:50 +0000 (12:43 -0400)]
Rollup merge of #29224 - wesleywiser:patch-2, r=alexcrichton

Fixes #29219

8 years agoRollup merge of #29213 - apasel422:unsafe-cell, r=Gankro
Steve Klabnik [Thu, 22 Oct 2015 16:43:49 +0000 (12:43 -0400)]
Rollup merge of #29213 - apasel422:unsafe-cell, r=Gankro

r? @alexcrichton

8 years agoRollup merge of #29207 - ykomatsu:trpl, r=steveklabnik
Steve Klabnik [Thu, 22 Oct 2015 16:43:49 +0000 (12:43 -0400)]
Rollup merge of #29207 - ykomatsu:trpl, r=steveklabnik

8 years agoRollup merge of #29193 - kini:filename-conventions, r=alexcrichton
Steve Klabnik [Thu, 22 Oct 2015 16:43:49 +0000 (12:43 -0400)]
Rollup merge of #29193 - kini:filename-conventions, r=alexcrichton

When reading this paragraph, the beginning Rust programmer is starting
to write a Hello World program.  We have just told her to name the file
`main.rs`, and immediately afterward, a `hello_world.rs` is mentioned.
I changed this to an unrelated filename (incidentally one that appears
in this repository) to make it clear that this is just an example.
Also, wording it as a declarative sentence rather than an imperative one
further separates it from the Hello World instructions in this section.

r? @steveklabnik

(Let me know if I'm sending too many PRs -- I can batch up TRPL edits, say, per chapter, if that works better. Or I can just refrain from editing TRPL as I read through it, if these are not sufficiently useful.)

8 years agoRollup merge of #29180 - SingingTree:readme_windows_build, r=steveklabnik
Steve Klabnik [Thu, 22 Oct 2015 16:43:48 +0000 (12:43 -0400)]
Rollup merge of #29180 - SingingTree:readme_windows_build, r=steveklabnik

Adds the pacman git command to the high level Windows installation instructions. As the MSYS2 installation may not include Windows git on the path by default (based on the path settings of Windows users), I figured this could be a helpful inclusion.

8 years agoRollup merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik
Steve Klabnik [Thu, 22 Oct 2015 16:43:48 +0000 (12:43 -0400)]
Rollup merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik

The paragraph here seemed confusing, so I reworded it.  Also added
another possible reason why `curl | sh` might be objectionable to users.

r? @steveklabnik

8 years agoAuto merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik
bors [Thu, 22 Oct 2015 16:37:28 +0000 (16:37 +0000)]
Auto merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik

The paragraph here seemed confusing, so I reworded it.  Also added
another possible reason why `curl | sh` might be objectionable to users.

r? @steveklabnik

8 years agomk: Prefer target libs coming from their host
Alex Crichton [Thu, 22 Oct 2015 16:01:34 +0000 (09:01 -0700)]
mk: Prefer target libs coming from their host

It looks like the target libs aren't actually the same across hosts so instead
of always packaging the target libs from CFG_BUILD take the target libs from the
host if we have them and then only failing that do we take them from CFG_BUILD.

Closes #29228

8 years agoFix build of libc on stable
Steve Klabnik [Wed, 21 Oct 2015 22:05:46 +0000 (18:05 -0400)]
Fix build of libc on stable

This is needed to release a new version of libc

8 years agoAuto merge of #29018 - tsion:doc-typo, r=steveklabnik
bors [Thu, 22 Oct 2015 13:12:20 +0000 (13:12 +0000)]
Auto merge of #29018 - tsion:doc-typo, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #29195 - alexcrichton:fix-windows-dist, r=brson
bors [Thu, 22 Oct 2015 10:22:43 +0000 (10:22 +0000)]
Auto merge of #29195 - alexcrichton:fix-windows-dist, r=brson

These were accidentally placed into the wrong package (std) when they should
have been in the main package (rustc)

Closes #29195

8 years agoAdd missing "to" in Rustonomicon Atomics.
Scott Olson [Thu, 22 Oct 2015 09:33:47 +0000 (03:33 -0600)]
Add missing "to" in Rustonomicon Atomics.

8 years agoAuto merge of #28355 - DiamondLovesYou:pnacl-librustc-trans, r=alexcrichton
bors [Thu, 22 Oct 2015 08:35:38 +0000 (08:35 +0000)]
Auto merge of #28355 - DiamondLovesYou:pnacl-librustc-trans, r=alexcrichton

r? @alexcrichton

8 years agoAuto merge of #29210 - arielb1:suggest-overflow, r=eddyb
bors [Thu, 22 Oct 2015 06:47:27 +0000 (06:47 +0000)]
Auto merge of #29210 - arielb1:suggest-overflow, r=eddyb

This prevents a stack-overflow when the module graph was cyclic.

Fixes #29181

r? @eddyb

8 years agoFix doc sample for Cursor
Wesley Wiser [Thu, 22 Oct 2015 02:33:24 +0000 (22:33 -0400)]
Fix doc sample for Cursor

Fixes #29219

8 years agoAuto merge of #29045 - mseri:patch-4, r=nrc
bors [Thu, 22 Oct 2015 02:28:36 +0000 (02:28 +0000)]
Auto merge of #29045 - mseri:patch-4, r=nrc

r? @nrc

Nothing special going on, the only real notable change is the explicit ABI on line 6183.
I re-onlined some extern on top of the file by hand.

8 years agoAuto merge of #28963 - mdinger:arrow, r=steveklabnik
bors [Thu, 22 Oct 2015 00:41:21 +0000 (00:41 +0000)]
Auto merge of #28963 - mdinger:arrow, r=steveklabnik

This is to make the link more prominent so hopefully people will actually see it. The new icon is partially because I wasn't sure how easy it would be to apply the previous transformations only to the last character of the string. As it is, I wasn't sure at first but I think the look is growing on me.

A minor nitpick is that the space after `Runnable` is underlined and I tried to fix that but it wasn't working for me right now. I tried switching a link with subelements to a div with subelements but I missed something because it wasn't working correctly.

---
Unselected:

![arrow](https://cloud.githubusercontent.com/assets/4156987/10414475/b1730ab2-6fa4-11e5-9062-15bc0c7c8b96.png)

---

Selected:

![arrow_selected](https://cloud.githubusercontent.com/assets/4156987/10414483/4a78088e-6fa5-11e5-864e-c83f354769b1.png)

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

8 years agoCorrect a previous patch
Yoshito Komatsu [Thu, 22 Oct 2015 00:17:04 +0000 (09:17 +0900)]
Correct a previous patch

8 years agoAdd the PNaCl/JS targets to the backend.
Richard Diamond [Fri, 11 Sep 2015 15:58:04 +0000 (10:58 -0500)]
Add the PNaCl/JS targets to the backend.

8 years agoRemove obsolete note about `UnsafeCell`'s fields
Andrew Paseltiner [Wed, 21 Oct 2015 18:15:43 +0000 (14:15 -0400)]
Remove obsolete note about `UnsafeCell`'s fields

8 years agodon't revisit modules while finding traits in suggest
Ariel Ben-Yehuda [Wed, 21 Oct 2015 17:17:47 +0000 (20:17 +0300)]
don't revisit modules while finding traits in suggest

Fixes #29181

8 years agoAuto merge of #29206 - apasel422:issue-28936, r=alexcrichton
bors [Wed, 21 Oct 2015 16:37:31 +0000 (16:37 +0000)]
Auto merge of #29206 - apasel422:issue-28936, r=alexcrichton

Closes #28936.

8 years agoAuto merge of #29138 - ykomatsu:trpl2, r=Manishearth
bors [Wed, 21 Oct 2015 14:45:48 +0000 (14:45 +0000)]
Auto merge of #29138 - ykomatsu:trpl2, r=Manishearth

8 years agoFix some typos in TRPL
Yoshito Komatsu [Wed, 21 Oct 2015 13:17:23 +0000 (22:17 +0900)]
Fix some typos in TRPL

8 years agoAuto merge of #29179 - cjdrake:fixup, r=steveklabnik
bors [Wed, 21 Oct 2015 12:56:24 +0000 (12:56 +0000)]
Auto merge of #29179 - cjdrake:fixup, r=steveklabnik

This is a pretty trivial change. My eye caught some inconsistent whitespace while perusing compiler errors tonight. Specifically, I changed `//correct` to `// correct`, and got rid of some trailing whitespace that isn't seen in other code snippets.

8 years agoAdd test for #28936
Andrew Paseltiner [Wed, 21 Oct 2015 12:40:33 +0000 (08:40 -0400)]
Add test for #28936

Closes #28936.

8 years agoAuto merge of #29017 - ykomatsu:trpl, r=steveklabnik
bors [Wed, 21 Oct 2015 11:13:46 +0000 (11:13 +0000)]
Auto merge of #29017 - ykomatsu:trpl, r=steveklabnik

8 years agoAuto merge of #29108 - notriddle:master, r=alexcrichton
bors [Wed, 21 Oct 2015 09:28:37 +0000 (09:28 +0000)]
Auto merge of #29108 - notriddle:master, r=alexcrichton

8 years agorustfmt liblibc
Marcello Seri [Wed, 14 Oct 2015 12:41:37 +0000 (13:41 +0100)]
rustfmt liblibc

8 years agoAuto merge of #29055 - alexcrichton:tiers, r=steveklabnik
bors [Wed, 21 Oct 2015 07:45:48 +0000 (07:45 +0000)]
Auto merge of #29055 - alexcrichton:tiers, r=steveklabnik

This commit expands the "supported platforms" section of the book to include
documentation on the tiers that Rust currently has as well as organizing all
supported platforms into these various tiers. Infrastructure improvements over
the next few months are likely to change the location of may of these platforms
over, but for now this should faithfully represent what we've got today!

8 years agoAuto merge of #29192 - phil-opp:unsafe-const-fns, r=alexcrichton
bors [Wed, 21 Oct 2015 06:03:39 +0000 (06:03 +0000)]
Auto merge of #29192 - phil-opp:unsafe-const-fns, r=alexcrichton

similar to #29085

8 years agoAuto merge of #29190 - alexcrichton:from-str-socket-addr, r=brson
bors [Wed, 21 Oct 2015 04:21:20 +0000 (04:21 +0000)]
Auto merge of #29190 - alexcrichton:from-str-socket-addr, r=brson

This was already implemented for SocketAddr, so the other types are lacking it
is just an oversight!

Closes #29183

8 years agomk: Fix win32 runtime DLL installation
Alex Crichton [Wed, 21 Oct 2015 03:58:03 +0000 (20:58 -0700)]
mk: Fix win32 runtime DLL installation

These were accidentally placed into the wrong package (std) when they should
have been in the main package (rustc)

8 years agoAuto merge of #29186 - pnkfelix:fsk-fix-issue-29166, r=alexcrichton
bors [Wed, 21 Oct 2015 02:39:59 +0000 (02:39 +0000)]
Auto merge of #29186 - pnkfelix:fsk-fix-issue-29166, r=alexcrichton

Add dropck unsafe escape hatch (UGEH) to vec::IntoIter.

Fix #29166

8 years agoChange headers in Traits section of the book
Chris C Cerami [Wed, 21 Oct 2015 01:21:44 +0000 (21:21 -0400)]
Change headers in Traits section of the book

8 years agoAuto merge of #29171 - nrc:servo-dxr, r=@arielb1
bors [Wed, 21 Oct 2015 00:55:49 +0000 (00:55 +0000)]
Auto merge of #29171 - nrc:servo-dxr, r=@arielb1

8 years agosave-analysis: don't recompute crate name
Nick Cameron [Mon, 19 Oct 2015 19:54:19 +0000 (08:54 +1300)]
save-analysis: don't recompute crate name

8 years agoAuto merge of #29159 - arcnmx:travis-trusty, r=alexcrichton
bors [Tue, 20 Oct 2015 22:00:56 +0000 (22:00 +0000)]
Auto merge of #29159 - arcnmx:travis-trusty, r=alexcrichton

Moves back away from docker but still uses the GCE infrastructure with a system-installed LLVM.

See http://docs.travis-ci.com/user/trusty-ci-environment/

8 years agoRemove reference to `hello_world.rs` in TRPL §2.2
Keshav Kini [Tue, 20 Oct 2015 21:07:17 +0000 (16:07 -0500)]
Remove reference to `hello_world.rs` in TRPL §2.2

When reading this paragraph, the beginning Rust programmer is starting
to write a Hello World program.  We have just told her to name the file
`main.rs`, and immediately afterward, a `hello_world.rs` is mentioned.
I changed this to an unrelated filename (incidentally one that appears
in this repository) to make it clear that this is just an example.
Also, wording it as a declarative sentence rather than an imperative one
further separates it from the Hello World instructions in this section.

8 years agoAuto merge of #29148 - petrochenkov:noshow, r=alexcrichton
bors [Tue, 20 Oct 2015 19:02:27 +0000 (19:02 +0000)]
Auto merge of #29148 - petrochenkov:noshow, r=alexcrichton

Closes https://github.com/rust-lang/rust/issues/29145

[breaking-change], needs a crater run.

8 years agostd: Implement FromStr for SocketAddrV{4,6}
Alex Crichton [Tue, 20 Oct 2015 18:35:05 +0000 (11:35 -0700)]
std: Implement FromStr for SocketAddrV{4,6}

This was already implemented for SocketAddr, so the other types are lacking it
is just an oversight!

Closes #29183

8 years agoMake Unique::new const function
Philipp Oppermann [Tue, 13 Oct 2015 15:11:49 +0000 (17:11 +0200)]
Make Unique::new const function

8 years agodoc: Clarify supported platforms and tiers
Alex Crichton [Wed, 14 Oct 2015 21:14:11 +0000 (14:14 -0700)]
doc: Clarify supported platforms and tiers

This commit expands the "supported platforms" section of the book to include
documentation on the tiers that Rust currently has as well as organizing all
supported platforms into these various tiers. Infrastructure improvements over
the next few months are likely to change the location of may of these platforms
over, but for now this should faithfully represent what we've got today!

8 years agoAuto merge of #29187 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 20 Oct 2015 15:28:08 +0000 (15:28 +0000)]
Auto merge of #29187 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29158, #29162, #29175, #29176
- Failed merges:

8 years agoRollup merge of #29176 - huonw:shared-tracking, r=Gankro
Steve Klabnik [Tue, 20 Oct 2015 13:43:48 +0000 (09:43 -0400)]
Rollup merge of #29176 - huonw:shared-tracking, r=Gankro

8 years agoRollup merge of #29175 - durka:patch-8, r=Gankro
Steve Klabnik [Tue, 20 Oct 2015 13:43:47 +0000 (09:43 -0400)]
Rollup merge of #29175 - durka:patch-8, r=Gankro

Yay, markdown isn't standardized and rustbook's parser has subtle incompatibilities with Github's! So in the Github preview you don't see that this list fails to separate from the previous paragraph. I think this should fix it, but I didn't check.

8 years agoRollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichton
Steve Klabnik [Tue, 20 Oct 2015 13:43:47 +0000 (09:43 -0400)]
Rollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichton

r? @steveklabnik

8 years agoRollup merge of #29158 - arcnmx:process-test, r=alexcrichton
Steve Klabnik [Tue, 20 Oct 2015 13:43:47 +0000 (09:43 -0400)]
Rollup merge of #29158 - arcnmx:process-test, r=alexcrichton

This test was mysteriously messed with as part of #28500

r? @alexcrichton

8 years agoAuto merge of #29156 - arcnmx:net-tests, r=alexcrichton
bors [Tue, 20 Oct 2015 13:39:23 +0000 (13:39 +0000)]
Auto merge of #29156 - arcnmx:net-tests, r=alexcrichton

Just some minor cleanup.

8 years agoAdd dropck unsafe escape hatch (UGEH) to vec::IntoIter.
Felix S. Klock II [Tue, 20 Oct 2015 12:54:38 +0000 (14:54 +0200)]
Add dropck unsafe escape hatch (UGEH) to vec::IntoIter.

Fix #29166

8 years agoAuto merge of #27723 - mystor:vecdeque_drain_range, r=bluss
bors [Tue, 20 Oct 2015 11:55:17 +0000 (11:55 +0000)]
Auto merge of #27723 - mystor:vecdeque_drain_range, r=bluss

This is a WIP PR for my implementation of drain over the VecDeque data structure supporting ranges. It brings the VecDeque drain implementation in line with Vec's.

Tests haven't been written for the new function yet.

8 years agoAuto merge of #29155 - retep998:read-no-dir, r=alexcrichton
bors [Tue, 20 Oct 2015 10:06:42 +0000 (10:06 +0000)]
Auto merge of #29155 - retep998:read-no-dir, r=alexcrichton

Fixes #29150

r? @alexcrichton

8 years agoAuto merge of #29152 - petrochenkov:derstab, r=alexcrichton
bors [Tue, 20 Oct 2015 08:19:19 +0000 (08:19 +0000)]
Auto merge of #29152 - petrochenkov:derstab, r=alexcrichton

The attributes are copied from the item for which the trait impl is derived

I think now we can close these two issues:
https://github.com/rust-lang/rust/issues/13054 - `allow`, `deny` etc. were already copied, now `stable` and `unstable` are copied as well.
https://github.com/rust-lang/rust/issues/18969 - I'm not sure this is needed, insta-stability were good enough so far, copied stability will be better. Nonetheless, it can be subsumed by some more general mechanism for supplying arbitrary not necessarily stability related attributes (for example `inline`) to derived impls and their methods (I haven't found an open issue for such mechanism).

r? @alexcrichton

8 years agoAdd example to install git in MSYS2
Bryce Van Dyk [Tue, 20 Oct 2015 08:02:19 +0000 (21:02 +1300)]
Add example to install git in MSYS2

8 years agoFixup some inconsistent whitespace
Chris Drake [Tue, 20 Oct 2015 07:11:33 +0000 (00:11 -0700)]
Fixup some inconsistent whitespace

8 years agoAuto merge of #29140 - sorear:dst-document-on-sized, r=alexcrichton
bors [Tue, 20 Oct 2015 06:36:50 +0000 (06:36 +0000)]
Auto merge of #29140 - sorear:dst-document-on-sized, r=alexcrichton

This is for discoverability.  If someone wants to know what `?Sized` means, then
Sized will be the only keyword they can use to search; so even though this is
technically a language matter, it makes sense to document it where it will be
looked for.

8 years agoPoint core::ptr::Shared to tracking issue #27730.
Huon Wilson [Tue, 20 Oct 2015 00:49:08 +0000 (11:49 +1100)]
Point core::ptr::Shared to tracking issue #27730.

8 years agoAuto merge of #29009 - alexcrichton:std-pkgs, r=brson
bors [Tue, 20 Oct 2015 00:30:23 +0000 (00:30 +0000)]
Auto merge of #29009 - alexcrichton:std-pkgs, r=brson

This commit splits out the standard library from the current 'rustc' package
into a new 'rust-std' package. This is the basis for the work on easily
packaging compilers that can cross-compile to new targets.

8 years agofix markdown in nomicon/dropck
Alex Burka [Tue, 20 Oct 2015 00:14:38 +0000 (20:14 -0400)]
fix markdown in nomicon/dropck

8 years agoUse Travis trusty infrastructure
arcnmx [Mon, 19 Oct 2015 01:37:14 +0000 (21:37 -0400)]
Use Travis trusty infrastructure

8 years agoAuto merge of #29172 - steveklabnik:rollup, r=steveklabnik
bors [Mon, 19 Oct 2015 21:44:56 +0000 (21:44 +0000)]
Auto merge of #29172 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29027, #29125, #29132, #29165, #29168, #29169
- Failed merges:

8 years agoReplace -- with —
Keshav Kini [Mon, 19 Oct 2015 21:18:20 +0000 (16:18 -0500)]
Replace -- with —

8 years agoRollup merge of #29169 - apasel422:spell, r=steveklabnik
Steve Klabnik [Mon, 19 Oct 2015 21:14:08 +0000 (17:14 -0400)]
Rollup merge of #29169 - apasel422:spell, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #29168 - aarzee:master, r=steveklabnik
Steve Klabnik [Mon, 19 Oct 2015 21:14:08 +0000 (17:14 -0400)]
Rollup merge of #29168 - aarzee:master, r=steveklabnik

Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines.

This PR was created semiautomatically.

8 years agoRollup merge of #29165 - iajrz:patch-1, r=steveklabnik
Steve Klabnik [Mon, 19 Oct 2015 21:14:08 +0000 (17:14 -0400)]
Rollup merge of #29165 - iajrz:patch-1, r=steveklabnik

To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.

8 years agoRollup merge of #29132 - sorear:document-ordering-relaxed, r=alexcrichton
Steve Klabnik [Mon, 19 Oct 2015 21:14:07 +0000 (17:14 -0400)]
Rollup merge of #29132 - sorear:document-ordering-relaxed, r=alexcrichton

I wasn't sure whether `Ordering::Relaxed` meant `Monotonic` or `Unordered`, so I checked the compiler sources and found https://github.com/rust-lang/rust/blob/206af38e74ce7fa4b0e781ece7f1067c018c580e/src/librustc_trans/trans/intrinsic.rs#L846 which appears conclusive.  Adding this answer to the documentation.

8 years agoRollup merge of #29125 - iKevinY:std-io-doc-fixes, r=alexcrichton
Steve Klabnik [Mon, 19 Oct 2015 21:14:07 +0000 (17:14 -0400)]
Rollup merge of #29125 - iKevinY:std-io-doc-fixes, r=alexcrichton

Just a few minor spelling/grammar fixes.

8 years agoRollup merge of #29027 - steveklabnik:iter_docs, r=manishearth
Steve Klabnik [Mon, 19 Oct 2015 21:14:07 +0000 (17:14 -0400)]
Rollup merge of #29027 - steveklabnik:iter_docs, r=manishearth

Due to the way iterators work, the std::iter module is chock full of
structs that you, humble Rust programmer, will never actually use.
However, they have URLs, and therefore get linked to, because they are
real structs that do exist.

So, rather than just have a tiny sentence about each one of them,
this patch adds links back to the functions and methods on Iterator
which actually create the structs, where helpful documentation already
exists.

8 years agoCorrect spelling in docs
Andrew Paseltiner [Mon, 19 Oct 2015 17:45:33 +0000 (13:45 -0400)]
Correct spelling in docs

8 years agoReword `curl | sh` disclaimer in TRPL §2.1
Keshav Kini [Mon, 19 Oct 2015 17:05:52 +0000 (12:05 -0500)]
Reword `curl | sh` disclaimer in TRPL §2.1

The paragraph here seemed confusing, so I reworded it.  Also added
another possible reason why `curl | sh` might be objectionable to users.

8 years agoAuto merge of #28977 - arcnmx:cstring-into, r=alexcrichton
bors [Mon, 19 Oct 2015 17:05:40 +0000 (17:05 +0000)]
Auto merge of #28977 - arcnmx:cstring-into, r=alexcrichton

`OsString` has these sorts of conversions, while `CString` has been missing them. I'm iffy on `into_string` simply because the return type would be better off as `FromUtf8Error<CString>`, which of course isn't generic :cry:

Also should a different/new feature gate be used?

8 years agoCorrect drain implementations in libcollectionstest
Michael Layzell [Mon, 19 Oct 2015 15:53:35 +0000 (11:53 -0400)]
Correct drain implementations in libcollectionstest

8 years agoClean whitespace
Carlos Liam [Mon, 19 Oct 2015 15:16:31 +0000 (11:16 -0400)]
Clean whitespace

Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines

8 years agoMade the example capable of consistent deadlocking
Irving A.J. Rivas Z. [Mon, 19 Oct 2015 14:02:46 +0000 (10:02 -0400)]
Made the example capable of consistent deadlocking

To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.

8 years agoAuto merge of #29153 - arcnmx:thread-spawn, r=alexcrichton
bors [Mon, 19 Oct 2015 12:45:25 +0000 (12:45 +0000)]
Auto merge of #29153 - arcnmx:thread-spawn, r=alexcrichton

Fixes #29128

Most of the weird lifetime things and `inner` stuff seems like leftover cruft from `thread::scoped`. Should `JoinInner` just be removed/merged with `JoinHandle`?

Also is it okay to remove the `FnBox`? I'm not really sure why there were two allocations there...

8 years agoAuto merge of #29144 - dotdash:llvmup, r=alexcrichton
bors [Mon, 19 Oct 2015 07:48:20 +0000 (07:48 +0000)]
Auto merge of #29144 - dotdash:llvmup, r=alexcrichton

Fixes #28947

8 years agoFix minor syntax error in example.
Scott Olson [Mon, 19 Oct 2015 07:43:48 +0000 (01:43 -0600)]
Fix minor syntax error in example.