From c0f230dc6c331e9eb120900e8c31a03e1f5ab476 Mon Sep 17 00:00:00 2001 From: Son Ho Date: Tue, 18 Jan 2022 23:03:55 +0100 Subject: Remove ty_has_regions and use ty_has_borrows instead --- src/Invariants.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Invariants.ml') diff --git a/src/Invariants.ml b/src/Invariants.ml index 5b77e13c..67084684 100644 --- a/src/Invariants.ml +++ b/src/Invariants.ml @@ -707,7 +707,8 @@ let check_symbolic_values (_config : C.config) (ctx : C.eval_ctx) : unit = (* Check *) let check_info _id info = assert (info.env_count = 0 || info.aproj_borrows = []); - if ty_has_regions info.ty then assert (info.env_count <= 1); + if ty_has_borrows ctx.type_context.type_infos info.ty then + assert (info.env_count <= 1); assert (info.env_count <= 1 || ty_is_primitively_copyable info.ty) in M.iter check_info !infos -- cgit v1.2.3