Remove unneeded field from SwitchTargets
This commit is contained in:
@@ -526,12 +526,6 @@ pub enum TerminatorKind<'tcx> {
|
||||
SwitchInt {
|
||||
/// The discriminant value being tested.
|
||||
discr: Operand<'tcx>,
|
||||
|
||||
/// The type of value being tested.
|
||||
/// This is always the same as the type of `discr`.
|
||||
/// FIXME: remove this redundant information. Currently, it is relied on by pretty-printing.
|
||||
switch_ty: Ty<'tcx>,
|
||||
|
||||
targets: SwitchTargets,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user