-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix find_format_arg_expr
when incremental compilation is enabled
#10980
Fix find_format_arg_expr
when incremental compilation is enabled
#10980
Conversation
r? @dswij (rustbot has picked a reviewer for you, use r? to override) |
17f8fdd
to
c4be901
Compare
c4be901
to
26e78e7
Compare
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.
LGTM, thanks for this!
// When incremental compilation is enabled spans gain a parent during AST to HIR lowering, | ||
// since we're comparing an AST span to a HIR one we need to ignore the parent field |
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.
Huh, TIL 👀
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #10969
lower_span
gives AST spans a parent when lowering to the HIR. That meant the==
span comparison would return false even though the spans are pointing to the same thing. We now ignore the parent when comparing the spansDebugging this was quite the puzzle, because the parent is not included in the debug output of
Span
s orSpanData
😬changelog: none