Commit graph

92172 commits

Author SHA1 Message Date
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
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
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
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
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
John Kåre Alsaker
afeda72dad Ensure the symbols are pure strings 2019-04-15 07:23:02 +02:00
John Kåre Alsaker
61a7a60d45 Make check_name generic 2019-04-15 07:23:02 +02:00
John Kåre Alsaker
10855a36b5 Use a proc macro to declare preallocated symbols 2019-04-15 07:23:01 +02:00
Nicholas Nethercote
304a7be7a8 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.
2019-04-15 14:00:17 +10:00
bors
a55f6be428 Auto merge of #59982 - stepancheg:hasher-no-unsafe, r=rkruppe
Hasher: replace unsafe trasmute with to_ne_bytes

Spead the knowledge of `to_ne_bytes` functions existence.
2019-04-15 02:24:21 +00:00
Stepan Koltsov
fd4ac0e26c Hasher: replace unsafe trasmute with to_ne_bytes
Spead the knowledge of `to_ne_bytes` functions existence.
2019-04-15 00:33:10 +01:00
bors
c090ab471d Auto merge of #59965 - Manishearth:clippyup, r=Xanewok
Update clippy

One of our tests using the alloc crate broke because alloc was stabilized.

r? @oli-obk
2019-04-14 23:30:48 +00:00
Manish Goregaokar
feaf2ae319 Update clippy 2019-04-14 15:56:58 -07:00
Oliver Middleton
1db76c1bff rustdoc: Remove default keyword from re-exported trait methods 2019-04-14 23:55:14 +01:00
bors
aa99abeb26 Auto merge of #59335 - Aaron1011:fix/extern-priv-final, r=Aaron1011
Properly parse '--extern-private' with name and path

It turns out that https://github.com/rust-lang/rust/pull/57586 didn't properly parse `--extern-private name=path`.

This PR properly implements the `--extern-private` option. I've added a new `extern-private` option to `compiletest`, which causes an `--extern-private` option to be passed to the compiler with the proper path.

Part of https://github.com/rust-lang/rust/issues/44663
2019-04-14 19:47:40 +00:00
Aaron Hill
5cd51b1d84
Fix typo in comment 2019-04-14 15:45:19 -04:00
Aaron Hill
7ba8a9e685
Fix Windows dll name format 2019-04-14 15:45:19 -04:00
Aaron Hill
3c7c2c6ca7
Handle --extern-private properly on musl
On musl (and some other platforms), compiletest ends up creating a static rlib
(instead of a dylib) when building 'aux-build' crates.

This commit changes the '--extern-private' path computed by compiletest
to properly take this into account
2019-04-14 15:45:18 -04:00
Aaron Hill
4dfce34912
Derive Default for ExternEntry 2019-04-14 15:45:18 -04:00
Aaron Hill
872c20d415
Fix ExternEntry test 2019-04-14 15:45:18 -04:00
Aaron Hill
724f6a11b3
Update rustdoc to new ExternEntry format 2019-04-14 15:45:18 -04:00
Aaron Hill
482b77a147
Refactor structure of ExternEntry 2019-04-14 15:45:18 -04:00
Aaron Hill
b23a8830f9
Move new_public to 'tess' module 2019-04-14 15:45:18 -04:00
Aaron Hill
0f88106940
Improve formatting 2019-04-14 15:45:18 -04:00
Aaron Hill
87734b1f25
Fix tests 2019-04-14 15:45:03 -04:00
bors
9cd61f025b Auto merge of #59967 - Centril:rollup-bdqq7ux, r=Centril
Rollup of 7 pull requests

Successful merges:

 - #59856 (update polonius-engine)
 - #59877 (HirIdify hir::Def)
 - #59896 (Remove duplicated redundant spans)
 - #59900 (Remove [mut] syntax in pin docs)
 - #59906 (Make BufWriter use get_mut instead of manipulating inner in Write implementation)
 - #59936 (Fix cross-crate visibility of fictive variant constructors)
 - #59957 (Add missing backtick to Symbol documentation.)

Failed merges:

r? @ghost
2019-04-14 17:00:16 +00:00
Mazdak Farrokhzad
c348bb69d6
Rollup merge of #59957 - krk:fix-doctypo-symbol, r=jonas-schievink
Add missing backtick to Symbol documentation.
2019-04-14 17:49:27 +02:00
Mazdak Farrokhzad
9506f62a7a
Rollup merge of #59936 - petrochenkov:confict, r=davidtwco
Fix cross-crate visibility of fictive variant constructors

After merging https://github.com/rust-lang/rust/pull/59376 I realized that the code in the decoder wasn't entirely correct - we "decoded" fictive variant constructors with their variant's visibility, which could be public, rather than demoted to `pub(crate)`.

Fictive constructors are not directly usable in expression/patterns, but the effect still can be observed with imports.

r? @davidtwco
2019-04-14 17:49:26 +02:00
Mazdak Farrokhzad
271eb8fc5a
Rollup merge of #59906 - czipperz:bufwriter-use-getmut, r=kennytm
Make BufWriter use get_mut instead of manipulating inner in Write implementation

`get_mut` allows us to abstract over the implementation detail of inner being optional.
2019-04-14 17:49:24 +02:00
Mazdak Farrokhzad
fd4a3362ca
Rollup merge of #59900 - czipperz:remove-bracket-mut-syntax-in-pin-docs, r=RalfJung
Remove [mut] syntax in pin docs

Resolves #59832
2019-04-14 17:49:23 +02:00
Mazdak Farrokhzad
99a91094ec
Rollup merge of #59896 - estebank:dedup-spans, r=davidtwco
Remove duplicated redundant spans

Fix #59895.
2019-04-14 17:49:21 +02:00
Mazdak Farrokhzad
27adc935fb
Rollup merge of #59877 - Zoxc:hiridify_def_id, r=eddyb
HirIdify hir::Def

cc @ljedrz
r? @oli-obk
2019-04-14 17:49:19 +02:00
Mazdak Farrokhzad
b9da8a7144
Rollup merge of #59856 - albins:update-polonius, r=nikomatsakis
update polonius-engine

This updates polonius-engine to [version 0.7.0](https://github.com/rust-lang/polonius/blob/master/RELEASES.md#v070), which adds a hybrid algorithm that starts off with performing a cheaper, location-insensitive analysis before proceeding with the full analysis.

r? @nikomatsakis
2019-04-14 17:49:18 +02:00
bors
d70c5a912e Auto merge of #59929 - RalfJung:miri, r=oli-obk
update miri

Fixes https://github.com/rust-lang/rust/issues/59901
2019-04-14 12:55:21 +00:00
krk
8f3fd85da4 Add missing backtick to Symbol documentation. 2019-04-14 14:27:54 +02:00
Vadim Petrochenkov
dbc7042bfe Address review comments 2019-04-14 12:37:22 +03:00
Vadim Petrochenkov
3c3a140294 Fix cross-crate visibility of fictive variant constructors 2019-04-14 12:22:44 +03:00