Skip to content

Commit 0e1c0b5

Browse files
committed
Remove some mentions of gensyms
1 parent 7efb40f commit 0e1c0b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustc/ty/print/pretty.rs

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

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

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)