Skip to content

Commit 4198df1

Browse files
committed
Remove some mentions of gensyms
1 parent 94967f2 commit 4198df1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: src/librustc/ty/print/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ impl<F: fmt::Write> FmtPrinter<'_, 'tcx, F> {
14831483
}
14841484

14851485
// Replace any anonymous late-bound regions with named
1486-
// variants, using gensym'd identifiers, so that we can
1486+
// variants, using new unique identifiers, so that we can
14871487
// clearly differentiate between named and unnamed regions in
14881488
// the output. We'll probably want to tweak this over time to
14891489
// decide just how much information to give.

Diff for: src/libsyntax/ext/proc_macro_server.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,7 @@ impl Ident {
332332
if !Self::is_valid(&string) {
333333
panic!("`{:?}` is not a valid identifier", string)
334334
}
335-
// Get rid of gensyms to conservatively check rawness on the string contents only.
336-
if is_raw && !sym.as_interned_str().as_symbol().can_be_raw() {
335+
if is_raw && !sym.can_be_raw() {
337336
panic!("`{}` cannot be a raw identifier", string);
338337
}
339338
Ident { sym, is_raw, span }

0 commit comments

Comments
 (0)