Mateusz Mikuła
2d8d8136fa
Update tokio crates to latest versions
2019-12-13 20:51:31 +01:00
bors
ff15e96708
Auto merge of #67284 - Centril:rollup-ghiukob, r=Centril
...
Rollup of 7 pull requests
Successful merges:
- #67026 (Improve diagnostics and code for exhaustiveness of empty matches)
- #67235 (VecDeque: drop remaining items on destructor panic)
- #67254 (dont ICE in case of invalid drop fn)
- #67256 (Reduce allocs for validation errors)
- #67274 (be explicit that mem::uninitialized is the same as MaybeUninit::uninit().assume_init())
- #67278 (`coerce_inner`: use initial `expected_ty`)
- #67280 (docs: std::convert::From: Fix typo)
Failed merges:
r? @ghost
2019-12-13 19:39:20 +00:00
Mazdak Farrokhzad
d0cc289ec0
Rollup merge of #67280 - shalzz:patch-1, r=jonas-schievink
...
docs: std::convert::From: Fix typo
Fix a minor typo
2019-12-13 20:35:37 +01:00
Mazdak Farrokhzad
0f30462efa
Rollup merge of #67278 - Centril:67273, r=oli-obk
...
`coerce_inner`: use initial `expected_ty`
Fixes #67273 .
Follow-up to #59439 .
r? @oli-obk
2019-12-13 20:35:36 +01:00
Mazdak Farrokhzad
83536a5c82
Rollup merge of #67274 - RalfJung:uninit, r=Centril
...
be explicit that mem::uninitialized is the same as MaybeUninit::uninit().assume_init()
Cc @Centril @nikomatsakis
2019-12-13 20:35:34 +01:00
Mazdak Farrokhzad
88e702a6ec
Rollup merge of #67256 - RalfJung:reduce-allocs, r=oli-obk
...
Reduce allocs for validation errors
This probably doesn't really matter, but I just felt like I had to do this...
r? @oli-obk
2019-12-13 20:35:33 +01:00
Mazdak Farrokhzad
a0be3a683d
Rollup merge of #67254 - RalfJung:vtable-ice, r=oli-obk
...
dont ICE in case of invalid drop fn
Fixes https://github.com/rust-lang/miri/issues/1112
r? @oli-obk
2019-12-13 20:35:31 +01:00
Mazdak Farrokhzad
48164f8a17
Rollup merge of #67235 - jonas-schievink:vecdeque-leak, r=KodrAus
...
VecDeque: drop remaining items on destructor panic
Closes https://github.com/rust-lang/rust/issues/67232
2019-12-13 20:35:30 +01:00
Mazdak Farrokhzad
df9e491fb2
Rollup merge of #67026 - Nadrieril:improve-usefulness-empty, r=varkor,Centril,estebank
...
Improve diagnostics and code for exhaustiveness of empty matches
There was a completely separate check and diagnostics for the case of an empty match. This led to slightly different error messages and duplicated code.
This improves code reuse and generally clarifies what happens for empty matches. This also clarifies the action of the `exhaustive_patterns` feature, and ensures that this feature doesn't change diagnostics in places it doesn't need to.
2019-12-13 20:35:28 +01:00
Patrick Wang
b65c6ec10f
Fix incorrect example code of OpenOptions::open
2019-12-14 03:12:50 +08:00
Dylan MacKenzie
faa52d1cda
Correctly mark things as min_const_fn
2019-12-13 10:48:55 -08:00
ecstatic-morse
0f0bfc9c22
Document Features::enabled
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-12-13 10:48:55 -08:00
Dylan MacKenzie
029725f139
Use correct nightly version for feature
2019-12-13 10:39:15 -08:00
Dylan MacKenzie
598bed6f51
Ensure test actually uses dataflow, not simulation
2019-12-13 10:39:15 -08:00
Dylan MacKenzie
34ce0ba919
Use better name for local containing required feature gates
2019-12-13 10:39:15 -08:00
Dylan MacKenzie
80581be2c0
Replace Index
impl with enabled
method
2019-12-13 10:39:15 -08:00
Dylan MacKenzie
2b5ae1cb06
Apply suggestions from review
2019-12-13 10:39:14 -08:00
ecstatic-morse
b3aecd0d55
Fix grammar in test description
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
a2a077460b
Look for "unstable feature" error code in test
...
Conditionals and loops now have unstable features, and `feature_err` has
its own error code. I think that `feature_err` should take an error code
as a parameter, but don't have the energy to make this change throughout
the codebase. Also, the error code system may be torn out entirely.
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
a8e997c819
Improve comment
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
2add77dffb
Improve message when active feature indexing panics
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
3325671036
Bless modified tests
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
caa7c99172
Bless unrelated tests with new help message
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
1122404be5
Add qualif smoke tests for const loops
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
99e132db97
Extend control flow basics tests with loops
2019-12-13 10:39:14 -08:00
Dylan MacKenzie
ee233c07c6
Restructue HIR const-checker to handle features with multiple gates
2019-12-13 10:38:29 -08:00
Dylan MacKenzie
8f59902aad
Put MIR checks for loops behind the feature flag
2019-12-13 10:38:29 -08:00
Dylan MacKenzie
57959b2bdc
Add feature gate for const_loop
2019-12-13 10:38:29 -08:00
Dylan MacKenzie
8f3021bd2c
Get active features dynamically by their Symbol
2019-12-13 10:38:29 -08:00
Shaleen Jain
9abde64a4e
docs: std::convert::From: Fix typo
...
Fix a minor typo
2019-12-13 23:20:02 +05:30
bors
703c82e531
Auto merge of #62359 - euclio:remove-serialize, r=Dylan-DPC
...
replace serialize with serde in rustdoc
This is a slightly less aggressive version of #61028 .
r? @GuillaumeGomez
2019-12-13 16:14:47 +00:00
Mazdak Farrokhzad
f97c37f8ae
coerce_inner: use initial expected_ty
2019-12-13 15:52:51 +01:00
Oliver Scherer
0b47ba7019
The constness of 128 bit atomics will be stabilized together with the atomics
2019-12-13 13:28:55 +01:00
Ralf Jung
216b9ae878
be explicit that mem::uninitialized is the same as MaybeUninit::uninit().assume_init()
2019-12-13 13:13:37 +01:00
Wesley Wiser
0745b8c5a2
Const prop should finish propagation into user defined variables
...
Fixes #66638
2019-12-13 06:14:15 -05:00
Oliver Scherer
f12affef12
Address review comments
2019-12-13 11:27:02 +01:00
Oliver Scherer
3abc7272dc
Consistently name min_const_fn
2019-12-13 11:27:02 +01:00
Oliver Scherer
83b8a561a1
Change the const stab default for internal const fns
2019-12-13 11:27:02 +01:00
Oliver Scherer
395a789def
Fix rustdoc test
2019-12-13 11:27:02 +01:00
Oliver Scherer
8c83264989
Elaborate internal const fn comment
2019-12-13 11:27:02 +01:00
Oliver Scherer
c7471ad43a
Compiler internal error codes need no documentation
2019-12-13 11:27:02 +01:00
Oliver Scherer
5e17e39881
Require stable/unstable annotations for the constness of all stable functions with a const
modifier
2019-12-13 11:27:02 +01:00
Oliver Scherer
d75c7530f3
Reuse the staged_api
feature for rustc_const_unstable
2019-12-13 11:27:01 +01:00
bors
3964a55ba5
Auto merge of #67077 - Aaron1011:build-llvm-in-binary, r=alexcrichton
...
rustc: Link LLVM directly into rustc again (take two)
This is a continuation of PR https://github.com/rust-lang/rust/pull/65703
2019-12-13 10:07:38 +00:00
bors
9409c208a9
Auto merge of #66405 - nnethercote:tweak-ObligForest-NodeStates, r=nikomatsakis
...
Remove `NodeState::{Waiting,Done}`
An optimization, and then some clean-ups.
r? @nikomatsakis
2019-12-13 06:51:28 +00:00
bors
cf7e019b42
Auto merge of #67271 - Centril:rollup-i71iqkv, r=Centril
...
Rollup of 6 pull requests
Successful merges:
- #66341 (Match `VecDeque::extend` to `Vec::extend_desugared`)
- #67243 (LinkedList: drop remaining items when drop panics)
- #67247 (Don't suggest wrong snippet in closure)
- #67250 (Remove the `DelimSpan` from `NamedMatch::MatchedSeq`.)
- #67251 (Require `allow_internal_unstable` for stable min_const_fn using unsta…)
- #67269 (parser: recover on `&'lifetime mut? $pat`.)
Failed merges:
r? @ghost
2019-12-13 03:22:20 +00:00
Mazdak Farrokhzad
d25197c52d
Rollup merge of #67269 - Centril:recover-lt-deref-pat, r=estebank
...
parser: recover on `&'lifetime mut? $pat`.
r? @estebank
2019-12-13 04:21:34 +01:00
Mazdak Farrokhzad
d2d5b83f6b
Rollup merge of #67251 - oli-obk:stability_sieve, r=Centril
...
Require `allow_internal_unstable` for stable min_const_fn using unsta…
…ble features
r? @Centril
cc @ecstatic-morse @RalfJung
2019-12-13 04:21:33 +01:00
Mazdak Farrokhzad
ac0bd42a4a
Rollup merge of #67250 - nnethercote:rm-DelimSpan-from-NamedMatch-MatchedSeq, r=Centril
...
Remove the `DelimSpan` from `NamedMatch::MatchedSeq`.
Because it's unused. This then allows the removal of
`MatcherPos::sp_open`. It's a tiny perf win, reducing instruction counts
by 0.1% - 0.2% on a few benchmarks.
r? @Centril
2019-12-13 04:21:31 +01:00
Mazdak Farrokhzad
98df677c3f
Rollup merge of #67247 - JohnTitor:fix-sugg, r=estebank
...
Don't suggest wrong snippet in closure
Fixes #67190
r? @estebank
2019-12-13 04:21:30 +01:00