diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-05 01:49:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 01:49:52 +0200 |
| commit | 8b781b0ffdc751924520f5a705c4e60e7dd4ab36 (patch) | |
| tree | ff298794d1db2312cfc0fe0f29fbb9d2cb8c01f6 | |
| parent | ad74ce9d040dee4d0810c5e2cc8c11fedb8f2225 (diff) | |
| parent | 36f51f97c732a95d90eb8170f5e2c46e505fb9b5 (diff) | |
| download | rust-8b781b0ffdc751924520f5a705c4e60e7dd4ab36.tar.gz rust-8b781b0ffdc751924520f5a705c4e60e7dd4ab36.zip | |
Rollup merge of #71904 - euclio:function-typo, r=jonas-schievink
fix typo in function name Drive-by fix.
| -rw-r--r-- | src/librustc_builtin_macros/deriving/debug.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_builtin_macros/deriving/debug.rs b/src/librustc_builtin_macros/deriving/debug.rs index 71f6eb44858..cea7e8176b6 100644 --- a/src/librustc_builtin_macros/deriving/debug.rs +++ b/src/librustc_builtin_macros/deriving/debug.rs @@ -88,7 +88,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_> // Use `let _ = expr;` to avoid triggering the // unused_results lint. - stmts.push(stmt_let_undescore(cx, span, expr)); + stmts.push(stmt_let_underscore(cx, span, expr)); } } ast::VariantData::Struct(..) => { @@ -112,7 +112,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_> Ident::new(sym::field, span), vec![name, field], ); - stmts.push(stmt_let_undescore(cx, span, expr)); + stmts.push(stmt_let_underscore(cx, span, expr)); } } } @@ -124,7 +124,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_> cx.expr_block(block) } -fn stmt_let_undescore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P<ast::Expr>) -> ast::Stmt { +fn stmt_let_underscore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P<ast::Expr>) -> ast::Stmt { let local = P(ast::Local { pat: cx.pat_wild(sp), ty: None, |
