1
Fork 0

Put a BlockTailInfo in BlockFrame::TailExpr.

Because it has the same fields, and avoids the need to deconstruct the
latter to construct the former.
This commit is contained in:
Nicholas Nethercote 2025-02-13 14:27:06 +11:00
parent 5d2d11fd5d
commit c49e2df668
4 changed files with 10 additions and 21 deletions

View file

@ -937,7 +937,7 @@ mod binding_form_impl {
/// involved in borrow_check errors, e.g., explanations of where the
/// temporaries come from, when their destructors are run, and/or how
/// one might revise the code to satisfy the borrow checker's rules.
#[derive(Clone, Debug, TyEncodable, TyDecodable, HashStable)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, TyEncodable, TyDecodable, HashStable)]
pub struct BlockTailInfo {
/// If `true`, then the value resulting from evaluating this tail
/// expression is ignored by the block's expression context.