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 /src/libsyntax | |
| parent | 94967f23f793ca7849fd59239d4526acb93b913a (diff) | |
| download | rust-4198df1f4be969747bc92254185ae4983e8f3c5c.tar.gz rust-4198df1f4be969747bc92254185ae4983e8f3c5c.zip | |
Remove some mentions of gensyms
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/proc_macro_server.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |
