summary refs log tree commit diff
path: root/src/librustc_error_codes
AgeCommit message (Collapse)AuthorLines
2019-12-15Auto merge of #67216 - ecstatic-morse:const-loop, r=oli-obkbors-1/+1
Enable `loop` and `while` in constants behind a feature flag This PR is an initial implementation of #52000. It adds a `const_loop` feature gate, which allows `while` and `loop` expressions through both HIR and MIR const-checkers if enabled. `for` expressions remain forbidden by the HIR const-checker, since they desugar to a call to `IntoIterator::into_iter`, which will be rejected anyways. `while` loops also require [`#![feature(const_if_match)]`](https://github.com/rust-lang/rust/pull/66507), since they have a conditional built into them. The diagnostics from the HIR const checker will suggest this to the user. r? @oli-obk cc @rust-lang/wg-const-eval
2019-12-14Revert "Stabilize the `never_type`, written `!`."Niko Matsakis-2/+2
This reverts commit 15c30ddd69d6cc3fffe6d304c6dc968a5ed046f1.
2019-12-13Look for "unstable feature" error code in testDylan MacKenzie-1/+1
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-09Update E0478.mdDylan DPC-2/+2
2019-12-08corrected comment to reflect that 'SnowWhite lives longer than 'kiss in E0478ryan-2/+2
2019-12-06Rollup merge of #66606 - christianpoveda:mut-refs-in-const-fn, r=oli-obkMazdak Farrokhzad-21/+0
Add feature gate for mut refs in const fn r? @oli-obk
2019-12-06Rollup merge of #67017 - GuillaumeGomez:long-err-explanations-2, r=Dylan-DPCYuki Okushi-12/+22
cleanup long error explanations r? @Dylan-DPC
2019-12-06Rollup merge of #66979 - reese:E0631-long-error, r=GuillaumeGomezYuki Okushi-1/+28
Add long error for E0631 and update ui tests. This PR adds a long error for `E0631`, which covers errors where closure argument types are mismatched. It also updates UI tests where this error is applicable. Part of #61137
2019-12-06Rollup merge of #66900 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPCYuki Okushi-12/+33
Clean up error codes r? @Dylan-DPC
2019-12-04some error codes long explanationGuillaume Gomez-1/+3
2019-12-04Clean up E0118 error code long explanationGuillaume Gomez-2/+4
2019-12-04Clean up E0117 error code long explanationGuillaume Gomez-6/+8
2019-12-04Clean up E0116 error code long explanationGuillaume Gomez-3/+7
2019-12-03clean up E0107 error explanationGuillaume Gomez-3/+20
2019-12-03Use simpler code example for E0631 long error.Reese Williams-14/+12
2019-12-02Add long error for E0631 and update ui tests.Reese Williams-1/+30
2019-12-02Remove E0017 from error codes indexChristian Poveda-21/+0
2019-12-01Rollup merge of #66880 - aDotInTheVoid:add-E0203-long, r=GuillaumeGomezMazdak Farrokhzad-2/+19
Add long error code explanation message for E0203 Addressed some of #61137 r? @GuillaumeGomez
2019-11-30Small error codes explanation cleanup (E0092, E0093 and E0094)Guillaume Gomez-9/+13
2019-11-30Address review commentsNixon-5/+11
2019-11-29Add explanation message for E0203Nixon-2/+13
2019-11-29Rollup merge of #66808 - GuillaumeGomez:cleanup-err-code-3, r=Dylan-DPCRalf Jung-14/+21
Cleanup error code r? @Dylan-DPC
2019-11-27Rollup merge of #66798 - bwignall:typo, r=varkorTyler Mandry-1/+1
Fix spelling typos Should be non-semantic. Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos.
2019-11-27Rollup merge of #66777 - GuillaumeGomez:tidy-err-codes, r=Mark-SimulacrumTyler Mandry-20/+15
Put back tidy check on error codes I just realized that the tidy checks were not run anymore on the error code long explanations. This add it back. cc @Dylan-DPC r? @Mark-Simulacrum
2019-11-27Rollup merge of #66774 - GuillaumeGomez:cleanup-err-codes-2, r=Dylan-DPCTyler Mandry-33/+44
Clean up error codes r? @Dylan-DPC
2019-11-27Clean up E0091 long explanationGuillaume Gomez-2/+3
2019-11-27Clean up E0081 long explanationGuillaume Gomez-8/+10
2019-11-27Clean up E0080 long explanationGuillaume Gomez-4/+8
2019-11-27Fix tidy issuesGuillaume Gomez-20/+15
2019-11-27Clean up E0071 long explanationGuillaume Gomez-4/+4
2019-11-27Clean up E0077 long explanationGuillaume Gomez-6/+9
2019-11-27Clean up E0076 long explanationGuillaume Gomez-7/+10
2019-11-26Fix spelling typosBrian Wignall-1/+1
2019-11-26Clean up E0075 long explanationGuillaume Gomez-7/+9
2019-11-26Clean up E0072 long explanationGuillaume Gomez-9/+12
2019-11-25Clean up E0070 long explanationGuillaume Gomez-18/+20
2019-11-25Clean up E0069 long explanationGuillaume Gomez-1/+3
2019-11-25Clean up E0067 long explanationGuillaume Gomez-25/+7
2019-11-25Clean up E0063 long explanationGuillaume Gomez-2/+3
2019-11-25Clean up E0062 long explanationGuillaume Gomez-4/+6
2019-11-24Add raw address of expressions to the AST and HIRMatthew Jasper-0/+21
2019-11-22Rollup merge of #66633 - GuillaumeGomez:err-codes-cleanup, r=Dylan-DPCMazdak Farrokhzad-17/+54
Error code's long explanation cleanup Continuing to clean up the error code's long explanation. r? @Dylan-DPC
2019-11-22small error code explanations improvementsGuillaume Gomez-3/+3
2019-11-22Improve E0061 long error explanationGuillaume Gomez-0/+10
2019-11-22Improve E0057 long error explanationGuillaume Gomez-4/+6
2019-11-22Improve E0023 long error explanationGuillaume Gomez-1/+8
2019-11-22Improve E0015 long error explanationGuillaume Gomez-9/+27
2019-11-21Stabilize the `never_type`, written `!`.Mazdak Farrokhzad-2/+2
2019-11-20Rollup merge of #66526 - estebank:async-fn-trait-information, r=CentrilMazdak Farrokhzad-1/+58
Add more context to `async fn` trait error Follow up to #65937. Fix #65899.
2019-11-19Remove desugared `async-trait` exampleEsteban Kuber-22/+1