about summary refs log tree commit diff
path: root/src/librustc_error_codes
AgeCommit message (Collapse)AuthorLines
2019-12-23Add long error code explanation message for E0627Donough Liu-1/+31
2019-12-23Update E0124.mdDylan DPC-1/+1
2019-12-22Clean up E0128 explanationGuillaume Gomez-4/+5
2019-12-22Clean up E0124 explanationGuillaume Gomez-2/+3
2019-12-22Rollup merge of #67480 - rossmacarthur:fix-41260-avoid-issue-0-part-2, r=CentrilMazdak Farrokhzad-1/+1
Require issue = "none" over issue = "0" in unstable attributes These changes make the use of `issue = "none"` required in unstable attributes throughout the compiler. Notes: - #66299 is now in beta so `issue = "none"` is accepted. - The `tidy` tool now fails on `issue = "0"`. - Tests that used `issue = "0"` were changed to use `issue = "none"`, except for _one_ that asserts `issue = "0"` can still be used. - The compiler still allows `issue = "0"` because some submodules require it, this could be disallowed once these are updated. Resolves #41260 r? @varkor
2019-12-21Rollup merge of #67422 - GuillaumeGomez:cleanup-err-codes, r=Dylan-DPCMazdak Farrokhzad-9/+25
Cleanup err codes r? @Dylan-DPC
2019-12-21Require issue = "none" over issue = "0" in unstable attributesRoss MacArthur-1/+1
2019-12-20Rollup merge of #67131 - Centril:item-merge, r=petrochenkovMazdak Farrokhzad-5/+11
Merge `TraitItem` & `ImplItem into `AssocItem` In this PR we: - Merge `{Trait,Impl}Item{Kind?}` into `AssocItem{Kind?}` as discussed in https://github.com/rust-lang/rust/issues/65041#issuecomment-538105286. - This is done by using the cover grammar of both forms. - In particular, it requires that we syntactically allow (under `#[cfg(FALSE)]`): - `default`ness on `trait` items, - `impl` items without a body / definition (`const`, `type`, and `fn`), - and associated `type`s in `impl`s with bounds, e.g., `type Foo: Ord;`. - The syntactic restrictions are replaced by semantic ones in `ast_validation`. - Move syntactic restrictions around C-variadic parameters from the parser into `ast_validation`: - `fn`s in all contexts now syntactically allow `...`, - `...` can occur anywhere in the list syntactically (`fn foo(..., x: usize) {}`), - and `...` can be the sole parameter (`fn foo(...) {}`. r? @petrochenkov
2019-12-20Update E0121.mdDylan DPC-1/+1
2019-12-20Update E0120.mdDylan DPC-1/+1
2019-12-19Clean up E0121 long explanationGuillaume Gomez-5/+19
2019-12-19Clean up E0120 long explanationGuillaume Gomez-4/+6
2019-12-18Add more tests for raw_ref_opMatthew Jasper-1/+1
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-12De-fatalize `...` parsing.Mazdak Farrokhzad-5/+11
Also fix error the code description.
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