-
Notifications
You must be signed in to change notification settings - Fork 13k
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
What is the stability guarantee of #[track_caller]
locations?
#88302
Comments
I would argue that the stability guarantees should be the same as for the output of |
I think to do this correctly we need better backtrace support, similar to java's stack walker. That was introduced because their internal In other words prior art shows that relying on fixed-count stack frame inspection for important functionality is a maintenance burden and traversal with filtering is a more robust approach. |
We discussed this in the library api meeting just now. We agreed that
|
Given that this is answered in #88302 (comment), I'll close it. |
This is inspired by #87401
The general version of that bug is that any time a call to a trait method that might have had
#[track_caller]
in itsimpl
is moved or wrapped, then the location can change. When, if ever, is a change to a location a breaking change?The text was updated successfully, but these errors were encountered: