You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let true_size = self.true_arm.size(tab, size_tab);
319
-
let false_size = self.false_arm.size(tab, size_tab);
320
-
321
-
let(known, deps) = if true_size.is_some() && true_size == false_size {
322
-
(true_size.unwrap(),Vec::new())
323
-
}else{
324
-
let arm_names:Vec<String> = [self.true_arm.name(),self.false_arm.name()]
325
-
.iter()
326
-
.filter_map(|val| *val)
327
-
.map(|val| val.to_string())
328
-
.collect();
329
-
330
-
if arm_names.is_empty(){
331
-
panic!("both boolean arms for {} are unamed, which is weird, because the two arm sizes should have evaluated to equal eachother and never reached this case", u.name)
332
-
}
333
-
334
-
(0, arm_names)
335
-
};
316
+
let arm_names:Vec<String> = [self.true_arm.name(),self.false_arm.name()]
317
+
.iter()
318
+
.filter_map(|val| *val)
319
+
.map(|val| val.to_string())
320
+
.collect();
336
321
322
+
// bool union body size is never known as there is always a void member and a non void
0 commit comments