-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc: add Span
s to inferred_outlives_of
predicates.
#65541
Conversation
@bors try |
cc @michaelwoerister @nikomatsakis This is post-#59953 / pre-#59789, you may want to take a look. |
@bors rollup=never (may cause perf regressions) |
☀️ Try build successful - checks-azure |
@rust-timer build 0fc2031 |
Queued 0fc2031 with parent fa0f7d0, future comparison URL. |
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.
r=me modulo fixmes, perf
Finished benchmarking try commit 0fc2031, comparison URL. |
@bors try |
☀️ Try build successful - checks-azure |
@rust-timer build c9b528f |
Queued c9b528f with parent 518deda, future comparison URL. |
2e387e2
to
f93d9d4
Compare
Finished benchmarking try commit c9b528f, comparison URL. |
// it's not local to the crate the Span is found in. | ||
if self.source_file_cache.is_imported() { | ||
return TAG_INVALID_SPAN.encode(self) | ||
} |
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.
cc @petrochenkov I had to add this because decoding assumes Span
s are always from each crate's own files, not some transitive dependency.
I wonder if this should be an assert instead - I could enforce that the Span
s computed for inferred_outlives_of
are always from the definition of the type, not some other type (which is how the last commit in this PR triggered the problem).
r? @nikomatsakis (already left a review) |
f93d9d4
to
1ca8da4
Compare
@bors r+ |
📌 Commit 1ca8da4 has been approved by |
⌛ Testing commit 1ca8da4 with merge e37348e245cd7314c1edb733bd9af6ffd267e610... |
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
@bors retry (spurious network error) |
…nikomatsakis rustc: add `Span`s to `inferred_outlives_of` predicates. This would simplify rust-lang#59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
…nikomatsakis rustc: add `Span`s to `inferred_outlives_of` predicates. This would simplify rust-lang#59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
rustc: add `Span`s to `inferred_outlives_of` predicates. This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
☀️ Test successful - checks-azure |
This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate
Span
s much atm).