Fix rebase

This commit is contained in:
Vadim Petrochenkov 2018-05-17 23:32:47 +03:00
parent dae5f05f43
commit d8bbc1ee1a
1 changed files with 1 additions and 1 deletions

View File

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