You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_ast/src/token.rs
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,10 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
11
11
use rustc_data_structures::sync::Lrc;
12
12
use rustc_macros::{Decodable,Encodable,HashStable_Generic};
13
13
use rustc_span::edition::Edition;
14
+
use rustc_span::{DUMMY_SP,ErrorGuaranteed,Span, kw, sym};
14
15
#[allow(clippy::useless_attribute)]// FIXME: following use of `hidden_glob_reexports` incorrectly triggers `useless_attribute` lint.
15
16
#[allow(hidden_glob_reexports)]
16
-
use rustc_span::symbol::{Ident,Symbol};
17
-
use rustc_span::symbol::{kw, sym};
18
-
use rustc_span::{DUMMY_SP,ErrorGuaranteed,Span};
17
+
use rustc_span::{Ident,Symbol};
19
18
20
19
usecrate::ast;
21
20
usecrate::ptr::P;
@@ -904,7 +903,8 @@ impl Token {
904
903
self.is_non_raw_ident_where(|id| id.name == kw)
905
904
}
906
905
907
-
/// Returns `true` if the token is a given keyword, `kw` or if `case` is `Insensitive` and this token is an identifier equal to `kw` ignoring the case.
906
+
/// Returns `true` if the token is a given keyword, `kw` or if `case` is `Insensitive` and this
907
+
/// token is an identifier equal to `kw` ignoring the case.
0 commit comments