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

Add instantiate + migrate flags to AnalysisReport #1949

Merged
merged 8 commits into from
Nov 20, 2023

Conversation

chipshort
Copy link
Collaborator

closes #1932

Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very very nice! Just one question and a CHANGELOG entry.

packages/vm/src/cache.rs Outdated Show resolved Hide resolved
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful! Just the CHANGELOG

fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.as_ref().cmp(other.as_ref())
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, love this solution. It allows us to group the enum cases by category in the enum definition (as we do now) instead of having to sort them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and it also makes sure we can't accidentally misorder them

@chipshort chipshort merged commit 9907b49 into main Nov 20, 2023
29 checks passed
@chipshort chipshort deleted the 1932-analysis-report-additions branch November 20, 2023 13:39
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.

Add AnalysisReport.has_{instantiate,migrate}_entry_point
2 participants