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
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9

View file

@ -254,7 +254,7 @@ impl<'a, 'tcx, M: Machine<'tcx>> EvalContext<'a, 'tcx, M> {
}
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,
};