New issue

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

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

Already on GitHub? Sign in to your account

Add error codes for all errors #42229

Closed
Susurrus opened this Issue May 25, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented May 26, 2017

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

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

bors added a commit that referenced this issue Jun 22, 2017

frewsxcv added a commit to frewsxcv/rust that referenced this issue Jun 27, 2017

Rollup merge of rust-lang#42519 - GuillaumeGomez:create-more-error-co…
…des, r=QuietMisdreavus

Create more error codes

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

cc @Susurrus
@GuillaumeGomez

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented Jul 11, 2017

All done in here!

@Susurrus

This comment has been minimized.

Copy link
Contributor

Susurrus commented Jul 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment