-
Notifications
You must be signed in to change notification settings - Fork 13k
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
incr.comp.: Assert that no DepNode is re-opened (see issue #42298). #43590
Conversation
// A set to help assert that no two tasks use the same DepNode. This is a | ||
// temporary measure. Once we load the previous dep-graph as readonly, this | ||
// check will fall out of the graph implementation naturally. | ||
opened_once: FxHashSet<DepNode>, |
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.
maybe we want to make #[cfg(debug_assertions)]
?
r=me -- but decide if you think it should be |
@bors r=nikomatsakis Since this should only ever be hit in incremental mode and that is almost exclusively used with debug-assertions-enabled nightlies, I think it's OK to leave it the way it is. |
📌 Commit 6bb0693 has been approved by |
⌛ Testing commit 6bb0693 with merge 189ca70d2b10391ebdcea00135b4cb76579bb3a0... |
💔 Test failed - status-travis |
|
@bors r=nikomatsakis Passes travis now after the fixes. Let's give it another try. |
📌 Commit b34c5a2 has been approved by |
⌛ Testing commit b34c5a2 with merge 6ae9c4835c091a7692fdd70376845e5c9f26df52... |
💔 Test failed - status-appveyor |
@bors retry #40474 —
|
incr.comp.: Assert that no DepNode is re-opened (see issue #42298). This PR removes the last occurrence of DepNode re-opening and adds an assertion that prevents our doing so in the future too. The DepGraph should no be guaranteed to be cycle free. r? @nikomatsakis EDIT: Closes #42298
☀️ Test successful - status-appveyor, status-travis |
This PR removes the last occurrence of DepNode re-opening and adds an assertion that prevents our doing so in the future too. The DepGraph should now be guaranteed to be cycle free.
r? @nikomatsakis
EDIT: Closes #42298