Rust: Add missing long error code explanations

Created on 24 May 2019  路  25Comments  路  Source: rust-lang/rust

This is a re-opening of #32777.

Explanations

Those error codes and their explanations are declared in files named error_codes.rs. In those files, you can see generally two macros: register_diagnostics and register_long_diagnostics. If an error code is in register_diagnostics, it means it lacks long error explanation. The goal of this issue is to add those missing explanations!

This is an easy first issue but don't hesitate to ask for help if you're stuck on something!

Here is the list of all error codes that don't have a long error explanation yet:

  • [ ] E0183
  • [x] E0203 (#66880)
  • [ ] E0208
  • [ ] E0212
  • [ ] E0224
  • [ ] E0226
  • [ ] E0227
  • [ ] E0228
  • [ ] E0278
  • [ ] E0279
  • [ ] E0280
  • [x] E0284
  • [x] E0307 (#64110)
  • [ ] E0311
  • [x] E0312 (#64347)
  • [ ] E0313
  • [ ] E0314
  • [ ] E0315
  • [ ] E0316
  • [ ] E0320
  • [ ] E0456
  • [ ] E0457
  • [ ] E0514
  • [ ] E0460
  • [ ] E0461
  • [ ] E0462
  • [ ] E0464
  • [ ] E0465
  • [ ] E0472
  • [ ] E0473
  • [ ] E0474
  • [ ] E0475
  • [ ] E0476
  • [ ] E0477
  • [ ] E0479
  • [ ] E0480
  • [ ] E0481
  • [ ] E0482
  • [ ] E0483
  • [ ] E0484
  • [ ] E0485
  • [ ] E0486
  • [ ] E0487
  • [ ] E0488
  • [ ] E0489
  • [ ] E0490
  • [x] E0493 (#64377)
  • [x] E0495 (https://github.com/rust-lang/rust/pull/64404)
  • [ ] E0498
  • [ ] E0519
  • [ ] E0521
  • [ ] E0523
  • [x] E0524 (#64428)
  • [ ] E0526
  • [x] E0531 (#64455)
  • [x] E0533 (https://github.com/rust-lang/rust/pull/64735)
  • [ ] E0539 (error than can only appear inside libstd code)
  • [ ] E0540 (error than can only appear inside libstd code)
  • [ ] E0542 (error than can only appear inside libstd code)
  • [ ] E0543 (error than can only appear inside libstd code)
  • [ ] E0544 (error than can only appear inside libstd code)
  • [ ] E0545 (error than can only appear inside libstd code)
  • [ ] E0546 (error than can only appear inside libstd code)
  • [ ] E0547 (error than can only appear inside libstd code)
  • [ ] E0549 (error than can only appear inside libstd code)
  • [x] E0550 (https://github.com/rust-lang/rust/pull/64838)
  • [x] E0551 (https://github.com/rust-lang/rust/pull/64918)
  • [ ] E0553 (internal rustc error)
  • [x] E0556 (https://github.com/rust-lang/rust/pull/65055)
  • [x] E0561 (#65098)
  • [x] E0564 (#65135) not emitted anymore
  • [x] E0566 (#65164)
  • [x] E0567 (https://github.com/rust-lang/rust/pull/65179)
  • [x] E0568 (#65205)
  • [x] E0573 (#65234)
  • [x] E0574 (#65308)
  • [x] E0575 (#65334)
  • [x] E0576 (#65390)
  • [x] E0577 (#65434)
  • [x] E0578 (#65471)
  • [x] E0584 (https://github.com/rust-lang/rust/pull/65493)
  • [x] E0587 (#65563)
  • [x] E0588 (#65591)
  • [x] E0592 (#61822)
  • [x] E0594 (#66155)
  • [ ] E0598 (not thrown anymore)
  • [x] E0623 (#66186)
  • [ ] E0625
  • [ ] E0627
  • [x] E0628 (#69867)
  • [ ] E0629
  • [ ] E0630
  • [x] E0631 (#66979)
  • [ ] E0632
  • [x] E0634 (#69998)
  • [x] E0637 (#68908)
  • [ ] E0640
  • [ ] E0641
  • [ ] E0645
  • [ ] E0657
  • [x] E0666
  • [ ] E0667
  • [ ] E0687
  • [ ] E0688
  • [x] E0693 (#69993)
  • [ ] E0694
  • [ ] E0696
  • [x] E0697 (#65215)
  • [ ] E0703
  • [ ] E0706
  • [ ] E0707
  • [ ] E0708
  • [ ] E0709
  • [ ] E0710
  • [ ] E0711
  • [ ] E0717
  • [x] E0719 (#69620)
  • [ ] E0721
  • [ ] E0722
  • [ ] E0724
  • [ ] E0726
  • [ ] E0727
  • [x] E0728
  • [x] E0734 (https://github.com/rust-lang/rust/pull/64763)
  • [x] E0739 (#69876)
  • [x] E0740 (#65405)
A-diagnostics C-tracking-issue D-newcomer-roadblock E-easy E-help-wanted T-compiler T-doc

Most helpful comment

@ayushmishra2005 Sorry, completely fell behind. Updating the errors list. Thanks a lot for working on this issue! :)

All 25 comments

Can I take one of these on?

@imbrem: Sure, go ahead! When you open a PR, please link to this issue so others can see what's being worked on.

Done! Actually, should I have requested/should I request you as a reviewer?

Can I take one of these on too?

Sure, go ahead (and thanks!). Just like I told previously: don't forget to link to this issue once your PR is open so we can keep track. :)

E0307 handled in #64110.

@GuillaumeGomez Could you make E0697 checked? It's done in #65215.

@GuillaumeGomez could you make E0666 and E0728 checked? It's done in #65855 and #65678.

@JohnTitor done

I was looking into E0183 and I cannot find where any explanation for it exists at all.
Do I have to try and make each error happen myself, in order to document it, or is there something I am missing entirely?

@GuillaumeGomez E0623 should point to #66186, not #66018

How would I do this now that each error is in it's own .md file after #66314

The same but putting it into its own .md file?

E0203 handled by #66880

I'd love to take on E0631! Will link back here in the PR once it's done.

I would like to address E0637. PR #68908

@jwhite927 Sure, go ahead!

Working on E0719 right now! https://github.com/rust-lang/rust/pull/69620

@GuillaumeGomez I am picking E0628. I will link PR, once it is done.

@GuillaumeGomez I am picking E0693. I will link PR, once it is done.

@GuillaumeGomez next I am picking E0634. I will link PR, once it is done.

@ayushmishra2005 Sorry, completely fell behind. Updating the errors list. Thanks a lot for working on this issue! :)

I am picking E0657

I am picking E0696

PR for E0539

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcarton picture mcarton  路  3Comments

drewcrawford picture drewcrawford  路  3Comments

lambda-fairy picture lambda-fairy  路  3Comments

modsec picture modsec  路  3Comments

SharplEr picture SharplEr  路  3Comments