File tree 2 files changed +3
-1
lines changed
compiler/rustc_query_system/src/dep_graph
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1341,7 +1341,8 @@ impl DepNodeColorMap {
1341
1341
}
1342
1342
1343
1343
/// This tries to atomically mark a node green and assign `index` as the new
1344
- /// index.
1344
+ /// index. This returns `Ok` if `index` gets assigned, otherwise it returns
1345
+ /// the alreadly allocated index in `Err`.
1345
1346
#[ inline]
1346
1347
pub ( super ) fn try_mark_green (
1347
1348
& self ,
Original file line number Diff line number Diff line change @@ -585,6 +585,7 @@ impl<D: Deps> EncoderState<D> {
585
585
DepNodeIndex :: from_u32 ( local. next_node_index )
586
586
}
587
587
588
+ /// Marks the index previously returned by `next_index` as used.
588
589
#[ inline]
589
590
fn bump_index ( & self , local : & mut LocalEncoderState ) {
590
591
local. remaining_node_index -= 1 ;
You can’t perform that action at this time.
0 commit comments