mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Update compiler/mono/src/borrow.rs
Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
This commit is contained in:
parent
574f14522d
commit
59378d35c6
1 changed files with 1 additions and 1 deletions
|
@ -734,7 +734,7 @@ impl<'a> BorrowInfState<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
ExprUnbox { symbol: x } => {
|
ExprUnbox { symbol: x } => {
|
||||||
// if the structure (record/tag/array) is owned, the extracted value is
|
// if the boxed value is owned, the box is
|
||||||
self.if_is_owned_then_own(*x, z);
|
self.if_is_owned_then_own(*x, z);
|
||||||
|
|
||||||
// if the extracted value is owned, the structure must be too
|
// if the extracted value is owned, the structure must be too
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue