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