Account for possible boxable impl Future
in semicolon removal suggestions
This commit is contained in:
parent
a4ee3ca1e4
commit
671d7c4afb
7 changed files with 152 additions and 32 deletions
|
@ -344,7 +344,7 @@ static_assert_size!(ObligationCauseCode<'_>, 32);
|
|||
pub struct MatchExpressionArmCause<'tcx> {
|
||||
pub arm_span: Span,
|
||||
pub scrut_span: Span,
|
||||
pub semi_span: Option<Span>,
|
||||
pub semi_span: Option<(Span, bool)>,
|
||||
pub source: hir::MatchSource,
|
||||
pub prior_arms: Vec<Span>,
|
||||
pub last_ty: Ty<'tcx>,
|
||||
|
@ -357,7 +357,7 @@ pub struct IfExpressionCause {
|
|||
pub then: Span,
|
||||
pub else_sp: Span,
|
||||
pub outer: Option<Span>,
|
||||
pub semicolon: Option<Span>,
|
||||
pub semicolon: Option<(Span, bool)>,
|
||||
pub opt_suggest_box_span: Option<Span>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue