Skip to content

Commit 2be930b

Browse files
committed
fix tidy (remove whitespace)
1 parent fe23ffb commit 2be930b

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5394,7 +5394,7 @@ impl<'a> Parser<'a> {
53945394
fn parse_fn_args(&mut self, named_args: bool, allow_variadic: bool)
53955395
-> PResult<'a, (Vec<Arg> , bool)> {
53965396
self.expect(&token::OpenDelim(token::Paren))?;
5397-
5397+
53985398
let sp = self.span;
53995399
let mut variadic = false;
54005400
let args: Vec<Option<Arg>> =
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: unexpected `self` argument in function
2+
--> $DIR/bare-fn-start.rs:1:7
3+
|
4+
LL | fn a(&self) { }
5+
| ^^^^ `self` is only valid as the first argument of a trait function
6+
7+
error: aborting due to previous error
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: unexpected `self` argument in function
2+
--> $DIR/bare-fn.rs:1:21
3+
|
4+
LL | fn b(foo: u32, &mut self) { }
5+
| ^^^^ `self` is only valid as the first argument of a trait function
6+
7+
error: aborting due to previous error
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: unexpected `self` argument in function
2+
--> $DIR/trait-fn.rs:4:20
3+
|
4+
LL | fn c(foo: u32, self) {}
5+
| ^^^^ `self` is only valid as the first argument of a trait function
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)