1
Fork 0

Rustup to rustc 1.31.0-nightly (cae6efc37 2018-10-27)

This commit is contained in:
bjorn3 2018-10-28 18:23:03 +01:00
parent 52ab6583dc
commit 172e705b27

View file

@ -36,16 +36,10 @@ pub fn trans_mono_item<'a, 'tcx: 'a>(
.unwrap();
String::from_utf8(mir.into_inner()).unwrap()
}
InstanceDef::Item(_)
| InstanceDef::DropGlue(_, _)
| InstanceDef::Virtual(_, _)
| InstanceDef::FnPtrShim(_, _)
| InstanceDef::ClosureOnceShim { .. }
| InstanceDef::CloneShim(_, _) => {
_ => {
// FIXME fix write_mir_pretty for these instances
format!("{:#?}", tcx.instance_mir(inst.def))
}
InstanceDef::Intrinsic(_) => bug!("tried to codegen intrinsic"),
}
});