120268 Commits

Author SHA1 Message Date
Camille GILLOT
8ab3224b3b
Fix clippy. 2020-05-11 21:26:39 +02:00
Jack Huey
01662d3a23
Fix nit and cargo.lock 2020-05-11 21:26:38 +02:00
flip1995
10f3cd9bea
Update Cargo.lock 2020-05-11 21:18:42 +02:00
flip1995
d13d8987b0 Merge commit '43a1777b89cf6791f9e20878b4e5e3ae907867a5' into clippyup 2020-05-11 20:23:47 +02:00
flip1995
9dd5b2d97e
Merge commit '43a1777b89cf6791f9e20878b4e5e3ae907867a5' into clippyup 2020-05-11 20:23:47 +02:00
bors
99cb9ccb9c Auto merge of #72089 - Mark-Simulacrum:error-is-really-an-error, r=pietroalbini
Fail if I/O error occurs during testing

First known case of this is in https://github.com/rust-lang/rust/pull/72053#issuecomment-626364402 but may have happened before then.

r? @pietroalbini
2020-05-11 16:33:26 +00:00
Matthias Krüger
8bfd84539e Fix clippy warnings
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
2020-05-11 17:13:32 +02:00
Mark Rousskov
9a4e7183d4 Configure cache domain for GHA 2020-05-11 10:50:53 -04:00
Ralf Jung
7bea58eeac fix test_weak_count_locked for Miri 2020-05-11 16:49:36 +02:00
Igor Matuszewski
e26f35d343 rustbook: Bump mdbook dependency 2020-05-11 14:43:41 +02:00
Igor Matuszewski
3bdacedfd9 cargo update -p derive-new 2020-05-11 14:43:41 +02:00
Igor Matuszewski
8c6e568141 cargo update -p pest_generator 2020-05-11 14:43:41 +02:00
Igor Matuszewski
403a9d0867 cargo update -p failure_derive 2020-05-11 14:43:41 +02:00
Igor Matuszewski
5e354932fe cargo update -p serde_derive 2020-05-11 14:40:52 +02:00
Guillaume Gomez
806f09cf21 Clean up E0579 explanation 2020-05-11 13:22:56 +02:00
Ralf Jung
42f70d503b update miri some more 2020-05-11 12:13:53 +02:00
bors
3fe4dd2dda Auto merge of #71953 - oli-obk:const_prop_deaggregates, r=wesleywiser
Const prop aggregates even if partially or fully modified

r? @wesleywiser

cc @rust-lang/wg-mir-opt I'm moderately scared of this change, but I'm confident in having reviewed all the cases.
2020-05-11 07:23:31 +00:00
csmoe
a1104b4dea bless ui tests 2020-05-11 14:06:57 +08:00
Jonas Schievink
a32463ade4 Make MIR typeck use LocalDefId and fix docs 2020-05-11 02:19:34 +02:00
Vadim Petrochenkov
00dcb665e7 cmdline: Make target features individually overridable 2020-05-11 02:04:53 +03:00
Ralf Jung
51e466de3c rustc_driver::main: more informative return type 2020-05-11 00:11:42 +02:00
Ralf Jung
82e81191e4 update miri 2020-05-10 23:55:41 +02:00
Marko Mijalkovic
7444494330 Run rustfmt 2020-05-10 17:53:04 -04:00
Marko Mijalkovic
7b649c7364 Renamed lld_link_script to link_script and support all GNU-like linkers 2020-05-10 17:39:57 -04:00
Ralf Jung
30822733f0 rustc_driver: factor out computing the exit code 2020-05-10 23:36:41 +02:00
Ralf Jung
23d880b127 rustc_driver: factor out computing the exit code 2020-05-10 23:36:41 +02:00
Mark Rousskov
a5ba75283e Fail if I/O error occurs during testing 2020-05-10 16:53:48 -04:00
bors
aeb473803d Auto merge of #71825 - contrun:cg-option-strip, r=petrochenkov
add codegen option strip

closes https://github.com/rust-lang/rust/issues/71757

