]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRollup merge of #60056 - topecongiro:rustfmt-1.2.1, r=alexcrichton
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:19 +0000 (06:03 +0200)]
Rollup merge of #60056 - topecongiro:rustfmt-1.2.1, r=alexcrichton

Update rustfmt to 1.2.1

5 years agoRollup merge of #60052 - varkor:unused-parameter-diagnostic, r=estebank
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:17 +0000 (06:03 +0200)]
Rollup merge of #60052 - varkor:unused-parameter-diagnostic, r=estebank

Correct unused parameter diagnostic

The message was incorrect for unused lifetime parameters. There's no need to be specific.

5 years agoRollup merge of #60045 - estebank:suggest-std, r=petrochenkov
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:16 +0000 (06:03 +0200)]
Rollup merge of #60045 - estebank:suggest-std, r=petrochenkov

Suggest appropriate path when calling associated item on bare types

When looking at the documentation for `std::f32` or `std::str`, for
example, it is easy to get confused and assume `std::f32` and `f32`
are the same thing. Because of this, it is not uncommon to attempt
writing `f32::consts::PI` instead of the correct
`std::f32::consts::PI`. When encountering the former, which results
in an access error due to it being an inexistent path, try to access
the same path under `std`. If this succeeds, this information is
stored for later tweaking of the final E0599 to provide an
appropriate suggestion.

Fix #26760, fix #46660.

5 years agoRollup merge of #60041 - jnferner:patch-1, r=shepmaster
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:14 +0000 (06:03 +0200)]
Rollup merge of #60041 - jnferner:patch-1, r=shepmaster

Simplify the returning of a Result a bit

5 years agoRollup merge of #60032 - rust-lang:remove-unwanted-z-index, r=QuietMisdreavus
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:13 +0000 (06:03 +0200)]
Rollup merge of #60032 - rust-lang:remove-unwanted-z-index, r=QuietMisdreavus

Remove unwanted z-index change

Fixes #60031.

r? @QuietMisdreavus

5 years agoRollup merge of #60023 - koalatux:nth-back, r=scottmcm
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:12 +0000 (06:03 +0200)]
Rollup merge of #60023 - koalatux:nth-back, r=scottmcm

implement specialized nth_back() for Bytes, Fuse and Enumerate

Hi,

After my first PR has been successfully merged, here is my second pull request :-)

Also this PR contains some specializations for the problem discussed in #54054.

5 years agoRollup merge of #59933 - sourcefrog:doc-fmt, r=shepmaster
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:10 +0000 (06:03 +0200)]
Rollup merge of #59933 - sourcefrog:doc-fmt, r=shepmaster

Make clear that format padding doesn't work for Debug

As mentioned in
https://github.com/rust-lang/rust/issues/46006#issuecomment-345260633

5 years agoRollup merge of #59915 - michaelwoerister:sp-event-filters-1, r=wesleywiser
Mazdak Farrokhzad [Fri, 19 Apr 2019 04:03:09 +0000 (06:03 +0200)]
Rollup merge of #59915 - michaelwoerister:sp-event-filters-1, r=wesleywiser

Implement event filtering for self-profiler.

This is a first sketch for event filtering in the self-profiler, something that we'll want in order to keep profiling overhead low in the common case. The PR contains the commits from https://github.com/rust-lang/rust/pull/59515 and, for the moment, is meant for performance testing.

r? @wesleywiser

5 years agoSuggest appropriate path when calling associated item on bare types
Esteban Küber [Wed, 17 Apr 2019 17:24:50 +0000 (10:24 -0700)]
Suggest appropriate path when calling associated item on bare types

When looking at the documentation for `std::f32` or `std::str`, for
example, it is easy to get confused and assume `std::f32` and `f32`
are the same thing. Because of this, it is not uncommon to attempt
writing `f32::consts::PI` instead of the correct
`std::f32::consts::PI`. When encountering the former, which results
in an access error due to it being an inexistent path, try to access
the same path under `std`. If this succeeds, this information is
stored for later tweaking of the final E0599 to provide an
appropriate suggestion.

This suggestion applies to both E0233 and E0599 and is only checked
when the first ident of a path corresponds to a primitive type.

5 years agoAuto merge of #60046 - euclio:missing-error-code-descriptions, r=estebank
bors [Thu, 18 Apr 2019 21:26:53 +0000 (21:26 +0000)]
Auto merge of #60046 - euclio:missing-error-code-descriptions, r=estebank

hide `--explain` hint if error has no extended info

Fixes #59848.

r? @estebank

5 years agoAuto merge of #58702 - taiki-e:libcore-2018, r=Centril
bors [Thu, 18 Apr 2019 17:48:21 +0000 (17:48 +0000)]
Auto merge of #58702 - taiki-e:libcore-2018, r=Centril

libcore => 2018

Transitions `libcore` to Rust 2018; cc #58099

r? @Centril

5 years agoUpdate tests
varkor [Wed, 17 Apr 2019 21:41:34 +0000 (22:41 +0100)]
Update tests

5 years agohide `--explain` hint if error has no extended info
Andy Russell [Wed, 17 Apr 2019 17:26:38 +0000 (13:26 -0400)]
hide `--explain` hint if error has no extended info

5 years agoImplement event filtering for self-profiler.
Michael Woerister [Fri, 12 Apr 2019 12:48:41 +0000 (14:48 +0200)]
Implement event filtering for self-profiler.

5 years agoAuto merge of #60025 - JohnTitor:rename-files, r=petrochenkov
bors [Thu, 18 Apr 2019 14:52:45 +0000 (14:52 +0000)]
Auto merge of #60025 - JohnTitor:rename-files, r=petrochenkov

Rename files about error codes

fixes #60017

This PR will be failed in tidy.

<details>
<summary>The log is here:</summary>

```
tidy check
tidy error: duplicate error code: 411
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:83:             __diagnostic_used!(E0411);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:84:             err.code(DiagnosticId::Error("E0411".to_owned()));
tidy error: duplicate error code: 424
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:90:             debug!("smart_resolve_path_fragment: E0424, source={:?}", source);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:92:             __diagnostic_used!(E0424);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:93:             err.code(DiagnosticId::Error("E0424".to_owned()));
some tidy checks failed
```

</details>

I'd like to fix this but I don't know what to do.
I will work on later. Please let me know if you have any solutions.

r? @petrochenkov

5 years agoAuto merge of #60071 - RalfJung:miri, r=oli-obk
bors [Thu, 18 Apr 2019 11:55:13 +0000 (11:55 +0000)]
Auto merge of #60071 - RalfJung:miri, r=oli-obk

update miri

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

5 years agoupdate miri
Ralf Jung [Thu, 18 Apr 2019 09:05:10 +0000 (11:05 +0200)]
update miri

5 years agoAuto merge of #60058 - varkor:const-generics-ty-refactor, r=cramertj
bors [Thu, 18 Apr 2019 08:58:45 +0000 (08:58 +0000)]
Auto merge of #60058 - varkor:const-generics-ty-refactor, r=cramertj

Make const parameters enforce no variance constraints

Fixes https://github.com/rust-lang/rust/issues/60047. Also includes some minor const refactoring for convenience.

5 years agoAuto merge of #60048 - estebank:issue-54954, r=sanxiyn
bors [Thu, 18 Apr 2019 06:00:06 +0000 (06:00 +0000)]
Auto merge of #60048 - estebank:issue-54954, r=sanxiyn

Fix ICE on const evaluation of const method

Fix #54954.

5 years agoUpdate stdsimd
Taiki Endo [Thu, 18 Apr 2019 05:51:11 +0000 (14:51 +0900)]
Update stdsimd

5 years agolibcore => 2018
Taiki Endo [Mon, 15 Apr 2019 02:23:21 +0000 (11:23 +0900)]
libcore => 2018

5 years agoSimplify the returning of a Result a bit
Jan Nils Ferner [Wed, 17 Apr 2019 14:02:17 +0000 (16:02 +0200)]
Simplify the returning of a Result a bit

5 years agoAuto merge of #60051 - estebank:fn-sugg, r=davidtwco
bors [Thu, 18 Apr 2019 03:06:17 +0000 (03:06 +0000)]
Auto merge of #60051 - estebank:fn-sugg, r=davidtwco

Do not mention missing `PartialOrd` impl when involving uncalled fns

5 years agoreview comment: add extra doc
Esteban Küber [Wed, 17 Apr 2019 23:42:52 +0000 (16:42 -0700)]
review comment: add extra doc

5 years agoAdd a test for unused const parameters
varkor [Wed, 17 Apr 2019 23:30:27 +0000 (00:30 +0100)]
Add a test for unused const parameters

5 years agoConst parameters should impose no variance constraints
varkor [Wed, 17 Apr 2019 23:30:17 +0000 (00:30 +0100)]
Const parameters should impose no variance constraints

5 years agoAdd a FIXME to collector
varkor [Wed, 17 Apr 2019 22:12:53 +0000 (23:12 +0100)]
Add a FIXME to collector

5 years agoAdd own_requires_monomorphization
varkor [Wed, 17 Apr 2019 22:09:22 +0000 (23:09 +0100)]
Add own_requires_monomorphization

5 years agoUpdate rustfmt to 1.2.1
topecongiro [Wed, 17 Apr 2019 22:42:18 +0000 (07:42 +0900)]
Update rustfmt to 1.2.1

5 years agoAuto merge of #60054 - Centril:rollup-o40xxaa, r=Centril
bors [Wed, 17 Apr 2019 22:24:11 +0000 (22:24 +0000)]
Auto merge of #60054 - Centril:rollup-o40xxaa, r=Centril

Rollup of 4 pull requests

Successful merges:

 - #59908 (Re-export core::str::{EscapeDebug, EscapeDefault, EscapeUnicode} in std)
 - #59984 (Remove collection-specific `with_capacity` documentation from `std::collections`)
 - #60036 (Remove nrc from toolstate pings)
 - #60037 (Resolve inconsistency in error messages between "parameter" and "variable".)

Failed merges:

r? @ghost

5 years agoRollup merge of #60037 - eddyb:actually-its-param, r=estebank
Mazdak Farrokhzad [Wed, 17 Apr 2019 22:23:40 +0000 (00:23 +0200)]
Rollup merge of #60037 - eddyb:actually-its-param, r=estebank

Resolve inconsistency in error messages between "parameter" and "variable".

The inconsistency was introduced in 104fe1c4db24f860b890dfd25577f23ee111279a (#33619), when a label saying `type variable` was added to an error with a message talking about `type parameters`.
Given that `parameter` is far more prevalent when referring to generics in the context of Rust, IMO it should be that in both the message and the label.

r? @nikomatsakis or @estebank

5 years agoRollup merge of #60036 - rust-lang:nrc-patch-1, r=Xanewok
Mazdak Farrokhzad [Wed, 17 Apr 2019 22:23:39 +0000 (00:23 +0200)]
Rollup merge of #60036 - rust-lang:nrc-patch-1, r=Xanewok

Remove nrc from toolstate pings

🙉

5 years agoRollup merge of #59984 - gluyas:collections-with_capacity-doc-fix, r=rkruppe
Mazdak Farrokhzad [Wed, 17 Apr 2019 22:23:38 +0000 (00:23 +0200)]
Rollup merge of #59984 - gluyas:collections-with_capacity-doc-fix, r=rkruppe

Remove collection-specific `with_capacity` documentation from `std::collections`

Fixes #59931

The style of `std::collections` module doc is very much a beginner friendly guide, and documenting niche, collection-specific behaviour feels out of place, if not brittle.

The note about `VecDeque` is outdated (see issue), and while `Vec` probably won't change its guarantees any time soon, the users who are interested in its allocation properties will find that in its own documentation.

5 years agoRollup merge of #59908 - lzutao:str_escape, r=SimonSapin
Mazdak Farrokhzad [Wed, 17 Apr 2019 22:23:36 +0000 (00:23 +0200)]
Rollup merge of #59908 - lzutao:str_escape, r=SimonSapin

Re-export core::str::{EscapeDebug, EscapeDefault, EscapeUnicode} in std

cc #59893

5 years agoCorrect E0392 diagnostic
varkor [Wed, 17 Apr 2019 21:41:30 +0000 (22:41 +0100)]
Correct E0392 diagnostic

5 years agoDo not mention missing `PartialOrd` impl when involving uncalled fns
Esteban Küber [Wed, 17 Apr 2019 21:37:50 +0000 (14:37 -0700)]
Do not mention missing `PartialOrd` impl when involving uncalled fns

5 years agoRename module
Yuki OKUSHI [Wed, 17 Apr 2019 21:27:30 +0000 (06:27 +0900)]
Rename module

5 years agoRemove unnecessary condition
Yuki OKUSHI [Wed, 17 Apr 2019 21:22:48 +0000 (06:22 +0900)]
Remove unnecessary condition

5 years agoRename diagnositc_list into error_codes
Yuki OKUSHI [Wed, 17 Apr 2019 21:21:30 +0000 (06:21 +0900)]
Rename diagnositc_list into error_codes

5 years agoRename files in doc
Yuki OKUSHI [Wed, 17 Apr 2019 21:20:07 +0000 (06:20 +0900)]
Rename files in doc

5 years agoAuto merge of #59527 - matklad:sized-index, r=Centril
bors [Wed, 17 Apr 2019 19:18:51 +0000 (19:18 +0000)]
Auto merge of #59527 - matklad:sized-index, r=Centril

Add test checking that Index<T: ?Sized> works

I've noticed that we have an `Idx: ?Sized` bound on the **index** in the `Index`, which seems strange given that we accept index by value. My guess is that it was meant to be removed in https://github.com/rust-lang/rust/pull/23601, but was overlooked.

If I remove this bound, `./x.py src/libstd/ src/libcore/` passes, which means at least that this is not covered by test.

I think there's three things we can do here:

* run crater with the bound removed to check if there are any regressions, and merge this, to be consistent with other operator traits
* run crater, get regressions, write a test for this with a note that "hey, we tried to fix it, its unfixable"
* decide, in the light of by-value DSTs, that this is a feature rather than a bug, and add a test

cc @rust-lang/libs

EDIT: the forth alternative is that there exist a genuine reason why this is the case, but I failed to see it :D

5 years agoFix ICE on const evaluation of const method
Esteban Küber [Wed, 17 Apr 2019 19:00:35 +0000 (12:00 -0700)]
Fix ICE on const evaluation of const method

5 years agoAuto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn
bors [Wed, 17 Apr 2019 16:23:25 +0000 (16:23 +0000)]
Auto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn

Fix the max value of usize on 16-bit platforms

5 years agoAuto merge of #60034 - rasendubi:fix-comments, r=Centril
bors [Wed, 17 Apr 2019 13:26:29 +0000 (13:26 +0000)]
Auto merge of #60034 - rasendubi:fix-comments, r=Centril

Small comments fix

- Fix comments around test harness generation
- Promote regular comments to rustdoc comments

5 years agoadd a test for unsized index
Aleksey Kladov [Tue, 16 Apr 2019 21:11:19 +0000 (00:11 +0300)]
add a test for unsized index

5 years agoResolve inconsistency in error messages between "parameter" and "variable".
Eduard-Mihai Burtescu [Wed, 17 Apr 2019 10:19:58 +0000 (13:19 +0300)]
Resolve inconsistency in error messages between "parameter" and "variable".

5 years agoRemove nrc from toolstate pings
Nick Cameron [Wed, 17 Apr 2019 10:07:13 +0000 (22:07 +1200)]
Remove nrc from toolstate pings

5 years agoAuto merge of #60030 - Centril:rollup-3d0t24t, r=Centril
bors [Wed, 17 Apr 2019 10:03:02 +0000 (10:03 +0000)]
Auto merge of #60030 - Centril:rollup-3d0t24t, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #59128 (Emit ansi color codes in the `rendered` field of json diagnostics)
 - #59646 (const fn: Improve wording)
 - #59986 (Miri: refactor new allocation tagging)
 - #60003 (LLD is not supported on Darwin)
 - #60018 (Miri now supports entropy, but is still slow)

Failed merges:

r? @ghost

5 years agoRename filename
Yuki OKUSHI [Wed, 17 Apr 2019 09:40:45 +0000 (18:40 +0900)]
Rename filename

5 years agoRename modules
Yuki OKUSHI [Tue, 16 Apr 2019 22:35:54 +0000 (07:35 +0900)]
Rename modules

5 years agoRename error_reporting to diagnostics
Yuki OKUSHI [Wed, 17 Apr 2019 09:21:17 +0000 (18:21 +0900)]
Rename error_reporting to diagnostics

5 years agoRename diagnostics to error_codes
Yuki OKUSHI [Wed, 17 Apr 2019 09:19:14 +0000 (18:19 +0900)]
Rename diagnostics to error_codes

5 years agoPromote regular comments to rustdoc comments
Alexey Shmalko [Wed, 17 Apr 2019 09:03:39 +0000 (12:03 +0300)]
Promote regular comments to rustdoc comments

5 years agoFix comments around test harness generation
Alexey Shmalko [Wed, 17 Apr 2019 09:02:04 +0000 (12:02 +0300)]
Fix comments around test harness generation

5 years agoRemove unwanted z-index change
Guillaume Gomez [Wed, 17 Apr 2019 08:42:10 +0000 (10:42 +0200)]
Remove unwanted z-index change

5 years agoRollup merge of #60018 - RalfJung:miri-test-libstd, r=oli-obk
Mazdak Farrokhzad [Wed, 17 Apr 2019 08:31:37 +0000 (10:31 +0200)]
Rollup merge of #60018 - RalfJung:miri-test-libstd, r=oli-obk

Miri now supports entropy, but is still slow

Adjust the `cfg` and their comments in the test suites accordingly.

5 years agoRollup merge of #60003 - petrhosek:llvm-lto-lld, r=cramertj
Mazdak Farrokhzad [Wed, 17 Apr 2019 08:31:36 +0000 (10:31 +0200)]
Rollup merge of #60003 - petrhosek:llvm-lto-lld, r=cramertj

LLD is not supported on Darwin

Don't enable LLD when LTO is enabled on Darwin.

5 years agoRollup merge of #59986 - RalfJung:miri-new-alloc, r=oli-obk
Mazdak Farrokhzad [Wed, 17 Apr 2019 08:31:35 +0000 (10:31 +0200)]
Rollup merge of #59986 - RalfJung:miri-new-alloc, r=oli-obk

Miri: refactor new allocation tagging

Tagging and initializing `AllocExtra` now go hand-in-hand so one cannot forget to do one when doing the other. In particular, `memory.allocate` is now much easier to use correctly (because it will already return a tagged pointer).

r? @oli-obk

5 years agoRollup merge of #59646 - JohnTitor:improve-wording, r=oli-obk
Mazdak Farrokhzad [Wed, 17 Apr 2019 08:31:33 +0000 (10:31 +0200)]
Rollup merge of #59646 - JohnTitor:improve-wording, r=oli-obk

const fn: Improve wording

fixes #59611

This might need discussion. Feel free to close this PR if we don't need to fix.

5 years agoRollup merge of #59128 - oli-obk:colorful_json, r=mark-i-m,eddyb
Mazdak Farrokhzad [Wed, 17 Apr 2019 08:31:30 +0000 (10:31 +0200)]
Rollup merge of #59128 - oli-obk:colorful_json, r=mark-i-m,eddyb

Emit ansi color codes in the `rendered` field of json diagnostics

cc @ljedrz

Implemented for https://github.com/rust-lang/rust/pull/56595#issuecomment-447645115 (x.py clippy)

5 years agotest sort_unstable in Miri
Ralf Jung [Wed, 17 Apr 2019 07:47:36 +0000 (09:47 +0200)]
test sort_unstable in Miri

5 years agoAuto merge of #60027 - jethrogb:jb/sgx-reentry-abort, r=cramertj
bors [Wed, 17 Apr 2019 07:05:39 +0000 (07:05 +0000)]
Auto merge of #60027 - jethrogb:jb/sgx-reentry-abort, r=cramertj

SGX target: change re-entry abort logic

Even though re-entry after exit is generally not acceptable, there is a race condition where the enclave thinks it's exited but userspace doesn't know that yet. An entry during that time will currently result in an enclave panic (see https://github.com/rust-lang/rust/pull/59997#issuecomment-483846291, https://github.com/rust-lang/rust/pull/60003#issuecomment-483888170). Instead of panicking, just do a regular exit on re-entry.

cc @jseyfried

5 years agoAuto merge of #59974 - Centril:boostrap-to-2019-04-11, r=pietroalbini,Mark-Simulacrum
bors [Wed, 17 Apr 2019 04:10:13 +0000 (04:10 +0000)]
Auto merge of #59974 - Centril:boostrap-to-2019-04-11, r=pietroalbini,Mark-Simulacrum

Bump bootstrap compiler to 2019-04-11

r? @pietroalbini
cc @Mark-Simulacrum
cc https://github.com/rust-lang/rust/pull/58702

5 years agobump bootstrap; remove redundant 'use libc;' on macOS.
Mazdak Farrokhzad [Wed, 17 Apr 2019 03:45:37 +0000 (05:45 +0200)]
bump bootstrap; remove redundant 'use libc;' on macOS.

5 years agoDeny `internal` in stage0
Mateusz Mikuła [Mon, 15 Apr 2019 11:35:08 +0000 (13:35 +0200)]
Deny `internal` in stage0

5 years agobump bootstrap; nightly => 1.36.
Mazdak Farrokhzad [Mon, 15 Apr 2019 02:37:47 +0000 (04:37 +0200)]
bump bootstrap; nightly => 1.36.

5 years agobump bootstrap; fix compiletest wrt. exclude_should_panic
Mazdak Farrokhzad [Mon, 15 Apr 2019 02:05:37 +0000 (04:05 +0200)]
bump bootstrap; fix compiletest wrt. exclude_should_panic

5 years agobump bootstrap; remove redundant imports.
Mazdak Farrokhzad [Sun, 14 Apr 2019 21:29:22 +0000 (23:29 +0200)]
bump bootstrap; remove redundant imports.

5 years agobump bootstrap => 2019-04-11
Mazdak Farrokhzad [Sun, 14 Apr 2019 20:35:42 +0000 (22:35 +0200)]
bump bootstrap => 2019-04-11

5 years agoSGX target: change re-entry abort logic
Jethro Beekman [Wed, 17 Apr 2019 01:07:29 +0000 (18:07 -0700)]
SGX target: change re-entry abort logic

5 years agoimplement nth_back for Enumerate
Adrian Friedli [Tue, 16 Apr 2019 21:45:59 +0000 (23:45 +0200)]
implement nth_back for Enumerate

5 years agoMiri: refactor new allocation tagging
Ralf Jung [Mon, 15 Apr 2019 08:05:13 +0000 (10:05 +0200)]
Miri: refactor new allocation tagging

5 years agoAuto merge of #59997 - ehuss:update-cargo, r=alexcrichton
bors [Tue, 16 Apr 2019 20:58:15 +0000 (20:58 +0000)]
Auto merge of #59997 - ehuss:update-cargo, r=alexcrichton

Update cargo

16 commits in 6f3e9c367abb497c64f360c3839dab5e74928d5c..b6581d383ed596b133e330011658c6f83cf85c2f
2019-04-04 14:11:33 +0000 to 2019-04-16 16:02:11 +0000
- Fix new_warning_with_corrupt_ws missing "USER". (rust-lang/cargo#6857)
- Ignore Clippy redundant_closure (rust-lang/cargo#6855)
- Pass OsStr/OsString args through to the process spawned by cargo run. (rust-lang/cargo#6849)
- Bump to 0.37.0 (rust-lang/cargo#6852)
- Fix test include_overrides_gitignore. (rust-lang/cargo#6850)
- Clarify optional registry key behaviour (rust-lang/cargo#6851)
- Ensure Summary::checksum works for registry crates (rust-lang/cargo#6842)
- Better error if PathSource::walk can't access something. (rust-lang/cargo#6841)
- Improve warning in `cargo new` with parse error. (rust-lang/cargo#6839)
- Improve error message for `publish` key restriction. (rust-lang/cargo#6838)
- Remove `Freshness` from `DependencyQueue` (rust-lang/cargo#6832)
- testsuite: cleanup for `alternative-registries` (rust-lang/cargo#6837)
- Improve error message to rerun a test in a workspace. (rust-lang/cargo#6824)
- Fix mutable_borrow_reservation_conflict warning. (rust-lang/cargo#6829)
- Add install-upgrade. (rust-lang/cargo#6798)
- Clarify docs of install without &lt;crate&gt; (rust-lang/cargo#6823)

5 years agoimplement nth_back for Fuse
Adrian Friedli [Tue, 16 Apr 2019 19:40:50 +0000 (21:40 +0200)]
implement nth_back for Fuse

5 years agoimplement nth_back for Bytes
Adrian Friedli [Tue, 16 Apr 2019 18:41:23 +0000 (20:41 +0200)]
implement nth_back for Bytes

5 years agoMiri now supports entropy, but is still slow
Ralf Jung [Tue, 16 Apr 2019 18:04:17 +0000 (20:04 +0200)]
Miri now supports entropy, but is still slow

5 years agoUpdate cargo
Eric Huss [Mon, 15 Apr 2019 19:47:33 +0000 (12:47 -0700)]
Update cargo

5 years agoFix the max value of usize on 16-bit platforms
Jakub Kądziołka [Tue, 16 Apr 2019 16:55:58 +0000 (18:55 +0200)]
Fix the max value of usize on 16-bit platforms

5 years agoAuto merge of #59879 - ebarnard:patch-1, r=alexcrichton
bors [Tue, 16 Apr 2019 16:04:12 +0000 (16:04 +0000)]
Auto merge of #59879 - ebarnard:patch-1, r=alexcrichton

Add a comment explaining why SecRandomCopyBytes is not used on MacOS

SecRandomCopyBytes is [available since MacOS 10.7](https://developer.apple.com/documentation/security/1399291-secrandomcopybytes?language=objc) which is the minimum supported version and which was suggested in https://github.com/rust-lang/rust/pull/58901#issuecomment-470188115 is the earliest version currently in use.

This matches the behaviour of other platforms which have a random number generator syscall available.

5 years agoDon't test json with color codes on windows
Oliver Scherer [Tue, 16 Apr 2019 13:53:37 +0000 (15:53 +0200)]
Don't test json with color codes on windows

5 years agoAdd a comment explaining why SecRandomCopyBytes is not used on MacOS
Ed Barnard [Thu, 11 Apr 2019 12:47:27 +0000 (13:47 +0100)]
Add a comment explaining why SecRandomCopyBytes is not used on MacOS

5 years agoAuto merge of #59769 - RalfJung:compiletest-normalization, r=alexcrichton
bors [Tue, 16 Apr 2019 10:18:17 +0000 (10:18 +0000)]
Auto merge of #59769 - RalfJung:compiletest-normalization, r=alexcrichton

compiletest normalization: preserve non-JSON lines such as ICEs

Currently, every non-JSON line from stderr gets normalized away when compiletest normalizes the output. In particular, ICEs get normalized to the empty output. That does not seem desirable, so this changes normalization to preserve non-JSON lines instead.

Also see https://github.com/laumann/compiletest-rs/issues/169: because of that bug, Miri currently *looks* green in the toolstate, but some tests ICE. That same bug is likely no longer present in latest compiletest because the error code gets checked separately, but it still seems like a good idea to also make sure that ICEs are considered stderr output:
This change found an accidental user-visible `error!` in CTFE validation (fixed), and a non-deterministic panic when there are two `main` symbols (not fixed, no idea where this comes from). Both got missed before because non-JSON output got ignored.

5 years agothis panic occurs not just on Windows, normalize it away everywhere
Ralf Jung [Tue, 16 Apr 2019 08:55:46 +0000 (10:55 +0200)]
this panic occurs not just on Windows, normalize it away everywhere

5 years agoAuto merge of #60007 - Centril:rollup-gdh1er4, r=Centril
bors [Tue, 16 Apr 2019 05:28:25 +0000 (05:28 +0000)]
Auto merge of #60007 - Centril:rollup-gdh1er4, r=Centril

Rollup of 6 pull requests

Successful merges:

 - #59717 (improve docs for std::hint::unreachable_unchecked())
 - #59903 (Continue evaluating after missing main)
 - #59973 (Fix rustdoc sidebar z-index)
 - #59992 (rustdoc: use --static-root-path for settings.js)
 - #59993 (include mode in unused binding suggestion span)
 - #60000 (Add repo-specific triagebot configuration)

Failed merges:

r? @ghost

5 years agoRollup merge of #60000 - pietroalbini:triagebot, r=Mark-Simulacrum
Mazdak Farrokhzad [Tue, 16 Apr 2019 03:14:26 +0000 (05:14 +0200)]
Rollup merge of #60000 - pietroalbini:triagebot, r=Mark-Simulacrum

Add repo-specific triagebot configuration

r? @Mark-Simulacrum
cc https://github.com/rust-lang/triagebot/pull/9

5 years agoRollup merge of #59993 - euclio:unused-ref-field, r=estebank
Mazdak Farrokhzad [Tue, 16 Apr 2019 03:14:25 +0000 (05:14 +0200)]
Rollup merge of #59993 - euclio:unused-ref-field, r=estebank

include mode in unused binding suggestion span

Fixes #54180.

5 years agoRollup merge of #59992 - QuietMisdreavus:static-settings-path, r=GuillaumeGomez
Mazdak Farrokhzad [Tue, 16 Apr 2019 03:14:24 +0000 (05:14 +0200)]
Rollup merge of #59992 - QuietMisdreavus:static-settings-path, r=GuillaumeGomez

rustdoc: use --static-root-path for settings.js

At the time i was writing https://github.com/rust-lang/docs.rs/pull/332, i noticed that the `settings.js` file that was being loaded was not being loaded from the `--static-root-path`. This PR fixes that so that users on docs.rs can effectively cache this file.

5 years agoRollup merge of #59973 - Enity:fix-rustdoc-sidebar, r=GuillaumeGomez
Mazdak Farrokhzad [Tue, 16 Apr 2019 03:14:22 +0000 (05:14 +0200)]
Rollup merge of #59973 - Enity:fix-rustdoc-sidebar, r=GuillaumeGomez

Fix rustdoc sidebar z-index

I think the screenshot will say everything:
![image](https://user-images.githubusercontent.com/2884517/56098429-37fa3680-5f09-11e9-8c54-4e2548aa0818.png)

live example: https://docs.rs/nom/4.2.3/nom/

I chose the smallest z-index to avoid problems with other blocks.

5 years agoRollup merge of #59903 - estebank:after-main, r=oli-obk
Mazdak Farrokhzad [Tue, 16 Apr 2019 03:14:21 +0000 (05:14 +0200)]
Rollup merge of #59903 - estebank:after-main, r=oli-obk

Continue evaluating after missing main

5 years agoRollup merge of #59717 - Reconcyl:master, r=steveklabnik
Mazdak Farrokhzad [Tue, 16 Apr 2019 03:14:17 +0000 (05:14 +0200)]
Rollup merge of #59717 - Reconcyl:master, r=steveklabnik

improve docs for std::hint::unreachable_unchecked()

Fixes #59549

5 years agoAuto merge of #59990 - bjorn3:nicer_compiletest_errors, r=alexcrichton
bors [Tue, 16 Apr 2019 02:34:16 +0000 (02:34 +0000)]
Auto merge of #59990 - bjorn3:nicer_compiletest_errors, r=alexcrichton

Use resume_unwind instead of panic!() for nicer compiletest errors

cc https://github.com/rust-lang/rust/pull/58783#issuecomment-477287606

5 years agoLLD is not supported on Darwin
Petr Hosek [Mon, 15 Apr 2019 23:38:36 +0000 (16:38 -0700)]
LLD is not supported on Darwin

Don't enable LLD when LTO is enabled on Darwin.

5 years agoFix tests
Yuki OKUSHI [Mon, 15 Apr 2019 22:32:29 +0000 (07:32 +0900)]
Fix tests

5 years agoMake wording verbose
Yuki OKUSHI [Mon, 15 Apr 2019 22:32:19 +0000 (07:32 +0900)]
Make wording verbose

5 years agoadd repo-specific triagebot configuration
Pietro Albini [Mon, 15 Apr 2019 21:52:59 +0000 (23:52 +0200)]
add repo-specific triagebot configuration

5 years agonormalize away some Windows-only panic printing
Ralf Jung [Mon, 15 Apr 2019 21:09:14 +0000 (23:09 +0200)]
normalize away some Windows-only panic printing

5 years agoAuto merge of #59926 - pietroalbini:android-sdk-manager, r=alexcrichton
bors [Mon, 15 Apr 2019 19:24:35 +0000 (19:24 +0000)]
Auto merge of #59926 - pietroalbini:android-sdk-manager, r=alexcrichton

ci: use a custom android sdk manager with pinning and mirroring

Google's own sdkmanager has two issues that make it unsuitable for us:

* Mirroring has to be done manually, which is annoying because we need to figure out on our own all the URLs to copy (I couldn't find any documentation when building this PR, had to use mitmproxy).
* There is no support for pinning, which means an update on Google's side can break our CI, as it happened multiple times.

This PR replaces all our usage of sdkmanager with a custom Python script which mimics its behavior, but with the two issues fixes.

sdkmanager's logic for installing packages is thankfully very simple: the package name (like `system-images;android-18;default;armeabi-v7a`) is the directory where the package should live (with `;` replaced with `/`), so to install a package we only need to extract its contents in the right directory.

r? @alexcrichton
cc @kennytm
fixes https://github.com/rust-lang/rust/issues/59778

5 years agochange word wrapping mode
vlad-boroda [Mon, 15 Apr 2019 17:18:53 +0000 (20:18 +0300)]
change word wrapping mode

5 years agoinclude mode in unused binding suggestion span
Andy Russell [Mon, 15 Apr 2019 17:09:37 +0000 (13:09 -0400)]
include mode in unused binding suggestion span

5 years agoAuto merge of #59991 - Centril:rollup-bqxt4w3, r=Centril
bors [Mon, 15 Apr 2019 16:24:19 +0000 (16:24 +0000)]
Auto merge of #59991 - Centril:rollup-bqxt4w3, r=Centril

Rollup of 6 pull requests

Successful merges:

 - #59648 (Add must_use annotations to Result::is_ok and is_err)
 - #59748 (Add summary and reference to Rust trademark guide)
 - #59779 (Uplift `get_def_path` from Clippy)
 - #59955 (bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent)
 - #59978 (rustdoc: Remove default keyword from re-exported trait methods)
 - #59989 (Fix links to Atomic* in RELEASES.md)

Failed merges:

r? @ghost