summary refs log tree commit diff
path: root/src/libproc_macro/lib.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-05-17 23:32:47 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-05-17 23:32:47 +0300
commitd8bbc1ee1ad44e9c7bd93c8d59103eacd0ed36e8 (patch)
tree5678880e9cc9a71d357f550d53b4c3a186e9a346 /src/libproc_macro/lib.rs
parentdae5f05f430455f7d6dfdce6bc5ccf7a10f8b2df (diff)
downloadrust-d8bbc1ee1ad44e9c7bd93c8d59103eacd0ed36e8.tar.gz
rust-d8bbc1ee1ad44e9c7bd93c8d59103eacd0ed36e8.zip
Fix rebase
Diffstat (limited to 'src/libproc_macro/lib.rs')
-rw-r--r--src/libproc_macro/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs
index 610a9a2a394..bcab6168096 100644
--- a/src/libproc_macro/lib.rs
+++ b/src/libproc_macro/lib.rs
@@ -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;