remove old comment

This commit is contained in:
Oliver Schneider
2017-01-12 11:27:04 +01:00
parent 548a6baec0
commit 0595f95460
-1
View File
@@ -235,7 +235,6 @@ fn eval_fn_call(
// FIXME(eddyb) Detect ADT constructors more efficiently.
if let Some(adt_def) = fn_ty.sig.skip_binder().output().ty_adt_def() {
if let Some(v) = adt_def.variants.iter().find(|v| resolved_def_id == v.did) {
// technically they can diverge, but only if one of their arguments diverges, so it doesn't matter
let (lvalue, target) = destination.expect("tuple struct constructors can't diverge");
let dest_ty = self.tcx.item_type(adt_def.did);
let dest_layout = self.type_layout(dest_ty)?;