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 @@ -50,15 +50,15 @@ pub enum Constant {
50
50
/// `true` or `false`.
51
51
Bool ( bool ) ,
52
52
/// An array of constants.
53
- Vec ( Vec < Constant > ) ,
53
+ Vec ( Vec < Self > ) ,
54
54
/// Also an array, but with only one constant, repeated N times.
55
- Repeat ( Box < Constant > , u64 ) ,
55
+ Repeat ( Box < Self > , u64 ) ,
56
56
/// A tuple of constants.
57
- Tuple ( Vec < Constant > ) ,
57
+ Tuple ( Vec < Self > ) ,
58
58
/// A raw pointer.
59
59
RawPtr ( u128 ) ,
60
60
/// A reference
61
- Ref ( Box < Constant > ) ,
61
+ Ref ( Box < Self > ) ,
62
62
/// A literal with syntax error.
63
63
Err ,
64
64
}
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