Skip to content

Fix @nospecialize usage - #222

Merged
shravanngoswamii merged 1 commit into
TuringLang:mainfrom
mlechu:nospecialize-fixup
Oct 15, 2026
Merged

shravanngoswamii merged 1 commit into
TuringLang:mainfrom
mlechu:nospecialize-fixup

Conversation

@mlechu

@mlechu mlechu commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

This was found in JuliaLowering development. A bug in julia means that
@nospecialize function_definition has never defined the function (see
JuliaLang/julia#49512). I'd like to make that an
error instead, so this PR moves incorrect uses of @nospecialize to the
function body.

I've also added a test checking that the function exists (this was assisted by
an LLM).

@shravanngoswamii shravanngoswamii left a comment

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.

Looks good to me. Thank you @mlechu

@shravanngoswamii
shravanngoswamii merged commit 05b45f9 into TuringLang:main Oct 15, 2026
16 checks passed
@mlechu

mlechu commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@shravanngoswamii Would you be willing to make a patch release?

@shravanngoswamii

Copy link
Copy Markdown
Member

@mlechu Yep, will release it after fixing CI issues on main.

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