We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a1efb commit 9bb8430Copy full SHA for 9bb8430
compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -1341,7 +1341,8 @@ impl DepNodeColorMap {
1341
}
1342
1343
/// This tries to atomically mark a node green and assign `index` as the new
1344
- /// index.
+ /// index. This returns `Ok` if `index` gets assigned, otherwise it returns
1345
+ /// the alreadly allocated index in `Err`.
1346
#[inline]
1347
pub(super) fn try_mark_green(
1348
&self,
compiler/rustc_query_system/src/dep_graph/serialized.rs
@@ -585,6 +585,7 @@ impl<D: Deps> EncoderState<D> {
585
DepNodeIndex::from_u32(local.next_node_index)
586
587
588
+ /// Marks the index previously returned by `next_index` as used.
589
590
fn bump_index(&self, local: &mut LocalEncoderState) {
591
local.remaining_node_index -= 1;
0 commit comments