Skip to content

Add error codes for all errors #42229

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
7 tasks done
Susurrus opened this issue May 25, 2017 · 3 comments
Closed
7 tasks done

Add error codes for all errors #42229

Susurrus opened this issue May 25, 2017 · 3 comments
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@Susurrus
Copy link
Contributor

Susurrus commented May 25, 2017

This is related to work for adding explanations for all errors (#32777) and updating all errors to the new error format (#35233). Unfortunately not all errors have error codes. This is a tracking issue for those errors. I'd think eventually we'd want error codes for all errors so that they're easy to reference.

  • Field unknown: attempted access of field _ on type _, but no field with that name was found
  • Doesn't live long enough: _ does not live long enough
  • Temporary doesn't live long enough: borrowed value does not live long enough
  • Better mutability: cannot borrow immutable borrowed content _ as mutable
  • Type unknown: the type of this value must be known in this context
  • Non-scalar cast: non-scalar cast: _ as _
  • No associated item: no associated item named _ found for type _ in the current scope

cc @GuillaumeGomez

@GuillaumeGomez
Copy link
Member

Ah nice, I'll work on it then!

@GuillaumeGomez GuillaumeGomez self-assigned this May 26, 2017
This was referenced May 27, 2017
bors added a commit that referenced this issue May 29, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Jun 1, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Jun 1, 2017
This was referenced Jun 1, 2017
bors added a commit that referenced this issue Jun 3, 2017
bors added a commit that referenced this issue Jun 6, 2017
This was referenced Jun 7, 2017
bors added a commit that referenced this issue Jun 11, 2017
This was referenced Jun 12, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Jun 13, 2017
bors added a commit that referenced this issue Jun 16, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Jun 16, 2017
@Mark-Simulacrum Mark-Simulacrum added the A-diagnostics Area: Messages for errors, warnings, and lints label Jun 23, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Jun 27, 2017
…des, r=QuietMisdreavus

Create more error codes

Fixes rust-lang#31174.
Part of rust-lang#42229.

cc @Susurrus
@GuillaumeGomez
Copy link
Member

All done in here!

@Susurrus
Copy link
Contributor Author

Awesome, thanks for your hard work on all these changes @GuillaumeGomez!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

3 participants