Add test cases and address review comments
This commit is contained in:
parent
5d2a935e6c
commit
dc53cfea7e
5 changed files with 156 additions and 19 deletions
|
@ -350,7 +350,7 @@ pub struct MatchExpressionArmCause<'tcx> {
|
|||
pub prior_arms: Vec<Span>,
|
||||
pub last_ty: Ty<'tcx>,
|
||||
pub scrut_hir_id: hir::HirId,
|
||||
pub suggest_box: Option<Span>,
|
||||
pub opt_suggest_box_span: Option<Span>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -359,7 +359,7 @@ pub struct IfExpressionCause {
|
|||
pub else_sp: Span,
|
||||
pub outer: Option<Span>,
|
||||
pub semicolon: Option<Span>,
|
||||
pub suggest_box: Option<Span>,
|
||||
pub opt_suggest_box_span: Option<Span>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Lift)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue