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

feat: add to_ref and Deref functions for the context #579

Merged
merged 2 commits into from
Aug 25, 2024

Conversation

Peefy
Copy link
Contributor

@Peefy Peefy commented Aug 24, 2024

I am one of the users of Melbourne and have found that ContextRef does not have a publicly available method to convert to &'c Context, so I've opened this PR to add the to_ref function for the context like the OperationRef does at https://github.com/raviqqe/melior/blob/main/melior/src/ir/operation.rs

@Peefy
Copy link
Contributor Author

Peefy commented Aug 24, 2024

@raviqqe @Danacus @BadBastion @azteca1998

PTAL. Thank you! ❤️

Copy link
Owner

@raviqqe raviqqe left a comment

Choose a reason for hiding this comment

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

Melbourne 😃

melior/src/context.rs Outdated Show resolved Hide resolved
@raviqqe raviqqe merged commit 3214475 into raviqqe:main Aug 25, 2024
12 checks passed
@raviqqe
Copy link
Owner

raviqqe commented Aug 25, 2024

Thank you for the changes!

@Peefy Peefy deleted the feat-add-context-to-ref branch August 26, 2024 02:16
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