-
Notifications
You must be signed in to change notification settings - Fork 850
tracing: fix record_all panic #3432
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
Conversation
2676a31 to
cf67fdb
Compare
cf67fdb to
fe8b887
Compare
hds
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
I think it would be good to have a little more test coverage. Especially because these macros are frequent sources of unintentional breaking changes.
609f97c to
650894d
Compare
hds
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you for this fix!
Motivation
Fixes #3431
Solution
This is horrible. We rename
valueset!tovalueset_all!, then we re-introduce the originalvalueset!with some notable changes.The new
valueset!doesn't use fields from the fieldset iterator, it instead usesFieldSet::field(...)to find the correct field. If the field isn't found, we set a fallback field that will be ignored (callsites are not equal).