luau/fuzz
menarulalam 8fe64db609
Sync to upstream/release/679 (#1884)
# What's Changed?

We've been hard at work fixing bugs and introducing new features!

## VM 
* Include constant-folding information in Luau cost model for inlining
and loop unrolling
   * ~1% improvement in compile times

## New Type Solver
* `Luau::shallowClone`'s last argument, whether to clone persistent
(builtin) types, is now non-optional.
* Refinements on properties of tables are now computed with a `read`
table property. This resolves some issues around refining table
properies and then trying to set them. Fixes #1344. Fixes #1651.
```
if foo.bar then
    -- Prior to this release, this would be `typeof(foo) & { bar: ~(false?) }
    -- Now, this is `typeof(foo) & { read bar: ~(false?) }
end
```
* The type function `keyof` should respect the empty string as a
property, as in:
```
-- equivalent to type Foo =""
type Foo = keyof<{ [""]: number }>
```
* Descend into literals to report subtyping errors for function calls:
this both improves bidirectional inference and makes errors more
specific. Before, the error reporting for a table with incorrect members
passed to a function would cite the entire table, but now it only cites
the members that are incorrectly typed.
* Fixes a case where intersecting two tables without any common
properties would create `never`, instead of a table with both of their
properties.

# Internal Contributors
Co-authored-by: Ariel Weiss <aaronweiss@roblox.com>
Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com>
Co-authored-by: James McNellis <jmcnellis@roblox.com>
Co-authored-by: Sora Kanosue <skanosue@roblox.com>
Co-authored-by: Talha Pathan <tpathan@roblox.com>
Co-authored-by: Vighnesh Vijay <vvijay@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>

---------

Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com>
Co-authored-by: Varun Saini <61795485+vrn-sn@users.noreply.github.com>
Co-authored-by: Alexander Youngblood <ayoungblood@roblox.com>
Co-authored-by: Aviral Goel <agoel@roblox.com>
Co-authored-by: Vighnesh <vvijay@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
Co-authored-by: Ariel Weiss <aaronweiss@roblox.com>
Co-authored-by: Andy Friesen <afriesen@roblox.com>
2025-06-20 15:55:42 -07:00
..
basic.luau chore: update applicable .lua files to .luau (#1560) 2025-02-21 14:29:20 -08:00
CMakeLists.txt Sync to upstream/release/674 (#1832) 2025-05-16 12:39:58 -07:00
compiler.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
format.cpp Sync to upstream/release/570 (#885) 2023-03-31 11:42:49 -07:00
libprotobuf-mutator-patch.patch Sync to upstream/release/605 (#1118) 2023-12-01 23:46:57 -08:00
linter.cpp Sync to upstream/release/572 (#899) 2023-04-14 11:06:22 -07:00
luau.proto Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
number.cpp Sync to upstream/release/517 (#408) 2022-03-04 08:36:33 -08:00
parser.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
proto.cpp Sync to upstream/release/679 (#1884) 2025-06-20 15:55:42 -07:00
protoprint.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
prototest.cpp Sync to upstream/release/516 (#397) 2022-02-24 15:53:37 -08:00
syntax.dict Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
transpiler.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
typeck.cpp Sync to upstream/release/572 (#899) 2023-04-14 11:06:22 -07:00