We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
StackEntry
1 parent 39d8081 commit 8e0a8c6Copy full SHA for 8e0a8c6
compiler/rustc_borrowck/src/dataflow.rs
@@ -239,6 +239,10 @@ pub fn calculate_borrows_out_of_scope_at_location<'tcx>(
239
prec.borrows_out_of_scope_at_location
240
}
241
242
+/// An entry in the CFG walk stack of the scope computation, recording visited statements within a
243
+/// block, in case of cycles requiring revisiting the same block but at earlier points.
244
+// FIXME: `precompute_borrows_out_of_scope` has stopped using this structure, and a similar
245
+// reorganizing of `precompute_loans_out_of_scope` could also avoid it.
246
struct StackEntry {
247
bb: mir::BasicBlock,
248
lo: usize,
0 commit comments