-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use insert_same
in insert_evaluation_cache
#73792
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
Use insert_same
in insert_evaluation_cache
#73792
Conversation
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #75055) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @eddyb |
8570de3
to
ce09d22
Compare
The code change looks correct, but deferring to @eddyb |
r? @nikomatsakis or @matthewjasper |
// This should be changed to use HashMapExt::insert_same | ||
// when that is fixed | ||
self.tcx().evaluation_cache.insert(param_env.and(trait_ref), dep_node, result); | ||
self.tcx().evaluation_cache.insert_same(param_env.and(trait_ref), dep_node, result); |
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.
So, #50507 is not yet closed -- but I think it is maybe specific to parallel execution? i.e., what prompted this PR?
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.
I was looking for issues to work on in the list at #48685, and found a reference to that issue. I began investigating the panic
mentioned in the issue description, and was unable to reproduce it.
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
ce09d22
to
53056bd
Compare
@nikomatsakis can we merge this or is this blocked on #50507 being merged first? |
Yeah, sorry, I got very distracted. I think I'd be inclined not to land this PR until #50507 is closed, just because it may cause unexpected problems if we were to enable the parallel mode. I guess the main thing would be to track down the problem -- though the bug report is pretty vague. In any case, it's borderline, but I'm inclined to just leave the code for now since it's just one line. @GabrielMajeri I do appreciate the PR though! Sorry for the confusion. :( |
Closes #50507.
I was trying to fix this issue, but it seems the reported crash doesn't happen anymore.