Skip to content

NFC: minor followups for #48220#48234

Merged
aviatesk merged 1 commit intomasterfrom
avi/follow-48220
Jan 12, 2023
Merged

NFC: minor followups for #48220#48234
aviatesk merged 1 commit intomasterfrom
avi/follow-48220

Conversation

@aviatesk
Copy link
Copy Markdown
Member

  • set up the isidentityfree query as ismutationfree and refactor is_consistent_type a bit using it
  • move the special handling of Module-type's mutationfree bit to Core.Compiler since it is entangled with the implementation detail within Core.Compiler

@aviatesk aviatesk requested a review from Keno January 11, 2023 16:43

// Technically not ismutationfree, but there's a separate system to deal
// with mutations for global state.
jl_module_type->ismutationfree = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about Some{Module}?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, right.. I found it a bit weird to mark Module as ismutationfree, but I think we have to do so.

- set up the `isidentityfree` query as `ismutationfree` and refactor
  `is_consistent_type` a bit using it
- move the special handling of `Module`-type's `mutationfree` bit to
  `Core.Compiler` since it is entangled with the implementation detail
  within `Core.Compiler`
@aviatesk aviatesk merged commit e40d813 into master Jan 12, 2023
@aviatesk aviatesk deleted the avi/follow-48220 branch January 12, 2023 09:10
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