Dylan DPC
82a366ad86
Rollup merge of #69055 - GuillaumeGomez:clean-up-e0307, r=Dylan-DPC
...
Clean up E0307 explanation
r? @Dylan-DPC
2020-02-11 16:37:06 +01:00
Guillaume Gomez
e20108f9c4
Clean up E0307 explanation
2020-02-11 11:39:41 +01:00
Dylan DPC
db08784964
Rollup merge of #69007 - GuillaumeGomez:clean-up-e0283, r=Dylan-DPC
...
Clean up E0283 explanation
r? @Dylan-DPC
2020-02-10 17:29:01 +01:00
Dylan DPC
531f235134
Rollup merge of #68908 - jwhite927:E0637, r=Dylan-DPC
...
Add long error code explanation message for E0637
Reference issue [#61137 ](https://github.com/rust-lang/rust/issues/61137 )
To incorporate a long error description for E0637, I have made the necessary modification to error_codes.rs and added error_codes/E0637.md, and blessed the relevant .stderror files. ~~, however when I build rustc stage 1, I am unable to make `$ rustc --explain E0637` work even though rustc appears to be able to call up the long error explanations for other errors. I wanted to guarantee this would work before moving on the blessing the various ui tests that have been affected. @GuillaumeGomez Do you know the most likely reason(s) why this would be the case?~~
Update: `$ rustc --explain E0637` works now.
2020-02-10 17:28:56 +01:00
Dylan DPC
1e26a1c4d1
Rollup merge of #68897 - GuillaumeGomez:clean-up-e0275, r=Dylan-DPC
...
clean up E0275 explanation
r? @Dylan-DPC
2020-02-10 17:28:54 +01:00
Guillaume Gomez
37e7b46177
clean up E0275 explanation
2020-02-10 13:25:48 +01:00
Guillaume Gomez
ded629289a
Clean up E0283 explanation
2020-02-10 13:23:52 +01:00
bors
6dff769e37
Auto merge of #68975 - Dylan-DPC:rollup-jzab8oh, r=Dylan-DPC
...
Rollup of 7 pull requests
Successful merges:
- #68718 (Move `rustc_hir::def_id` to `rustc_span::def_id`)
- #68834 (Fix and test implementation of BTreeMap's first/last_entry, pop_first/last)
- #68857 (perf: Reduce Vec allocations in normalization by passing &mut Vec)
- #68918 (Don't use the word "unwrap" to describe "unwrap" methods)
- #68946 (Mark several functions and methods in core::cmp as #[must_use])
- #68958 (Clean up E0277 and E0282 explanations)
- #68960 (codegen: misc cleanups around debuginfo scopes and locations.)
Failed merges:
r? @ghost
2020-02-09 10:20:46 +00:00
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
8333115100
Rollup merge of #68958 - GuillaumeGomez:clean-up-e0277-e0282, r=Dylan-DPC
...
Clean up E0277 and E0282 explanations
r? @Dylan-DPC
2020-02-09 00:53:58 +01:00
Josh White
9d54bb28b3
Tidied up E0637.md
2020-02-08 16:26:09 -05:00
Josh White
8c351182de
Corrected E0637.md based on test failures
2020-02-08 14:24:35 -05:00
Guillaume Gomez
1177d0669a
Clean up E0277 and E0282 explanations
2020-02-08 15:47:29 +01:00
Josh White
a804d476a6
Corrected E0637.md based on test failure
2020-02-08 08:14:28 -05:00
Josh White
58d0e67f50
Added compiler flags to example code, removed unexpected curly
2020-02-08 06:18:42 -05:00
Josh White
409146673c
Removed trailing white spaces
2020-02-08 00:22:15 -05:00
Josh White
69075f065c
Merge branch 'master' of https://github.com/jwhite927/rust into E0637
2020-02-07 23:56:44 -05:00
Josh White
92fc98c695
Cleaned up long error description
2020-02-07 23:40:16 -05:00
Josh White
8b77f8688e
performed --bless of 15 ui tests affected
2020-02-07 12:44:31 -05: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
Josh White
78df44655a
Tidied up the long error description
2020-02-06 17:28:03 -05:00
Josh White
1923586286
Edited error description
2020-02-06 16:54:24 -05: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
Josh White
201a262ac4
Revised error long description
2020-02-06 16:18:24 -05:00
Josh White
4a1c6ce235
Added long error description & modifed error_codes.rs
2020-02-06 16:18:24 -05: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