about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-28 15:09:37 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-07-01 06:35:14 +1000
commit623ebbe42a72bd9942bb62526a8a0b2981448a53 (patch)
tree0da9ef3f59743f2369bd0a7115f798b16ea72a4f /compiler
parent57d56891d226836d2fa88e03dcf07a4fd829ebfc (diff)
downloadrust-623ebbe42a72bd9942bb62526a8a0b2981448a53.tar.gz
rust-623ebbe42a72bd9942bb62526a8a0b2981448a53.zip
Remove some commented-out code.
This was accidentally left behind in a previous commit.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/debug.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/debug.rs b/compiler/rustc_builtin_macros/src/deriving/debug.rs
index 66676bcf28b..3a0b8c91179 100644
--- a/compiler/rustc_builtin_macros/src/deriving/debug.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/debug.rs
@@ -62,8 +62,6 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
     let (is_struct, args_per_field) = match vdata {
         ast::VariantData::Unit(..) => {
             // Special fast path for unit variants.
-            //let fn_path_write_str = cx.std_path(&[sym::fmt, sym::Formatter, sym::write_str]);
-            //return cx.expr_call_global(span, fn_path_write_str, vec![fmt, name]);
             assert!(fields.is_empty());
             (false, 0)
         }