Skip to content

The help for deprecated panic_implementation attribute is bad #54246

Closed
@nagisa

Description

@nagisa
warning: use of deprecated attribute `panic_implementation`: This attribute was renamed to `panic_handler`. See https://github.com/rust-lang/rust/issues/44489#issuecomment-415140224
  --> test.rs:13:1
   |
13 | #[panic_implementation]
   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: #[warn(deprecated)] on by default

Namely,

   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute

will not help at all in resolving the issue. The help should either not exist at all or suggest replacement to #[panic_handler] (moving the suggestion from the warning itself).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions