Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make is_nonoverlapping private and remove num-traits dep from program-memory #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kevinheavey
Copy link
Contributor

@kevinheavey kevinheavey commented Feb 10, 2025

This function is only used here and in solana-bpf-loader program. When used here, it doesn't need num-traits. I have opened a PR in the Agave repo to copy the num-traits version into solana-bpf-loader program anza-xyz/agave#4888

The num-traits dep is causing pinocchio to copy-paste a significant amount of code.

Since the function is hidden this is not a breaking change.

@kevinheavey kevinheavey changed the title make is_nonoverlapping private and remove num-traits dep make is_nonoverlapping private and remove num-traits dep from program-memory Feb 10, 2025
@febo
Copy link
Contributor

febo commented Feb 13, 2025

We could also add the missing unsafe markers – that way we can replicate the implementation from pinocchio here.

@kevinheavey
Copy link
Contributor Author

We could also add the missing unsafe markers

Where?

@kevinheavey
Copy link
Contributor Author

Oh guessing you mean these ones:

__This function is incorrectly missing an `unsafe` declaration.__

Let's leave those for another PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants