From 14833cb33792703bf87c7e7d933687f289886294 Mon Sep 17 00:00:00 2001 From: Son Ho Date: Wed, 26 Jan 2022 10:04:52 +0100 Subject: Add a meta-value in SharedBorrow to carry the shared value --- src/Print.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Print.ml') diff --git a/src/Print.ml b/src/Print.ml index cefa3ea5..da6158b5 100644 --- a/src/Print.ml +++ b/src/Print.ml @@ -278,7 +278,7 @@ module Values = struct and borrow_content_to_string (fmt : value_formatter) (bc : V.borrow_content) : string = match bc with - | SharedBorrow bid -> "⌊shared@" ^ V.BorrowId.to_string bid ^ "⌋" + | SharedBorrow (_, bid) -> "⌊shared@" ^ V.BorrowId.to_string bid ^ "⌋" | MutBorrow (bid, tv) -> "&mut@" ^ V.BorrowId.to_string bid ^ " (" ^ typed_value_to_string fmt tv -- cgit v1.2.3