File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl Token {
379
379
}
380
380
}
381
381
382
- pub fn is_range_seperator ( & self ) -> bool {
382
+ pub fn is_range_separator ( & self ) -> bool {
383
383
[ DotDot , DotDotDot , DotDotEq ] . contains ( & self . kind )
384
384
}
385
385
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ impl<'a> Parser<'a> {
180
180
LhsExpr :: AttributesParsed ( attrs) => Some ( attrs) ,
181
181
_ => None ,
182
182
} ;
183
- if self . token . is_range_seperator ( ) {
183
+ if self . token . is_range_separator ( ) {
184
184
return self . parse_prefix_range_expr ( attrs) ;
185
185
} else {
186
186
self . parse_prefix_expr ( attrs) ?
@@ -512,7 +512,7 @@ impl<'a> Parser<'a> {
512
512
}
513
513
514
514
debug_assert ! (
515
- self . token. is_range_seperator ( ) ,
515
+ self . token. is_range_separator ( ) ,
516
516
"parse_prefix_range_expr: token {:?} is not DotDot/DotDotEq" ,
517
517
self . token
518
518
) ;
@@ -896,7 +896,7 @@ impl<'a> Parser<'a> {
896
896
let has_lifetime = self . token . is_lifetime ( ) && self . look_ahead ( 1 , |t| t != & token:: Colon ) ;
897
897
let lifetime = has_lifetime. then ( || self . expect_lifetime ( ) ) ; // For recovery, see below.
898
898
let ( borrow_kind, mutbl) = self . parse_borrow_modifiers ( lo) ;
899
- let expr = if self . token . is_range_seperator ( ) {
899
+ let expr = if self . token . is_range_separator ( ) {
900
900
self . parse_prefix_range_expr ( None )
901
901
} else {
902
902
self . parse_prefix_expr ( None )
Original file line number Diff line number Diff line change 1
- // run -pass
1
+ // check -pass
2
2
3
3
fn main ( ) {
4
4
let _a = ..;
You can’t perform that action at this time.
0 commit comments