Skip to content

fix serializer compat with CodeInfos from v1.11 #58650

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JeffBezanson
Copy link
Member

Not totally sure this will work in 100% of cases, but I like to keep this working as much as possible.

@JeffBezanson JeffBezanson added the backport 1.12 Change should be backported to release-1.12 label Jun 6, 2025
@@ -28,6 +29,8 @@ end

Serializer(io::IO) = Serializer{typeof(io)}(io)

const current_module = ScopedValue{Union{Nothing,Module}}(nothing)
Copy link
Member

Choose a reason for hiding this comment

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

Why isn't this just a struct field of the Serializer?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it can be, I just wanted to avoid mutation.

@KristofferC KristofferC mentioned this pull request Jun 6, 2025
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.12 Change should be backported to release-1.12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants