-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Three small fixes for save-analysis #43533
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,7 +409,7 @@ impl<'a> SpanUtils<'a> { | |
|
||
// Otherwise, a generated span is deemed invalid if it is not a sub-span of the root | ||
// callsite. This filters out macro internal variables and most malformed spans. | ||
!parent.source_callsite().contains(parent) | ||
!parent.source_callsite().contains(sub_span.unwrap()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm weary of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or just change 401-403 to |
||
} | ||
} | ||
|
||
|
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.
Shouldn't we be using
FxHashSet
in the compiler?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.
Probably, although I image the performance impact would be negligible here.