I don't know if the flags added here works for all linkers. I only tested on my Linux pc. I also don't know what is the best for emlinker, PtxLinker, MsvcLinker. The option for WasmLd is copied from https://aransentin.github.io/cwasm/.
2020-05-10 20:48:40 +00:00
Ralf Jung
dc7524be27 remove lldb package from bootstrap, config and build-manifest
it's not been built since a long time ago
2020-05-10 22:43:58 +02:00
Marko Mijalkovic
7e62240801 Add lld_link_script to TargetOptions 2020-05-10 16:06:33 -04:00
csmoe
c7e64f54c8 remove try_trait lang item 2020-05-10 22:40:11 +08:00
csmoe
627f473dd4 suggest await before try when performing trait selection 2020-05-10 22:40:10 +08:00
csmoe
114cd006f5 normalize Future::Ouput 2020-05-10 22:37:24 +08:00
csmoe
2e2aac4f57 add try trait as lang item 2020-05-10 22:37:24 +08:00
csmoe
32a46e9115 add test case for issue-61076 2020-05-10 22:37:24 +08:00
Jonas Schievink
62116c31cd Emit a warning when optimization fuel runs out
`eprintln!` gets swallowed by Cargo too easily.
2020-05-10 15:40:17 +02:00
bors
9912925c25 Auto merge of #72074 - RalfJung:rollup-1ns58no, r=RalfJung
Rollup of 4 pull requests

Successful merges:

 - #71840 (Rework MIR drop tree lowering)
 - #71882 (Update the `cc` crate)
 - #71945 (Sort "implementations on foreign types" section in the sidebar)
 - #72043 (Add missing backtick in E0569 explanation)

Failed merges:

r? @ghost
2020-05-10 12:07:34 +00:00
Guillaume Gomez
0aaff14ae3 Improve E0571 wording 2020-05-10 12:40:11 +02:00
Sébastien Marie
a26335b2a0 update stacker to 0.1.9 to unbreak build on OpenBSD 2020-05-10 10:23:13 +00:00
Faris Sufyan
d80ac6416d
Fix link to map documentation in example
Co-authored-by: Timo <timorcb@gmail.com>
2020-05-10 18:06:30 +08:00
Ralf Jung
e73ee41241 rebase fallout 2020-05-10 11:48:46 +02:00
Ralf Jung
a06740cbea Typo
Co-Authored-By: Oliver Scherer <github35764891676564198441@oli-obk.de>
2020-05-10 11:48:45 +02:00
Ralf Jung
d3b2e1fb9e fmt 2020-05-10 11:48:41 +02:00
Ralf Jung
ff39457364 avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
Ralf Jung
8e48a304dc remove some dead code, and assert we do not swallow allocating errors 2020-05-10 11:45:48 +02:00
Ralf Jung
c400f758e5 Miri interning: replace ICEs by proper errors, make intern_shallow type signature more precise 2020-05-10 11:45:43 +02:00
Ralf Jung
f2b655f110
Rollup merge of #72043 - GuillaumeGomez:clean-up-e0569, r=Dylan-DPC
Add missing backtick in E0569 explanation

r? @Dylan-DPC
2020-05-10 11:34:36 +02:00
Ralf Jung
d22c18b396
Rollup merge of #71945 - GuillaumeGomez:sort-impl-on-foreign-types-section, r=kinnison,ollie27
Sort "implementations on foreign types" section in the sidebar

Fixes #71926.

We were sorting by the ID instead of sorting by the name. They're not in the same order as the implementations but I think it makes more sense this way considering this is what we do for the methods as well.

r? @kinnison

cc @rust-lang/rustdoc
2020-05-10 11:34:34 +02:00
Ralf Jung
37a9192826
Rollup merge of #71882 - alexcrichton:update-cc, r=Mark-Simulacrum
Update the `cc` crate

Pulls in updated MSVC detection logic landed in alexcrichton/cc-rs#488
2020-05-10 11:34:32 +02:00
Ralf Jung
62353071af
Rollup merge of #71840 - matthewjasper:drop-trees, r=oli-obk
Rework MIR drop tree lowering

This PR changes how drops are generated in MIR construction. This is the first half of the fix for #47949.

Rather than generating the drops for a given unwind/break/continue/return/generator drop path as soon as they are needed, the required drops are recorded and get generated later.

The motivation for this is
* It simplifies the caching scheme, because it's now possible to walk up the currently scheduled drop tree to recover state.
* The basic block order for MIR more closely resembles execution order.

This PR also:
* Highlights cleanup blocks in the graphviz MIR output.
* Removes some unnecessary drop flag assignments.
2020-05-10 11:34:30 +02:00