Skip to content

PanicInfo nearly useless in no_std enviroment without nightly features #110098

Closed as not planned
@Gip-Gip

Description

@Gip-Gip

I'm writing a simple panic handler for my embedded system which flashes an LED in pseudo-morse code to tell the user what error occurred. I need the error message, however I can't get it without the nightly PanicInfo.message(). There is no reason I should be forced to use nightly to use such a basic feature.

I get why it may have not been stabilized immediately, but .message() was basically left to die in 2019 and my panic handler is 100% useless without .message() since panics using core have no payload.

It is very frustrating to develop a substantial firmware and not have a user friendly panic handler without relying on unstable features, especially since .message() has been unstable for over 4 years. There is no reason this important feature shouldn't have been addressed by now.

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