Commit Graph

92382 Commits

Author SHA1 Message Date
bors
c132c96a6d 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 <crate> (rust-lang/cargo#6823)
2019-04-16 20:58:15 +00:00
Adrian Friedli
fae2a68ba2
implement nth_back for Fuse 2019-04-16 21:40:50 +02:00
Adrian Friedli
cc2689a253
implement nth_back for Bytes 2019-04-16 20:41:23 +02:00
Ralf Jung
9b21324db2 Miri now supports entropy, but is still slow 2019-04-16 20:04:17 +02:00
Eric Huss
df7445b780 Update cargo 2019-04-16 11:01:01 -07:00
Jakub Kądziołka
d9c42d5c84
Fix the max value of usize on 16-bit platforms 2019-04-16 18:55:58 +02:00
bors
70f130954d 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.
2019-04-16 16:04:12 +00:00
Oliver Scherer
5c6a43a58b Don't test json with color codes on windows 2019-04-16 17:35:49 +02:00
Saleem Jaffer
d0c0815f01 fixing tests 2019-04-16 19:29:45 +05:30
Ed Barnard
f1da89a667 Add a comment explaining why SecRandomCopyBytes is not used on MacOS 2019-04-16 13:58:44 +01:00
Saleem Jaffer
63b4764556 refactor ExprKind to use new PointerCast enum 2019-04-16 17:36:41 +05:30
bors
3b27b4f592 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.
2019-04-16 10:18:17 +00:00
Ralf Jung
28c4397b28 this panic occurs not just on Windows, normalize it away everywhere 2019-04-16 10:55:46 +02:00
Saleem Jaffer
6321a323cc refactor Adjustment to use new PointerCast enum 2019-04-16 13:40:04 +05:30
bors
a7cef0bf08 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
2019-04-16 05:28:25 +00:00
Mazdak Farrokhzad
67ff8cfde8
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
2019-04-16 05:14:26 +02:00
Mazdak Farrokhzad
a95ca298a6
Rollup merge of #59993 - euclio:unused-ref-field, r=estebank
include mode in unused binding suggestion span

Fixes #54180.
2019-04-16 05:14:25 +02:00
Mazdak Farrokhzad
426e747b7e
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.
2019-04-16 05:14:24 +02:00
Mazdak Farrokhzad
9014cfcee4
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.
2019-04-16 05:14:22 +02:00
Mazdak Farrokhzad
bdf2473289
Rollup merge of #59903 - estebank:after-main, r=oli-obk
Continue evaluating after missing main
2019-04-16 05:14:21 +02:00
Mazdak Farrokhzad
d9422f00a0
Rollup merge of #59717 - Reconcyl:master, r=steveklabnik
improve docs for std::hint::unreachable_unchecked()

Fixes #59549
2019-04-16 05:14:17 +02:00
bors
7cb933a616 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
2019-04-16 02:34:16 +00:00
Petr Hosek
eb8e4265ab LLD is not supported on Darwin
Don't enable LLD when LTO is enabled on Darwin.
2019-04-15 16:38:36 -07:00
Yuki OKUSHI
407541552b Fix tests 2019-04-16 07:32:29 +09:00
Yuki OKUSHI
dce86f9dd5 Make wording verbose 2019-04-16 07:32:19 +09:00
Pietro Albini
3db489bdcf
add repo-specific triagebot configuration 2019-04-15 23:52:59 +02:00
Ralf Jung
581c1ab730 normalize away some Windows-only panic printing 2019-04-15 23:09:14 +02:00
bors
2975a3c4be 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
2019-04-15 19:24:35 +00:00
vlad-boroda
9e171937b6 change word wrapping mode 2019-04-15 20:18:53 +03:00
Andy Russell
74560f3ab3
include mode in unused binding suggestion span 2019-04-15 13:09:37 -04:00
bors
07133ac70c 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
2019-04-15 16:24:19 +00:00
Mazdak Farrokhzad
6434fe9ef5
Rollup merge of #59989 - dima74:patch-1, r=jonas-schievink
Fix links to Atomic* in RELEASES.md
2019-04-15 18:23:48 +02:00
Mazdak Farrokhzad
fb2ce84f1d
Rollup merge of #59978 - ollie27:rustdoc_default, r=QuietMisdreavus
rustdoc: Remove default keyword from re-exported trait methods

Fixes #59977

r? @QuietMisdreavus

As this fixes a stable to beta regression, could it be backported?
2019-04-15 18:23:47 +02:00
Mazdak Farrokhzad
c712d38634
Rollup merge of #59955 - RalfJung:stdsimd, r=alexcrichton
bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent

I made `intra_doc_link_resolution_failure` warn so that it would properly respect `deny-warnings = false` in `config.toml`.  `#[warn]` still become errors with `-D warnings` so I thought this was fine.

Turns out however that we don't pass `-D warnings` when running rustdoc, so for additional rustdoc-lints we need to set them to `deny`.

Also sue the opportunity to make the lint flags more consistent between libcore, liballoc, libstd.

Cc @gnzlbg for the *big* stdsimd update.
2019-04-15 18:23:45 +02:00
Mazdak Farrokhzad
cf1697f726
Rollup merge of #59779 - flip1995:uplift_get_def_path, r=Manishearth
Uplift `get_def_path` from Clippy

cc rust-lang/rust-clippy#3926
cc #59738

This uplifts `get_def_path` from Clippy. This is a follow up on the
implementation of internal lints: #59316

The internal lint implementation also copied the implementation of the
`AbsolutePathPrinter`. To get rid of this code duplication this also
uplifts the `get_def_path` function from Clippy.

This also renames `match_path` to `match_def_path`, as it was originally
named in Clippy.

r? @Manishearth
2019-04-15 18:23:43 +02:00
Mazdak Farrokhzad
b13291f6a7
Rollup merge of #59748 - agnxy:trademark, r=skade
Add summary and reference to Rust trademark guide

Fix #53287
cc @steveklabnik
2019-04-15 18:23:41 +02:00
Mazdak Farrokhzad
92702c1cff
Rollup merge of #59648 - alex:must-use-result, r=alexcrichton
Add must_use annotations to Result::is_ok and is_err

Discussed in #59610
2019-04-15 18:23:39 +02:00
QuietMisdreavus
1c0e1c10d5 use --static-root-path for settings.js 2019-04-15 11:20:08 -05:00
bjorn3
dc08f5519f Use resume_unwind instead of panic!() for nicer compiletest errors 2019-04-15 18:03:30 +02:00
Saleem Jaffer
5be6b0beb9 basic refactor. Adding PointerCast enum 2019-04-15 20:29:13 +05:30
Ralf Jung
50c615baa2 warn(missing_docs) in liballoc, and add missing docs 2019-04-15 16:35:50 +02:00
Dmitry Murzin
3b61a08794
Fix links to Atomic* in RELEASES.md 2019-04-15 17:19:38 +03:00
bors
9217fe0e2f Auto merge of #59850 - Zoxc:symbols-attrs, r=petrochenkov
Preallocate BUILTIN_ATTRIBUTES symbols

Builds on https://github.com/rust-lang/rust/pull/59655

r? @petrochenkov
2019-04-15 13:24:15 +00:00
John Kåre Alsaker
cf3a256159 Update test 2019-04-15 15:20:07 +02:00
John Kåre Alsaker
b82ab24bbf Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of looping 2019-04-15 15:20:05 +02:00
bors
fcf850f34a Auto merge of #59655 - Zoxc:symbols, r=petrochenkov
Use a proc macro to declare preallocated symbols

r? @petrochenkov
2019-04-15 10:03:39 +00:00
Marc
64dc041511 Remove collection-specific with_capacity doc from std::collections
Fixes #59931
2019-04-15 20:30:52 +12:00
bors
1edb01b7af Auto merge of #59626 - nnethercote:DepGraph-1.02x, r=Zoxc
Reduce the `DepNode` pre-allocation ratio.

A code size of increase of 15% is overly generous. 2% is more realistic.

This change reduces peak memory size by 20+ MiB on some workloads.

r? @Zoxc
2019-04-15 07:12:16 +00:00
John Kåre Alsaker
f598091c05 Use colon for keyword defs 2019-04-15 07:23:04 +02:00
John Kåre Alsaker
baebf79057 Move modules outside the proc macro 2019-04-15 07:23:04 +02:00