File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1155,6 +1155,10 @@ impl<'a> StringReader<'a> {
1155
1155
& format ! ( "`r#{}` is not currently supported." , ident. name)
1156
1156
) . raise ( ) ;
1157
1157
}
1158
+ if is_raw_ident {
1159
+ let span = self . mk_sp ( raw_start, self . pos ) ;
1160
+ self . sess . raw_identifier_spans . borrow_mut ( ) . push ( span) ;
1161
+ }
1158
1162
token:: Ident ( ident, is_raw_ident)
1159
1163
} ) ) ;
1160
1164
}
Original file line number Diff line number Diff line change @@ -784,7 +784,7 @@ impl<'a> Parser<'a> {
784
784
785
785
fn parse_ident_common ( & mut self , recover : bool ) -> PResult < ' a , ast:: Ident > {
786
786
match self . token {
787
- token:: Ident ( i, is_raw ) => {
787
+ token:: Ident ( i, _ ) => {
788
788
if self . token . is_reserved_ident ( ) {
789
789
let mut err = self . expected_ident_found ( ) ;
790
790
if recover {
@@ -793,9 +793,6 @@ impl<'a> Parser<'a> {
793
793
return Err ( err) ;
794
794
}
795
795
}
796
- if is_raw {
797
- self . sess . raw_identifier_spans . borrow_mut ( ) . push ( self . span ) ;
798
- }
799
796
self . bump ( ) ;
800
797
Ok ( i)
801
798
}
You can’t perform that action at this time.
0 commit comments