fix: planner bug

This commit is contained in:
Shunsuke Shibayama 2023-10-08 00:45:22 +09:00
parent a1a89cab27
commit f676f22d6c
7 changed files with 275 additions and 327 deletions

View file

@ -449,7 +449,9 @@ impl<'c, 'q, 'l, L: Locational> Dereferencer<'c, 'q, 'l, L> {
new_dic
.entry(k)
.and_modify(|old_v| {
*old_v = self.ctx.union_tp(&mem::take(old_v), &v).unwrap();
if let Some(union) = self.ctx.union_tp(&mem::take(old_v), &v) {
*old_v = union;
}
})
.or_insert(v);
}