bors
f8d830b4de
Auto merge of #68376 - Centril:move-ref-patterns, r=matthewjasper
...
Initial implementation of `#![feature(move_ref_pattern)]`
Following up on #45600 , under the gate `#![feature(move_ref_pattern)]`, `(ref x, mut y)` is allowed subject to restrictions necessary for soundness. The match checking implementation and tests for `#![feature(bindings_after_at)]` is also adjusted as necessary.
Closes #45600 .
Tracking issue: #68354 .
r? @matthewjasper
2020-02-09 04:01:28 +00:00
Dylan DPC
9681544f38
Rollup merge of #68928 - GuillaumeGomez:cleanup-e0276, r=Dylan-DPC
...
clean up E0276 explanation
r? @Dylan-DPC
2020-02-07 17:00:27 +01:00
Guillaume Gomez
26020f5063
clean up E0276 explanation
2020-02-07 13:23:33 +01:00
Dylan DPC
7ef5b8951f
Rollup merge of #68894 - JohnTitor:update-e0565, r=Dylan-DPC
...
Update E0565 examples
Fixes #68892
r? @GuillaumeGomez
2020-02-06 22:38:39 +01:00
Dylan DPC
0e294cf395
Rollup merge of #68888 - tspiteri:ignore-to-compile_fail, r=petrochenkov
...
error code examples: replace some more ignore with compile_fail
Now that #68664 has been merged and `compile_fail` attempts a full build rather than `--emit=metadata`, these errors should be caught by `compile_fail` and do not need to be ignored.
2020-02-06 22:38:37 +01:00
Dylan DPC
2d8f6389d0
Rollup merge of #68524 - jonas-schievink:generator-resume-arguments, r=Zoxc
...
Generator Resume Arguments
cc https://github.com/rust-lang/rust/issues/43122 and https://github.com/rust-lang/rust/issues/56974
Blockers:
* [x] Fix miscompilation when resume argument is live across a yield point (https://github.com/rust-lang/rust/pull/68524#issuecomment-578459069 )
* [x] Fix 10% compile time regression in `await-call-tree` benchmarks (https://github.com/rust-lang/rust/pull/68524#issuecomment-578487162 )
* [x] Fix remaining 1-3% regression (https://github.com/rust-lang/rust/pull/68524#issuecomment-579566255 ) - resolved (https://github.com/rust-lang/rust/pull/68524#issuecomment-581144901 )
* [x] Make dropck rules account for resume arguments (https://github.com/rust-lang/rust/pull/68524#issuecomment-578541137 )
Follow-up work:
* Change async/await desugaring to make use of this feature
* Rewrite [`box_region.rs`](3d8778d767/src/librustc_data_structures/box_region.rs ) to use resume arguments (this shows up in profiles too)
2020-02-06 22:38:33 +01:00
Yuki Okushi
64450ac765
Update E0565 examples
2020-02-07 00:01:41 +09:00
Dylan DPC
2210d3f356
Rollup merge of #68869 - GuillaumeGomez:err-explanation-e0271, r=Dylan-DPC
...
clean up E0271 explanation
r? @Dylan-DPC
2020-02-06 15:37:49 +01:00
Trevor Spiteri
534c3eaf28
error code examples: replace some more ignore with compile_fail
...
Now that compile_fail attempts a full build rather than
--emit=metadata, these errors should be caught by compile_fail and do
not need to be ignored.
2020-02-06 15:31:21 +01:00
bors
1f8df2508f
Auto merge of #68664 - tspiteri:no_run-complete-build, r=nikomatsakis
...
rustdoc: attempt full build for compile_fail test
Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.
Fixes #67771 .
2020-02-06 08:48:01 +00:00
Guillaume Gomez
c182461a20
clean E0271 explanation
2020-02-05 23:03:03 +01:00
Dylan DPC
ae0bb2489a
Rollup merge of #68832 - GuillaumeGomez:clean-up-3-err-codes, r=estebank
...
Clean up E0264, E0267 and E0268 explanations
r? @Dylan-DPC
2020-02-05 13:14:30 +01:00
Guillaume Gomez
11eee614f0
Clean up E0264, E0267 and E0268 explanations
2020-02-04 22:03:54 +01:00
Dylan DPC
51c6c25575
Rollup merge of #68777 - GuillaumeGomez:clean-up-e0263, r=Dylan-DPC
...
Clean up E0263 explanation
r? @Dylan-DPC
2020-02-03 18:58:32 +01:00
Guillaume Gomez
019ca55b45
Clean up E0263 explanation
2020-02-02 15:28:18 +01:00
Mazdak Farrokhzad
0253f868ca
move_ref_pattern: adjust error index
2020-02-02 14:13:07 +01:00
Jonas Schievink
044fe0f558
Add a resume type parameter to Generator
2020-02-02 13:20:57 +01:00
Trevor Spiteri
6d768ddecc
error code examples: replace some ignore with compile_fail
2020-01-30 15:51:19 +01:00
Yuki Okushi
9c1244d6a1
Rollup merge of #68582 - LeSeulArtichaut:code-explanations, r=Dylan-DPC
...
Add E0727 long explanation
Add long explanation for the `E0727` error code (async generators not yet supported).
Part of #61137
r? @GuillaumeGomez
2020-01-29 09:34:49 +09:00
LeSeulArtichaut
976a146203
Add E0727 long explanation
2020-01-28 21:17:12 +01:00
Yuki Okushi
ee79cf28db
Rollup merge of #68573 - GuillaumeGomez:clean-up-e0262, r=Dylan-DPC
...
Clean up E0262 explanation
r? @Dylan-DPC
2020-01-28 10:48:20 +09:00
Yuki Okushi
8ed586581d
Rollup merge of #68482 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC
...
clean up error codes explanation
r? @Dylan-DPC
2020-01-28 10:48:14 +09:00
Yuki Okushi
39407c9ab7
Rollup merge of #68454 - GuillaumeGomez:clean-up-e0214, r=Dylan-DPC
...
clean up E0214 explanation
r? @Dylan-DPC
2020-01-28 10:48:12 +09:00
Yuki Okushi
dc33cd3500
Rollup merge of #68412 - GuillaumeGomez:clean-up-e0207, r=Dylan-DPC
...
Clean up E0207 explanation
r? @Dylan-DPC
2020-01-28 10:48:10 +09:00
Yuki Okushi
2bfa058074
Rollup merge of #68383 - GuillaumeGomez:clean-up-e0205, r=Dylan-DPC
...
Clean up E0205 explanation
r? @Dylan-DPC
2020-01-28 10:48:05 +09:00
Guillaume Gomez
4b0fe2ac63
Clean up E0262 explanation
2020-01-27 17:43:02 +01:00
Guillaume Gomez
833ffd7b83
Update src/librustc_error_codes/error_codes/E0220.md
...
Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
2020-01-27 16:06:38 +01:00
Yuki Okushi
5774dd053b
Rollup merge of #68540 - GuillaumeGomez:err-codes-cleanup-e0229-e0261, r=Dylan-DPC
...
clean up error codes E0229 and E0261
r? @Dylan-DPC
2020-01-26 06:37:24 +09:00
Guillaume Gomez
7fb8f7d85d
clean up error codeS E0229 and E0261
2020-01-25 17:41:55 +01:00
Yuki Okushi
e22ae2c096
Rollup merge of #68509 - GuillaumeGomez:clean-up-err-codes-e0223-e0225, r=Dylan-DPC
...
Clean up error codes E0223 and E0225 explanations
r? @Dylan-DPC
2020-01-25 07:45:15 +09:00
Guillaume Gomez
768f6f9340
Clean up error codes E0223 and E0225 explanations
2020-01-24 12:56:32 +01:00
Guillaume Gomez
0f5ed4d2cd
Clean up E0207 explanation
2020-01-23 13:37:05 +01:00
Guillaume Gomez
3850d96379
clean up error codes explanation
2020-01-23 13:29:15 +01:00
Guillaume Gomez
94fcda0e13
clean up E0214 explanation
2020-01-22 14:25:35 +01:00
Guillaume Gomez
6590339c31
Clean up E0205 explanation
2020-01-21 10:40:36 +01:00
Dylan DPC
0259c10385
Rollup merge of #68365 - GuillaumeGomez:clean-up-err-codes-2, r=Dylan-DPC
...
Clean up error codes
r? @Dylan-DPC
2020-01-20 11:14:51 +05:30
Guillaume Gomez
a9aa2dfe84
clean up E0204 explanation
2020-01-19 15:35:55 +01:00
Guillaume Gomez
0c7f40f3b2
clean up E0201 explanation
2020-01-19 15:35:44 +01:00
Dylan DPC
a29ba00107
Rollup merge of #68247 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC
...
Clean up err codes
r? @Dylan-DPC
2020-01-19 17:22:07 +05:30
Mazdak Farrokhzad
2a12ef8134
Rollup merge of #68340 - GuillaumeGomez:clean-up-e0200, r=Dylan-DPC
...
clean up e0200 explanation
r? @Dylan-DPC
2020-01-18 19:36:05 +01:00
Mazdak Farrokhzad
0aebb08115
slice_patterns: adjust error codes
2020-01-18 17:59:44 +01:00
Guillaume Gomez
9746b05da9
clean up e0200 explanation
2020-01-18 15:06:02 +01:00
Tyler Mandry
14d779c3f0
Rollup merge of #68317 - GuillaumeGomez:clean-up-e0199, r=Dylan-DPC
...
Clean up E0199 explanation
r? @Dylan-DPC
2020-01-17 17:28:23 -08:00
Tyler Mandry
2a1ab29806
Rollup merge of #68279 - GuillaumeGomez:clean-up-e0198, r=Dylan-DPC
...
Clean up E0198 explanation
r? @Dylan-DPC
2020-01-17 17:28:17 -08:00
Guillaume Gomez
e8a4b9319c
Clean up E0199 explanation
2020-01-17 19:54:07 +01:00
Guillaume Gomez
9c6c2f16f0
Clean up E0198 explanation
2020-01-17 19:47:48 +01:00
Esteban Küber
029a9c6253
review comments
2020-01-16 11:32:50 -08:00
Esteban Küber
d7a6212401
review comments
2020-01-16 09:49:14 -08:00
Esteban Küber
c305ac31c0
Fix error index test
2020-01-16 09:49:13 -08:00
Esteban Küber
4a75ef91f3
fix error code index comment
2020-01-16 09:49:13 -08:00