replace borrowed boolean with ownership enum

This commit is contained in:
J.Teeuwissen 2023-01-04 13:30:42 +01:00
parent 6bdab37541
commit 6c95bc1fb9
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD
9 changed files with 48 additions and 29 deletions

View file

@ -1012,11 +1012,11 @@ impl<
param_storage.reserve(params.len());
for Param {
symbol,
borrow,
ownership,
layout,
} in params
{
if *borrow {
if *ownership == Ownership::Borrowed {
// These probably need to be passed by pointer/reference?
// Otherwise, we probably need to copy back to the param at the end of the joinpoint.
todo!("joinpoints with borrowed parameters");