about summary refs log tree commit diff
path: root/src/librustc_error_codes
AgeCommit message (Collapse)AuthorLines
2020-01-19Rollup merge of #68247 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPCDylan DPC-7/+15
Clean up err codes r? @Dylan-DPC
2020-01-18remove rustc_error_codes deps except in rustc_driverMazdak Farrokhzad-9/+1
2020-01-18Rollup merge of #68340 - GuillaumeGomez:clean-up-e0200, r=Dylan-DPCMazdak Farrokhzad-5/+14
clean up e0200 explanation r? @Dylan-DPC
2020-01-18slice_patterns: adjust error codesMazdak Farrokhzad-8/+0
2020-01-18clean up e0200 explanationGuillaume Gomez-5/+14
2020-01-17Rollup merge of #68317 - GuillaumeGomez:clean-up-e0199, r=Dylan-DPCTyler Mandry-6/+15
Clean up E0199 explanation r? @Dylan-DPC
2020-01-17Rollup merge of #68279 - GuillaumeGomez:clean-up-e0198, r=Dylan-DPCTyler Mandry-8/+9
Clean up E0198 explanation r? @Dylan-DPC
2020-01-17Clean up E0199 explanationGuillaume Gomez-6/+15
2020-01-17Clean up E0198 explanationGuillaume Gomez-8/+9
2020-01-16review commentsEsteban Küber-1/+1
2020-01-16review commentsEsteban Küber-5/+5
2020-01-16Fix error index testEsteban Küber-1/+2
2020-01-16fix error code index commentEsteban Küber-1/+1
2020-01-16Add E0746 explanation to the indexEsteban Küber-1/+138
2020-01-16Specific error for unsized `dyn Trait` return typeEsteban Küber-0/+1
Suggest `impl Trait` when possible, and `Box<dyn Trait>` otherwise.
2020-01-16clean up E0197 explanationGuillaume Gomez-5/+12
2020-01-16clean up E0195 explanationGuillaume Gomez-2/+3
2020-01-15Rollup merge of #68211 - GuillaumeGomez:add-failing-example-e0170, r=Dylan-DPCYuki Okushi-0/+21
Add failing example for E0170 explanation r? @Dylan-DPC
2020-01-15Update E0170.mdDylan DPC-1/+1
2020-01-14Add failing example for E0170 explanationGuillaume Gomez-0/+21
2020-01-14Rollup merge of #68176 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPCYuki Okushi-4/+22
Clean up err codes r? @Dylan-DPC
2020-01-13Clean up E0192 explanationGuillaume Gomez-0/+16
2020-01-13Clean up E0191 explanationGuillaume Gomez-4/+6
2020-01-13Auto merge of #67850 - GuillaumeGomez:err-codes-checkup, r=Mark-Simulacrumbors-16/+28
Error codes checkup and rustdoc test fix This PR does a few things: * fix how rustdoc checks that an error code has been thrown (it only checked for "E0XXX" so if it appeared in the output because the file has it in its name or wherever, it passed the test, which was incorrect) * fix the failing code examples that weren't throwing the expected error code
2020-01-13Rollup merge of #68157 - GuillaumeGomez:clean-up-e0186, r=Dylan-DPCYuki Okushi-1/+17
Clean up E0186 explanation r? @Dylan-DPC
2020-01-12Clean up E0186 explanationGuillaume Gomez-1/+17
2020-01-12Fix error codes explanation' code examplesGuillaume Gomez-16/+28
2020-01-11Rollup merge of #68070 - GuillaumeGomez:clean-up-e0185, r=Dylan-DPCMazdak Farrokhzad-1/+17
clean up E0185 explanation r? @Dylan-DPC
2020-01-10Update E0185.mdDylan DPC-2/+2
2020-01-10Improve E0185 wordingGuillaume Gomez-2/+2
2020-01-09clean up E0185 explanationGuillaume Gomez-1/+17
2020-01-09Rollup merge of #68009 - wcampbell0x2a:spellcheck-librustc_error_codes, ↵Mazdak Farrokhzad-5/+5
r=Centril Spell check librustc_error_codes Found one wrongly spelled error message and decided to check all the error messages for wrongly spelled statements.
2020-01-09Rollup merge of #68005 - GuillaumeGomez:explanation-e0184, r=Dylan-DPCMazdak Farrokhzad-4/+18
Improve E0184 explanation r? @Dylan-DPC
2020-01-08Spell check librustc_error_codeswcampbell-5/+5
Found one wrongly spelled error message and decided to check all the error messages for wrongly spelled statements. Signed-off-by: wcampbell <wcampbell1995@gmail.com>
2020-01-08Improve E0184 explanationGuillaume Gomez-4/+18
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-2/+2
- remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors
2020-01-06Clean up E0178 explanationGuillaume Gomez-7/+18
2020-01-04Update E0164.mdDylan DPC-1/+1
2020-01-04Clean up E0164 explanationGuillaume Gomez-9/+29
2020-01-04Small error explanations cleanupGuillaume Gomez-4/+6
2020-01-03Clean up E0131 error explanationGuillaume Gomez-2/+5
2020-01-02Clean up E0130 error explanationGuillaume Gomez-2/+2
2019-12-30Gammer fixDonough Liu-3/+3
2019-12-30Add error code explanation for E0477Donough Liu-1/+46
2019-12-26Auto merge of #67268 - estebank:assoc-types, r=oli-obkbors-2/+52
Tweak errors for missing associated types and type parameters * On `dyn Trait` missing associated types, provide a structured suggestion for them * On missing type parameters, provide structured suggestion for them * Point at trait definition when missing required type parameter * Tweak output of E0658 * Tweak wording of E0719 * Account for `Trait1 + Trait2` case Fix #66380, fix #60595. CC #63711.
2019-12-24Deprecate Error::description for realDavid Tolnay-15/+15
`description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This commit: - adds #[rustc_deprecated(since = "1.41.0")] to Error::description; - moves description (and cause, which is also deprecated) below the source and backtrace methods in the Error trait; - reduces documentation of description and cause to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call description; - removes the description function of all *currently unstable* Error impls in the standard library; - marks #[allow(deprecated)] the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of description in example code and the compiler.
2019-12-24Handle more specific case E0222Esteban Küber-2/+52
2019-12-24Rollup merge of #67551 - ldm0:E0627, r=Dylan-DPCMazdak Farrokhzad-1/+31
Add long error code explanation message for E0627 Part of #61137. r? @GuillaumeGomez
2019-12-24Rollup merge of #67547 - GuillaumeGomez:cleanup-err-codes, r=Dylan-DPCMazdak Farrokhzad-6/+8
Cleanup err codes r? @Dylan-DPC
2019-12-23adjust E0303 error code docsMazdak Farrokhzad-1/+9