Skip to content

Commit 8b781b0

Browse files
authored
Rollup merge of rust-lang#71904 - euclio:function-typo, r=jonas-schievink
fix typo in function name Drive-by fix.
2 parents ad74ce9 + 36f51f9 commit 8b781b0

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_builtin_macros/deriving

1 file changed

+3
-3
lines changed

src/librustc_builtin_macros/deriving/debug.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
8888

8989
// Use `let _ = expr;` to avoid triggering the
9090
// unused_results lint.
91-
stmts.push(stmt_let_undescore(cx, span, expr));
91+
stmts.push(stmt_let_underscore(cx, span, expr));
9292
}
9393
}
9494
ast::VariantData::Struct(..) => {
@@ -112,7 +112,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
112112
Ident::new(sym::field, span),
113113
vec![name, field],
114114
);
115-
stmts.push(stmt_let_undescore(cx, span, expr));
115+
stmts.push(stmt_let_underscore(cx, span, expr));
116116
}
117117
}
118118
}
@@ -124,7 +124,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
124124
cx.expr_block(block)
125125
}
126126

127-
fn stmt_let_undescore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P<ast::Expr>) -> ast::Stmt {
127+
fn stmt_let_underscore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P<ast::Expr>) -> ast::Stmt {
128128
let local = P(ast::Local {
129129
pat: cx.pat_wild(sp),
130130
ty: None,

0 commit comments

Comments
 (0)