@@ -6,21 +6,21 @@ use super::*;
6
6
// fn c(x: i32, ) {}
7
7
// fn d(x: i32, y: ()) {}
8
8
pub ( super ) fn param_list_fn_def ( p : & mut Parser ) {
9
- list_ ( p, Flavor :: FnDef )
9
+ list_ ( p, Flavor :: FnDef ) ;
10
10
}
11
11
12
12
// test param_list_opt_patterns
13
13
// fn foo<F: FnMut(&mut Foo<'a>)>(){}
14
14
pub ( super ) fn param_list_fn_trait ( p : & mut Parser ) {
15
- list_ ( p, Flavor :: FnTrait )
15
+ list_ ( p, Flavor :: FnTrait ) ;
16
16
}
17
17
18
18
pub ( super ) fn param_list_fn_ptr ( p : & mut Parser ) {
19
- list_ ( p, Flavor :: FnPointer )
19
+ list_ ( p, Flavor :: FnPointer ) ;
20
20
}
21
21
22
22
pub ( super ) fn param_list_closure ( p : & mut Parser ) {
23
- list_ ( p, Flavor :: Closure )
23
+ list_ ( p, Flavor :: Closure ) ;
24
24
}
25
25
26
26
#[ derive( Debug , Clone , Copy ) ]
@@ -104,13 +104,13 @@ fn param(p: &mut Parser, m: Marker, flavor: Flavor) -> Variadic {
104
104
Flavor :: FnDef => {
105
105
patterns:: pattern ( p) ;
106
106
if variadic_param ( p) {
107
- res = Variadic ( true )
107
+ res = Variadic ( true ) ;
108
108
} else if p. at ( T ! [ : ] ) {
109
- types:: ascription ( p)
109
+ types:: ascription ( p) ;
110
110
} else {
111
111
// test_err missing_fn_param_type
112
112
// fn f(x y: i32, z, t: i32) {}
113
- p. error ( "missing type for function parameter" )
113
+ p. error ( "missing type for function parameter" ) ;
114
114
}
115
115
}
116
116
// test value_parameters_no_patterns
@@ -128,11 +128,11 @@ fn param(p: &mut Parser, m: Marker, flavor: Flavor) -> Variadic {
128
128
if ( p. at ( IDENT ) || p. at ( UNDERSCORE ) ) && p. nth ( 1 ) == T ! [ : ] && !p. nth_at ( 1 , T ! [ :: ] ) {
129
129
patterns:: pattern_single ( p) ;
130
130
if variadic_param ( p) {
131
- res = Variadic ( true )
131
+ res = Variadic ( true ) ;
132
132
} else if p. at ( T ! [ : ] ) {
133
- types:: ascription ( p)
133
+ types:: ascription ( p) ;
134
134
} else {
135
- p. error ( "missing type for function parameter" )
135
+ p. error ( "missing type for function parameter" ) ;
136
136
}
137
137
} else {
138
138
types:: type_ ( p) ;
0 commit comments