]> git.lizzy.rs Git - rust.git/commitdiff
This is unreachable code and it should never ever be reachable even in the future
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 13 Sep 2017 12:21:07 +0000 (14:21 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 13 Sep 2017 12:21:07 +0000 (14:21 +0200)
src/librustc_mir/interpret/eval_context.rs

index 0a23e0569313de5935ed0c258717afb6a9709da9..ea895c35fe5fcd143dd985a5122a01f89d2c5361 100644 (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,
         };