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

Sync to upstream/release/536 #592

Merged
merged 3 commits into from Jul 14, 2022
Merged

Sync to upstream/release/536 #592

merged 3 commits into from Jul 14, 2022

Conversation

zeux
Copy link
Collaborator

@zeux zeux commented Jul 14, 2022

  • Fix bugs in type normalization of self-recursive union types
  • Fix interaction between never types and operator type inference
  • Fix type widening for functions that return a union of singleton string types
  • string.match/string.find now return a more precise type if the match pattern is a string literal
  • Type checker now supports passing strings to functions that use a string-like API even if the argument types aren't annotated.
  • Add support for --!optimize to be able to control optimization level from source
  • Compiler now replaces some calls to builtin functions with a constant if all arguments are known when using -O2
  • Compiler now recognizes builtin calls for the purpose of cost modeling, which improves inlining/unrolling of functions with builtin calls
  • lua_breakpoint can now place the breakpoint after the requested line if the requested line doesn't correspond to an executable location; it returns the line where the breakpoint is placed, or -1 on error.
  • lua_Callbacks::useratom is now called lazily when the atom is requested via lua_tostringatom/lua_namecallatom, instead of eagerly during string construction.

@zeux zeux merged commit 5b2e39c into master Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant