File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -638,6 +638,14 @@ mod binding_form_impl {
638
638
}
639
639
}
640
640
641
+ /// `BlockTailInfo` is attached to the `LocalDecl` for temporaries
642
+ /// created during evaluation of expressions in a block tail
643
+ /// expression; that is, a block like `{ STMT_1; STMT_2; EXPR }`.
644
+ ///
645
+ /// It is used to improve diagnostics when such temporaries are
646
+ /// involved in borrow_check errors, e.g. explanations of where the
647
+ /// temporaries come from, when their destructors are run, and/or how
648
+ /// one might revise the code to satisfy the borrow checker's rules.
641
649
#[ derive( Clone , Debug , RustcEncodable , RustcDecodable ) ]
642
650
pub struct BlockTailInfo {
643
651
/// If `true`, then the value resulting from evaluating this tail
You can’t perform that action at this time.
0 commit comments