Skip to content

Commit d2adb7c

Browse files
committed
remove misleading and unnecessary underscores
1 parent 26b5347 commit d2adb7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn expand_expr(e: Gc<ast::Expr>, fld: &mut MacroExpander) -> Gc<ast::Expr> {
156156
// (The use of the `let` is to give better error messages
157157
// when the pattern is refutable.)
158158

159-
let local_ident = token::gensym_ident("__i"); // FIXME #13573
159+
let local_ident = token::gensym_ident("i");
160160
let next_ident = fld.cx.ident_of("next");
161161
let none_ident = fld.cx.ident_of("None");
162162

@@ -171,7 +171,8 @@ pub fn expand_expr(e: Gc<ast::Expr>, fld: &mut MacroExpander) -> Gc<ast::Expr> {
171171
};
172172

173173
// let <src_pat> = value;
174-
let value_ident = token::gensym_ident("__value");
174+
// use underscore to suppress lint error:
175+
let value_ident = token::gensym_ident("_value");
175176
// this is careful to use src_pat.span so that error
176177
// messages point exact at that.
177178
let local = box(GC) ast::Local {

0 commit comments

Comments
 (0)