This is unreachable code and it should never ever be reachable even in the future

This commit is contained in:
Oliver Schneider
2017-09-13 14:21:07 +02:00
parent c47ee6b521
commit 2cf984d76e
+1 -1
View File
@@ -254,7 +254,7 @@ pub(super) fn const_to_value(&mut self, const_val: &ConstVal<'tcx>) -> EvalResul
}
Aggregate(..) |
Variant(_) => unimplemented!(),
Variant(_) => bug!("should not have aggregate or variant constants in MIR"),
// function items are zero sized and thus have no readable value
Function(..) => PrimVal::Undef,
};