File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ enum PatState<'a> {
224
224
/// A std enum we know won't be extended. Tracks the states of each variant separately.
225
225
///
226
226
/// This is not used for `Option` since it uses the current pattern to track its state.
227
- StdEnum ( & ' a mut [ PatState < ' a > ] ) ,
227
+ StdEnum ( & ' a mut [ Self ] ) ,
228
228
/// Either the initial state for a pattern or a non-std enum. There is currently no need to
229
229
/// distinguish these cases.
230
230
///
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ pub enum Constant<'tcx> {
54
54
/// `true` or `false`.
55
55
Bool ( bool ) ,
56
56
/// An array of constants.
57
- Vec ( Vec < Constant < ' tcx > > ) ,
57
+ Vec ( Vec < Self > ) ,
58
58
/// Also an array, but with only one constant, repeated N times.
59
- Repeat ( Box < Constant < ' tcx > > , u64 ) ,
59
+ Repeat ( Box < Self > , u64 ) ,
60
60
/// A tuple of constants.
61
- Tuple ( Vec < Constant < ' tcx > > ) ,
61
+ Tuple ( Vec < Self > ) ,
62
62
/// A raw pointer.
63
63
RawPtr ( u128 ) ,
64
64
/// A reference
65
- Ref ( Box < Constant < ' tcx > > ) ,
65
+ Ref ( Box < Self > ) ,
66
66
/// A literal with syntax error.
67
67
Err ,
68
68
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub enum Sugg<'a> {
33
33
/// or `-`, but only if the type with and without the operator is kept identical.
34
34
/// It means that doubling the operator can be used to remove it instead, in
35
35
/// order to provide better suggestions.
36
- UnOp ( UnOp , Box < Sugg < ' a > > ) ,
36
+ UnOp ( UnOp , Box < Self > ) ,
37
37
}
38
38
39
39
/// Literal constant `0`, for convenience.
You can’t perform that action at this time.
0 commit comments