X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_const_eval%2Fsrc%2Finterpret%2Fstep.rs;h=3c286fa61bec5c9cb1a9501924ceded45ab5d13b;hb=0a3cb1ed8138900e8697d42988ee41250c3d69ad;hp=c6e04cbfb6bf344200dcc916378ad8df4adcd454;hpb=084029f39d0aba9d34188d512760d7ba324081b7;p=rust.git diff --git a/compiler/rustc_const_eval/src/interpret/step.rs b/compiler/rustc_const_eval/src/interpret/step.rs index c6e04cbfb6b..3c286fa61be 100644 --- a/compiler/rustc_const_eval/src/interpret/step.rs +++ b/compiler/rustc_const_eval/src/interpret/step.rs @@ -209,7 +209,7 @@ pub fn eval_rvalue_into_place( Repeat(ref operand, _) => { let src = self.eval_operand(operand, None)?; - assert!(!src.layout.is_unsized()); + assert!(src.layout.is_sized()); let dest = self.force_allocation(&dest)?; let length = dest.len(self)?;