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

Add track_caller attributes so that panic! sees the correct line number #16

Merged
merged 6 commits into from
Mar 12, 2025

Conversation

urkle
Copy link
Contributor

@urkle urkle commented Feb 26, 2025

This obviates the need for at_location and the 2 macros. And this makes it so the line number hint printed by panic! is correct and IDE linking works as expected.

Also I bumped the edition to 2021 and applied clippy check adjustments.

@urkle
Copy link
Contributor Author

urkle commented Mar 11, 2025

@oknozor thoughts? This greatly improves the output and traced line #s.

@oknozor oknozor merged commit 52e7831 into oknozor:main Mar 12, 2025
1 of 2 checks passed
@oknozor
Copy link
Owner

oknozor commented Mar 12, 2025

Thanks @urkle !

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.

2 participants