about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/deriving/debug.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-01-07 18:28:42 +0100
committerRalf Jung <post@ralfj.de>2025-01-14 16:16:38 +0100
commit9ac62f972fd47705f9d229e854772194565071eb (patch)
tree64fedcf02879ed35c722fcedc8c485bd72c25707 /compiler/rustc_builtin_macros/src/deriving/debug.rs
parent4df78a07e5c3ad032d59941b77ab394e4a75c7c1 (diff)
downloadrust-9ac62f972fd47705f9d229e854772194565071eb.tar.gz
rust-9ac62f972fd47705f9d229e854772194565071eb.zip
remove Rustc{En,De}codable from library and compiler
Diffstat (limited to 'compiler/rustc_builtin_macros/src/deriving/debug.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/debug.rs b/compiler/rustc_builtin_macros/src/deriving/debug.rs
index eb01ca3941d..8ab21986e68 100644
--- a/compiler/rustc_builtin_macros/src/deriving/debug.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/debug.rs
@@ -56,7 +56,7 @@ fn show_substructure(cx: &ExtCtxt<'_>, span: Span, substr: &Substructure<'_>) ->
 
     let (ident, vdata, fields) = match substr.fields {
         Struct(vdata, fields) => (substr.type_ident, *vdata, fields),
-        EnumMatching(_, v, fields) => (v.ident, &v.data, fields),
+        EnumMatching(v, fields) => (v.ident, &v.data, fields),
         AllFieldlessEnum(enum_def) => return show_fieldless_enum(cx, span, enum_def, substr),
         EnumDiscr(..) | StaticStruct(..) | StaticEnum(..) => {
             cx.dcx().span_bug(span, "nonsensical .fields in `#[derive(Debug)]`")