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 missing opt-in annotations #407

Merged
merged 1 commit into from
Sep 22, 2024
Merged

Conversation

3flex
Copy link
Contributor

@3flex 3flex commented Sep 21, 2024

No description provided.

Comment on lines 217 to +218
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
@OptIn(UnsafeDuringIrConstructionAPI::class)
context(IrPluginContext)

In my brain the context is part of the signature

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense - I just tried though and there's a compiler error:

image

Copy link
Owner

Choose a reason for hiding this comment

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

Let this awkward syntax be a reminder to remove context receivers from this project 😬

Comment on lines 143 to +144
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
@OptIn(UnsafeDuringIrConstructionAPI::class)
context(IrPluginContext)

Comment on lines 268 to +269
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
@OptIn(UnsafeDuringIrConstructionAPI::class)
context(IrPluginContext)

Comment on lines 189 to +190
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
context(IrPluginContext)
@OptIn(UnsafeDuringIrConstructionAPI::class)
@OptIn(UnsafeDuringIrConstructionAPI::class)
context(IrPluginContext)

@drewhamilton drewhamilton merged commit 77160db into drewhamilton:main Sep 22, 2024
6 checks passed
@3flex 3flex deleted the opt-in branch September 22, 2024 21:00
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.

3 participants