]> git.lizzy.rs Git - rust.git/commitdiff
Fix rebase
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Thu, 17 May 2018 20:32:47 +0000 (23:32 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Thu, 17 May 2018 20:32:47 +0000 (23:32 +0300)
src/libproc_macro/lib.rs

index 610a9a2a39486580743152b98967c55d6061ccba..bcab61680965afc3aa1b381216e5ac4d1aebaf30 100644 (file)
@@ -818,7 +818,7 @@ pub fn new(string: &str, span: Span) -> 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;