-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Make SelectionCache and EvaluationCache thread-safe #49834
Conversation
Your PR failed on Travis (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 |
// This may overwrite the cache with the same value | ||
tcx.selection_cache | ||
.hashmap.borrow_mut() | ||
.insert(trait_ref, WithDepNode::new(dep_node, candidate)); |
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.
Given the comment above, should this also use insert_same()
?
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.
The inserted type doesn't implement Eq
.
@bors r+ |
📌 Commit 9d48917 has been approved by |
This doesn't work since @bors r- |
☔ The latest upstream changes (presumably #49558) made this pull request unmergeable. Please resolve the merge conflicts. |
Your PR failed on Travis (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 |
@Zoxc to be honest I didn't think too hard here-- and I still haven't. =) Can you spell out the problem, and do you have any ideas for how to solve? |
@nikomatsakis I though maps in |
Ping from triage, @Zoxc and @nikomatsakis ! Will you have time to make progress on this in the near future? |
The job 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 |
Ping from triage, @Zoxc ! You have test failures. |
I've created #50507 for the bug which overwrites the cache and added a fixme to use |
@bors r+ |
📌 Commit f741ee1 has been approved by |
Make SelectionCache and EvaluationCache thread-safe Split out from #49558 r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Split out from #49558
r? @nikomatsakis