Skip to content

Commit d8bbc1e

Browse files
committed
Fix rebase
1 parent dae5f05 commit d8bbc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libproc_macro/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ impl Ident {
818818
pub fn new_raw(string: &str, span: Span) -> Ident {
819819
let mut ident = Ident::new(string, span);
820820
if ident.sym == keywords::Underscore.name() ||
821-
token::is_path_segment_keyword(ast::Ident::with_empty_ctxt(ident.sym)) {
821+
ast::Ident::with_empty_ctxt(ident.sym).is_path_segment_keyword() {
822822
panic!("`{:?}` is not a valid raw identifier", string)
823823
}
824824
ident.is_raw = true;

0 commit comments

Comments
 (0)