We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BlockTailInfo
1 parent 056cfff commit 704877fCopy full SHA for 704877f
src/librustc/mir/mod.rs
@@ -638,6 +638,14 @@ mod binding_form_impl {
638
}
639
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.
649
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
650
pub struct BlockTailInfo {
651
/// If `true`, then the value resulting from evaluating this tail
0 commit comments