diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2019-08-31 16:41:13 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2019-10-15 21:12:05 +0100 |
| commit | 4198df1f4be969747bc92254185ae4983e8f3c5c (patch) | |
| tree | d48348ea012eca84b5a832077670ea1a23a3fb81 | |
| parent | 94967f23f793ca7849fd59239d4526acb93b913a (diff) | |
| download | rust-4198df1f4be969747bc92254185ae4983e8f3c5c.tar.gz rust-4198df1f4be969747bc92254185ae4983e8f3c5c.zip | |
Remove some mentions of gensyms
| -rw-r--r-- | src/librustc/ty/print/pretty.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/proc_macro_server.rs | 3 |
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 } |
