Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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/valuable integration #1608
Feature/valuable integration #1608
Changes from 24 commits
13f01f8
1638739
bb74cfb
cfee46a
3f3a477
e228504
5919719
344c43e
7d2e431
b848ee0
bc4d326
9735ac5
9ade843
5e93474
3bb628c
e7770f6
0ef179f
d9f1aa8
e5fc2d3
aed9534
3177709
c7ac0ac
a24c78d
67e1bbd
9d22b47
16e0c8b
062a6ea
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
this causes cargo to download the
valuable
crate even though it isn't actually used withouttracing_unstable
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.
a potential thought, although i'm not sure whether or not it's necessary:
valuable
's list of primitive types has some overlaps withtracing
's. we may want to consider doing something where we callValuable::as_value
, match on the result, and call theVisit
type'srecord_$TY
methods for tracing primitive types if the value is a tracing primitive? e.g.I'm not totally sure if this is the right approach or not, but the thought process here is that visitors that are aware of
Valuable
will probably still implement therecord_$TY
methods for various tracing primitives as well, since a majority of the values recorded will not beValuable
s. but, the visitor implementation could always handle the duplicated code itself...idk if this is worth doing here or not. probably worth testing it out in your own code and seeing how it feels...