We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d5689 commit 623ebbeCopy full SHA for 623ebbe
compiler/rustc_builtin_macros/src/deriving/debug.rs
@@ -62,8 +62,6 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
62
let (is_struct, args_per_field) = match vdata {
63
ast::VariantData::Unit(..) => {
64
// Special fast path for unit variants.
65
- //let fn_path_write_str = cx.std_path(&[sym::fmt, sym::Formatter, sym::write_str]);
66
- //return cx.expr_call_global(span, fn_path_write_str, vec![fmt, name]);
67
assert!(fields.is_empty());
68
(false, 0)
69
}
0 commit comments