bors
09c817eeb2
Auto merge of #72120 - Dylan-DPC:rollup-ca0tur2, r=Dylan-DPC
...
Rollup of 10 pull requests
Successful merges:
- #72014 (Deprecated emoji)
- #72019 (Fix debug assertion in error code)
- #72027 (Use CDN for ci-caches on download)
- #72044 (use min_specialization for some rustc crates where it requires no changes)
- #72052 (display `ConstKind::Param`)
- #72067 (Emit a warning when optimization fuel runs out)
- #72072 (doc: minus (U+2212) instead of dash (U+002D) for negative infinity)
- #72077 (Improve E0571 wording)
- #72107 (Clean up E0579 explanation)
- #72109 (Fix clippy warnings)
Failed merges:
r? @ghost
2020-05-11 23:14:06 +00:00
Esteban Küber
0dcde02cc7
Ignore arguments when looking for IndexMut for subsequent mut obligation
...
Given code like `v[&field].boo();` where `field: String` and
`.boo(&mut self)`, typeck will have decided that `v` is accessed using
`Index`, but when `boo` adds a new `mut` obligation,
`convert_place_op_to_mutable` is called. When this happens, for *some
reason* the arguments' dereference adjustments are completely ignored
causing an error saying that `IndexMut` is not satisfied:
```
error[E0596]: cannot borrow data in an index of `Indexable` as mutable
--> src/main.rs:30:5
|
30 | v[&field].boo();
| ^^^^^^^^^ cannot borrow as mutable
|
= help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `Indexable`
```
This is not true, but by changing `try_overloaded_place_op` to retry
when given `Needs::MutPlace` without passing the argument types, the
example successfully compiles.
I believe there might be more appropriate ways to deal with this.
2020-05-11 15:45:19 -07:00
Nicholas Nethercote
a3cc435f57
Remove RawVec::double_in_place.
...
It's unused.
2020-05-12 08:39:08 +10:00
Dylan DPC
dfa3677bee
Rollup merge of #72109 - matthiaskrgr:cl8ppy, r=Dylan-DPC
...
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}
r? @Dylan-DPC
2020-05-11 22:21:08 +02:00
Dylan DPC
dd53768692
Rollup merge of #72107 - GuillaumeGomez:cleanup-e0579, r=Dylan-DPC
...
Clean up E0579 explanation
r? @Dylan-DPC
2020-05-11 22:21:07 +02:00
Dylan DPC
400a9bae49
Rollup merge of #72077 - GuillaumeGomez:cleanup-E0571, r=Dylan-DPC
...
Improve E0571 wording
r? @Dylan-DPC
2020-05-11 22:21:05 +02:00
Dylan DPC
6a8ac8b975
Rollup merge of #72072 - tspiteri:minus-inf, r=Dylan-DPC
...
doc: minus (U+2212) instead of dash (U+002D) for negative infinity
Like #67430 , for the new associated constants.
2020-05-11 22:21:03 +02:00
Dylan DPC
d9c3110ae8
Rollup merge of #72067 - jonas-schievink:fuel-warn, r=varkor
...
Emit a warning when optimization fuel runs out
`eprintln!` gets swallowed by Cargo too easily.
2020-05-11 22:21:01 +02:00
Dylan DPC
a14af7fff8
Rollup merge of #72052 - lcnr:const_pprint, r=ecstatic-morse
...
display `ConstKind::Param`
2020-05-11 22:20:59 +02:00
Dylan DPC
eade6f7881
Rollup merge of #72044 - RalfJung:min-spec, r=matthewjasper
...
use min_specialization for some rustc crates where it requires no changes
and add FIXME for the rest
Cc @matthewjasper
2020-05-11 22:20:57 +02:00
Dylan DPC
9c4c52fd77
Rollup merge of #72027 - Mark-Simulacrum:ci-caches, r=pietroalbini
...
Use CDN for ci-caches on download
This will reduce costs, as well as lays the groundwork for developers to be able
to locally pull the published docker images without needing AWS credentials.
r? @pietroalbini
2020-05-11 22:20:55 +02:00
Dylan DPC
705671ef49
Rollup merge of #72019 - matthewjasper:dont-skip-binder, r=davidtwco
...
Fix debug assertion in error code
Closes #70813
2020-05-11 22:20:54 +02:00
Dylan DPC
dd595fade5
Rollup merge of #72014 - GuillaumeGomez:deprecated-emoji, r=kinnison,ollie27
...
Deprecated emoji
Fixes #67872 .
r? @kinnison
cc @rust-lang/rustdoc
2020-05-11 22:20:51 +02:00
Matthew Jasper
e7b02046a0
Fix hang in lexical_region_resolve
2020-05-11 21:05:08 +01:00
flip1995
eec17d2c21
Update failing test
2020-05-11 21:40:33 +02:00
flip1995
505280b108
Run cargo dev fmt
2020-05-11 21:31:01 +02:00
flip1995
33a3d852f5
Fix fallout
...
Re-remove util/dev file
2020-05-11 21:28:14 +02:00
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 ' 43a1777b89' into clippyup
2020-05-11 20:23:47 +02:00
flip1995
9dd5b2d97e
Merge commit ' 43a1777b89' into clippyup
2020-05-11 20:23:47 +02:00
Petr Hosek
c85768ed71
Update the Fuchsia linker defaults
...
This updates the linker defaults aligning them with Clang. Specifically,
we use 4K pages on all platforms, we always use BIND_NOW, we prefer all
loadable segments be separate and page aligned, and we support RELR
relocations.
2020-05-11 10:37:35 -07:00
Philipp Krones
d4092ace00
Merge pull request #5584 from Mark-Simulacrum/beta-next
...
Add hint for collect type
2020-05-11 19:14:38 +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
Vadim Petrochenkov
1899afa685
rustc-book: Document -Z strip=val option
2020-05-11 18:16:40 +03: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
Bastian Kauschke
3f661d25f9
borrowck DefId -> LocalDefId
2020-05-11 10:29:26 +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
Mark Rousskov
318b8b6aab
Add hint for collect type
2020-05-10 22:15:35 -04: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
Jubilee
510fce10f8
Unblock font loading in rustdoc.css
...
rustdoc's font loading defaults to "auto", so browsers may block render.
But rustdoc's case prefers a faster TTI for scrolling, this means the
strictest font-display in use should be "swap". rustdoc's fonts do provide
notable legibility improvements but first-time users will have little trouble
reading without. This means "optional" is preferred.
The one exception is Source Serif Pro: it's a big difference for body text, so
"fallback" is preferred over "optional" to cause a (tiny) block.
2020-05-10 14:59:38 -07: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