about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-08-31 16:41:13 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2019-10-15 21:12:05 +0100
commit4198df1f4be969747bc92254185ae4983e8f3c5c (patch)
treed48348ea012eca84b5a832077670ea1a23a3fb81
parent94967f23f793ca7849fd59239d4526acb93b913a (diff)
downloadrust-4198df1f4be969747bc92254185ae4983e8f3c5c.tar.gz
rust-4198df1f4be969747bc92254185ae4983e8f3c5c.zip
Remove some mentions of gensyms
-rw-r--r--src/librustc/ty/print/pretty.rs2
-rw-r--r--src/libsyntax/ext/proc_macro_server.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs
index c4967f8d66d..363109a0582 100644
--- a/src/librustc/ty/print/pretty.rs
+++ b/src/librustc/ty/print/pretty.rs
@@ -1483,7 +1483,7 @@ impl<F: fmt::Write> FmtPrinter<'_, 'tcx, F> {
         }
 
         // Replace any anonymous late-bound regions with named
-        // variants, using gensym'd identifiers, so that we can
+        // variants, using new unique identifiers, so that we can
         // clearly differentiate between named and unnamed regions in
         // the output. We'll probably want to tweak this over time to
         // decide just how much information to give.
diff --git a/src/libsyntax/ext/proc_macro_server.rs b/src/libsyntax/ext/proc_macro_server.rs
index 021ec46d987..63e974e323a 100644
--- a/src/libsyntax/ext/proc_macro_server.rs
+++ b/src/libsyntax/ext/proc_macro_server.rs
@@ -332,8 +332,7 @@ impl Ident {
         if !Self::is_valid(&string) {
             panic!("`{:?}` is not a valid identifier", string)
         }
-        // Get rid of gensyms to conservatively check rawness on the string contents only.
-        if is_raw && !sym.as_interned_str().as_symbol().can_be_raw() {
+        if is_raw && !sym.can_be_raw() {
             panic!("`{}` cannot be a raw identifier", string);
         }
         Ident { sym, is_raw, span }