Remove scrutinee_hir_id from ExprKind::Match
It is unused
This commit is contained in:
parent
aaa8614934
commit
768a5bd470
3 changed files with 1 additions and 3 deletions
|
@ -376,7 +376,6 @@ pub enum ExprKind<'tcx> {
|
||||||
/// A `match` expression.
|
/// A `match` expression.
|
||||||
Match {
|
Match {
|
||||||
scrutinee: ExprId,
|
scrutinee: ExprId,
|
||||||
scrutinee_hir_id: HirId,
|
|
||||||
arms: Box<[ArmId]>,
|
arms: Box<[ArmId]>,
|
||||||
match_source: MatchSource,
|
match_source: MatchSource,
|
||||||
},
|
},
|
||||||
|
|
|
@ -828,7 +828,6 @@ impl<'tcx> ThirBuildCx<'tcx> {
|
||||||
},
|
},
|
||||||
hir::ExprKind::Match(discr, arms, match_source) => ExprKind::Match {
|
hir::ExprKind::Match(discr, arms, match_source) => ExprKind::Match {
|
||||||
scrutinee: self.mirror_expr(discr),
|
scrutinee: self.mirror_expr(discr),
|
||||||
scrutinee_hir_id: discr.hir_id,
|
|
||||||
arms: arms.iter().map(|a| self.convert_arm(a)).collect(),
|
arms: arms.iter().map(|a| self.convert_arm(a)).collect(),
|
||||||
match_source,
|
match_source,
|
||||||
},
|
},
|
||||||
|
|
|
@ -151,7 +151,7 @@ impl<'p, 'tcx> Visitor<'p, 'tcx> for MatchVisitor<'p, 'tcx> {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ExprKind::Match { scrutinee, scrutinee_hir_id: _, box ref arms, match_source } => {
|
ExprKind::Match { scrutinee, box ref arms, match_source } => {
|
||||||
self.check_match(scrutinee, arms, match_source, ex.span);
|
self.check_match(scrutinee, arms, match_source, ex.span);
|
||||||
}
|
}
|
||||||
ExprKind::Let { box ref pat, expr } => {
|
ExprKind::Let { box ref pat, expr } => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue