]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #29254 - alexcrichton:stabilize-1.5, r=brson
bors [Sun, 25 Oct 2015 16:38:38 +0000 (16:38 +0000)]
Auto merge of #29254 - alexcrichton:stabilize-1.5, r=brson

This commit stabilizes and deprecates library APIs whose FCP has closed in the
last cycle, specifically:

Stabilized APIs:

* `fs::canonicalize`
* `Path::{metadata, symlink_metadata, canonicalize, read_link, read_dir, exists,
   is_file, is_dir}` - all moved to inherent methods from the `PathExt` trait.
* `Formatter::fill`
* `Formatter::width`
* `Formatter::precision`
* `Formatter::sign_plus`
* `Formatter::sign_minus`
* `Formatter::alternate`
* `Formatter::sign_aware_zero_pad`
* `string::ParseError`
* `Utf8Error::valid_up_to`
* `Iterator::{cmp, partial_cmp, eq, ne, lt, le, gt, ge}`
* `<[T]>::split_{first,last}{,_mut}`
* `Condvar::wait_timeout` - note that `wait_timeout_ms` is not yet deprecated
  but will be once 1.5 is released.
* `str::{R,}MatchIndices`
* `str::{r,}match_indices`
* `char::from_u32_unchecked`
* `VecDeque::insert`
* `VecDeque::shrink_to_fit`
* `VecDeque::as_slices`
* `VecDeque::as_mut_slices`
* `VecDeque::swap_remove_front` - (renamed from `swap_front_remove`)
* `VecDeque::swap_remove_back` - (renamed from `swap_back_remove`)
* `Vec::resize`
* `str::slice_mut_unchecked`
* `FileTypeExt`
* `FileTypeExt::{is_block_device, is_char_device, is_fifo, is_socket}`
* `BinaryHeap::from` - `from_vec` deprecated in favor of this
* `BinaryHeap::into_vec` - plus a `Into` impl
* `BinaryHeap::into_sorted_vec`

Deprecated APIs

* `slice::ref_slice`
* `slice::mut_ref_slice`
* `iter::{range_inclusive, RangeInclusive}`
* `std::dynamic_lib`

Closes #27706
Closes #27725
cc #27726 (align not stabilized yet)
Closes #27734
Closes #27737
Closes #27742
Closes #27743
Closes #27772
Closes #27774
Closes #27777
Closes #27781
cc #27788 (a few remaining methods though)
Closes #27790
Closes #27793
Closes #27796
Closes #27810
cc #28147 (not all parts stabilized)

8 years agostd: Stabilize library APIs for 1.5
Alex Crichton [Thu, 22 Oct 2015 23:28:45 +0000 (16:28 -0700)]
std: Stabilize library APIs for 1.5

This commit stabilizes and deprecates library APIs whose FCP has closed in the
last cycle, specifically:

Stabilized APIs:

* `fs::canonicalize`
* `Path::{metadata, symlink_metadata, canonicalize, read_link, read_dir, exists,
   is_file, is_dir}` - all moved to inherent methods from the `PathExt` trait.
* `Formatter::fill`
* `Formatter::width`
* `Formatter::precision`
* `Formatter::sign_plus`
* `Formatter::sign_minus`
* `Formatter::alternate`
* `Formatter::sign_aware_zero_pad`
* `string::ParseError`
* `Utf8Error::valid_up_to`
* `Iterator::{cmp, partial_cmp, eq, ne, lt, le, gt, ge}`
* `<[T]>::split_{first,last}{,_mut}`
* `Condvar::wait_timeout` - note that `wait_timeout_ms` is not yet deprecated
  but will be once 1.5 is released.
* `str::{R,}MatchIndices`
* `str::{r,}match_indices`
* `char::from_u32_unchecked`
* `VecDeque::insert`
* `VecDeque::shrink_to_fit`
* `VecDeque::as_slices`
* `VecDeque::as_mut_slices`
* `VecDeque::swap_remove_front` - (renamed from `swap_front_remove`)
* `VecDeque::swap_remove_back` - (renamed from `swap_back_remove`)
* `Vec::resize`
* `str::slice_mut_unchecked`
* `FileTypeExt`
* `FileTypeExt::{is_block_device, is_char_device, is_fifo, is_socket}`
* `BinaryHeap::from` - `from_vec` deprecated in favor of this
* `BinaryHeap::into_vec` - plus a `Into` impl
* `BinaryHeap::into_sorted_vec`

