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.
clone()
1 parent 715a0cd commit 8ad1253Copy full SHA for 8ad1253
src/librustc/middle/typeck/collect.rs
@@ -789,7 +789,8 @@ pub fn convert_struct(ccx: &CrateCtxt,
789
// Enum-like.
790
write_ty_to_tcx(tcx, ctor_id, selfty);
791
792
- tcx.tcache.borrow_mut().insert(local_def(ctor_id), tpt);
+ tcx.tcache.borrow_mut().insert(local_def(ctor_id),
793
+ tpt.clone());
794
} else if struct_def.fields.get(0).node.kind.is_unnamed() {
795
// Tuple-like.
796
let inputs: Vec<_> = struct_def.fields.iter().map(
0 commit comments