Skip to content
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

[Feature] std::panic::Location support #291

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

onlycs
Copy link

@onlycs onlycs commented Mar 6, 2024

closes #142

#[derive(Debug, Error)]
struct MyError {
  #[from] err: SomeOtherError,
  #[location] /*optional attr*/ location: &'static Location<'static>,
}

@onlycs onlycs changed the title Create the location field and the #[location] attr, to be used with &'static core::panic::Location<'static> [Feature] std::panic::Location support Mar 6, 2024
@mpalmer
Copy link

mpalmer commented Jun 12, 2024

This is a solid change. I've started using it in a project of mine and it's working great.

@juntyr
Copy link

juntyr commented Jul 16, 2024

+1

sync fork
@ishbir
Copy link

ishbir commented Sep 27, 2024

Anything blocking the merge of this? It would be a great feature to have!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for tracing with Std::panic::Location (Feature Request)
4 participants