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 3180312 commit 7d2c334Copy full SHA for 7d2c334
compiler/rustc_middle/src/ty/print/pretty.rs
@@ -1228,9 +1228,9 @@ pub trait PrettyPrinter<'tcx>:
1228
)?;
1229
}
1230
ty::Adt(def, substs) => {
1231
- let variant_id =
1232
- contents.variant.expect("destructed const of adt without variant id");
1233
- let variant_def = &def.variants[variant_id];
+ let variant_idx =
+ contents.variant.expect("destructed const of adt without variant idx");
+ let variant_def = &def.variants[variant_idx];
1234
p!(print_value_path(variant_def.def_id, substs));
1235
1236
match variant_def.ctor_kind {
0 commit comments