Skip to content

Add error codes for all errors #42229

Closed
Closed
@Susurrus

Description

@Susurrus
Contributor

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

Activity

GuillaumeGomez

GuillaumeGomez commented on May 26, 2017

@GuillaumeGomez
Member

Ah nice, I'll work on it then!

added a commit that references this issue on May 29, 2017

Auto merge of #42264 - GuillaumeGomez:new-error-codes, r=Susurrus

added 3 commits that reference this issue on Jun 1, 2017

Rollup merge of rust-lang#42302 - GuillaumeGomez:new-error-codes-next…

Rollup merge of rust-lang#42302 - GuillaumeGomez:new-error-codes-next…

added 2 commits that reference this issue on Jun 3, 2017

Auto merge of #42387 - GuillaumeGomez:error-codes-next, r=Susurrus

Auto merge of #42361 - GuillaumeGomez:error-codes, r=arielb1

13 remaining items

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

Metadata

Metadata

Labels

A-diagnosticsArea: Messages for errors, warnings, and lints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Susurrus@GuillaumeGomez@Mark-Simulacrum

      Issue actions

        Add error codes for all errors · Issue #42229 · rust-lang/rust