Skip to content

panic_implementation: Error message talks about the panic_impl lang item when missing #51341

Closed

Description

@phil-opp

If the new panic_implementation attribute is missing, the error message mentions the a panic_impl lang item:

error: language item required, but not found: `panic_impl`

Instead it should probably mention that a panic_implementation function is missing.

Edit: Seems like I didn't read it carefully enough. The error message doesn't mention the old panic_fmt language item, but a new panic_impl language item. Either way, a error message mentioning the panic_implementation attribute would be better.

Activity

  1. changed the title [-]panic_implementation: Error message still talks about the panic_fmt lang item when missing[/-] [+]panic_implementation: Error message talks about the panic_impl lang item when missing[/+] on Jun 4, 2018
  2. japaric commented on Jun 4, 2018

    @japaric
    Contributor

    Under the hood we have replaced the old panic_fmt with a new panic_impl lang item but this is an implementation detail of #[panic_implementation]. I think we can special case the error message for missing panic_impl to, instead, mention #[panic_implementation] but, off the top of my head, I don't know where that would be in the code base.

  3. added a commit that references this issue on Jun 29, 2018
    faaf250
  4. added a commit that references this issue on Jun 30, 2018
    b7bd4aa
  5. added a commit that references this issue on Jun 30, 2018
    9f3ca33
  6. added a commit that references this issue on Jul 1, 2018
    87b714b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions