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

reflection: refactor @assume_effects implementation #52399

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

aviatesk
Copy link
Sponsor Member

@aviatesk aviatesk commented Dec 5, 2023

I am working on implementing a support for callsite @assume_effects annotation, and this update is part of the preparation for that goal. Along this, I've modified the API from pushmeta!(::Expr, ::Symbol, args...) to pushmeta!(::Expr, ::Union{Symbol,Expr}). This change isn't breaking as long as the args are empty, which is the case for most use cases (actually there is only one usage of pushmeta! with non-empty args within Julia base). I've verified on JuliaHub, and there don't appear to be any packages using pushmeta! with non-empty args, so there shouldn't be any (big) issues.

@aviatesk aviatesk requested a review from Keno December 5, 2023 04:31
@aviatesk aviatesk force-pushed the avi/assume_effects-refactoring branch from e1410dd to cc0638b Compare December 5, 2023 04:45
I am working on implementing a support for callsite `@assume_effects`
annotation, and this update is part of the preparation for that goal.
Along this, I've modified the API from `pushmeta!(::Expr, ::Symbol, args...)`
to `pushmeta!(::Expr, ::Union{Symbol,Expr})`. This change isn't breaking
as long as the `args` are empty, which is the case for most use cases
(actually there is only one usage of `pushmeta!` with non-empty `args`
within Julia base). I've verified on JuliaHub, and there don't appear to
be any packages using `pushmeta!` with non-empty `args`, so there
shouldn't be any (big) issues.
@aviatesk aviatesk force-pushed the avi/assume_effects-refactoring branch from cc0638b to f73df4f Compare December 6, 2023 02:39
@aviatesk aviatesk merged commit f96585b into master Dec 6, 2023
5 of 7 checks passed
@aviatesk aviatesk deleted the avi/assume_effects-refactoring branch December 6, 2023 05:03
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.

None yet

1 participant