Deprecated APIs

* `slice::ref_slice`
* `slice::mut_ref_slice`
* `iter::{range_inclusive, RangeInclusive}`
* `std::dynamic_lib`

Closes #27706
Closes #27725
cc #27726 (align not stabilized yet)
Closes #27734
Closes #27737
Closes #27742
Closes #27743
Closes #27772
Closes #27774
Closes #27777
Closes #27781
cc #27788 (a few remaining methods though)
Closes #27790
Closes #27793
Closes #27796
Closes #27810
cc #28147 (not all parts stabilized)

8 years agoAuto merge of #29281 - skeleten:issue-28189, r=steveklabnik
bors [Sun, 25 Oct 2015 14:41:06 +0000 (14:41 +0000)]
Auto merge of #29281 - skeleten:issue-28189, r=steveklabnik

Closes #28189

8 years agoAuto merge of #29279 - Ryman:strtests, r=alexcrichton
bors [Sun, 25 Oct 2015 12:44:33 +0000 (12:44 +0000)]
Auto merge of #29279 - Ryman:strtests, r=alexcrichton

8 years agoAuto merge of #29273 - Manishearth:regression, r=alexcrichton
bors [Sun, 25 Oct 2015 10:45:27 +0000 (10:45 +0000)]
Auto merge of #29273 - Manishearth:regression, r=alexcrichton

None

8 years agoAuto merge of #29272 - sanxiyn:llvm-update, r=alexcrichton
bors [Sun, 25 Oct 2015 08:47:46 +0000 (08:47 +0000)]
Auto merge of #29272 - sanxiyn:llvm-update, r=alexcrichton

cc @zazdxscf

8 years agoAuto merge of #29261 - apasel422:issue-22403, r=alexcrichton
bors [Sun, 25 Oct 2015 06:48:21 +0000 (06:48 +0000)]
Auto merge of #29261 - apasel422:issue-22403, r=alexcrichton

Closes #22403.

r? @pnkfelix

8 years agoAuto merge of #29256 - alexcrichton:less-flaky, r=brson
bors [Sun, 25 Oct 2015 02:12:00 +0000 (02:12 +0000)]
Auto merge of #29256 - alexcrichton:less-flaky, r=brson

The new bots we have may conflict with one another on base ports, causing tests
to fail. For example the linux-musl-64-opt and linux-64-opt bots are using the
same base port right now, causing some spurious failures every now and then.

8 years agoAuto merge of #29229 - SingingTree:reflect_28260_in_readme, r=alexcrichton
bors [Sat, 24 Oct 2015 23:19:14 +0000 (23:19 +0000)]
Auto merge of #29229 - SingingTree:reflect_28260_in_readme, r=alexcrichton

This PR adds a note to the end of the Windows build instructions to reflect the issues detailed in #28260, as well as a work around using older versions of gcc. I've avoided going into detail as I did not wish to bloat the README, and so that the changes are easy to yank once the issue is resolved.

8 years agoAuto merge of #29151 - wthrowe:linker-output-ICE, r=alexcrichton
bors [Sat, 24 Oct 2015 21:24:49 +0000 (21:24 +0000)]
Auto merge of #29151 - wthrowe:linker-output-ICE, r=alexcrichton

I suspect this won't work on Windows, but let's be optimistic and try it before disabling.

8 years agoadding test for #28189
skeleten [Sat, 24 Oct 2015 19:16:38 +0000 (21:16 +0200)]
adding test for #28189

8 years agoAdd assertions to test_total_ord for str
Kevin Butler [Thu, 22 Oct 2015 02:19:14 +0000 (03:19 +0100)]
Add assertions to test_total_ord for str

8 years agoRemove unnecessary String allocations from str tests
Kevin Butler [Thu, 22 Oct 2015 02:14:11 +0000 (03:14 +0100)]
Remove unnecessary String allocations from str tests

8 years agoAuto merge of #29215 - fhahn:issue-28157-bad-semicolon, r=alexcrichton
bors [Sat, 24 Oct 2015 18:37:09 +0000 (18:37 +0000)]
Auto merge of #29215 - fhahn:issue-28157-bad-semicolon, r=alexcrichton

PR for #28157. At the moment, `rustc` emits a warning when a bare semicolon is encountered (could also be a fail, but I think this is a backwards incompatible change).

Also I am not sure where the best place for a test for that warning would be. Seems run-pass tests do not check warnings.

8 years agoAdd regression test for #26886
Manish Goregaokar [Sat, 24 Oct 2015 10:16:13 +0000 (15:46 +0530)]
Add regression test for #26886

(fixes #26886)

8 years agoAuto merge of #29259 - arielb1:supertrait-self-2, r=eddyb
bors [Sat, 24 Oct 2015 12:21:12 +0000 (12:21 +0000)]
Auto merge of #29259 - arielb1:supertrait-self-2, r=eddyb

…being it

This is a [breaking-change]:lang, but the broken code does not make
much sense.

Fixes #26056

r? @eddyb

8 years agorustllvm: Update to LLVM trunk
Seo Sanghyeon [Sat, 24 Oct 2015 09:42:23 +0000 (18:42 +0900)]
rustllvm: Update to LLVM trunk

8 years agoAuto merge of #29260 - GuillaumeGomez:E0211_improvement, r=Manishearth
bors [Sat, 24 Oct 2015 09:15:14 +0000 (09:15 +0000)]
Auto merge of #29260 - GuillaumeGomez:E0211_improvement, r=Manishearth

r? @Manishearth

cc #29248

8 years agoAuto merge of #29252 - steveklabnik:safety, r=alexcrichton
bors [Sat, 24 Oct 2015 06:26:50 +0000 (06:26 +0000)]
Auto merge of #29252 - steveklabnik:safety, r=alexcrichton

Follow https://doc.rust-lang.org/book/documentation.html#special-sections

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 agoAdd test for #22403
Andrew Paseltiner [Sat, 24 Oct 2015 00:15:33 +0000 (20:15 -0400)]
Add test for #22403

Closes #22403.

8 years agoReference #28260 in the README
Bryce Van Dyk [Sat, 24 Oct 2015 00:13:01 +0000 (13:13 +1300)]
Reference #28260 in the README

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 agoImprove E0211 error diagnostic
Guillaume Gomez [Fri, 23 Oct 2015 21:55:56 +0000 (23:55 +0200)]
Improve E0211 error diagnostic

8 years agoAllow bare semicolon in grammar doc, closes #28157
Florian Hahn [Fri, 23 Oct 2015 22:45:18 +0000 (00:45 +0200)]
Allow bare semicolon in grammar doc, closes #28157

8 years agoRemove bare semicolons
Florian Hahn [Wed, 21 Oct 2015 16:20:46 +0000 (18:20 +0200)]
Remove bare semicolons

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 agoobject_safety: check whether a supertrait contains Self even without being it
Ariel Ben-Yehuda [Fri, 23 Oct 2015 21:01:11 +0000 (00:01 +0300)]
object_safety: check whether a supertrait contains Self even without being it

This is a [breaking-change]:lang, but the broken code does not make
much sense.

Fixes #26056

8 years agoAdd a regression test for #29122 (fixed in #29134)
William Throwe [Sun, 18 Oct 2015 19:24:08 +0000 (15:24 -0400)]
Add a regression test for #29122 (fixed in #29134)

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 agostd: Add more entries to stdtest base_port
Alex Crichton [Fri, 23 Oct 2015 17:50:53 +0000 (10:50 -0700)]
std: Add more entries to stdtest base_port

The new bots we have may conflict with one another on base ports, causing tests
to fail. For example the linux-musl-64-opt and linux-64-opt bots are using the
same base port right now, causing some spurious failures every now and then.

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 agoUnsafety -> Safety in doc headings
Steve Klabnik [Fri, 23 Oct 2015 15:42:14 +0000 (11:42 -0400)]
Unsafety -> Safety in doc headings

Follow https://doc.rust-lang.org/book/documentation.html#special-sections

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 agoUpdate readme to reflect #28260 and a workaround
Bryce Van Dyk [Thu, 22 Oct 2015 08:52:17 +0000 (21:52 +1300)]
Update readme to reflect #28260 and a workaround

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