luau/tools
vegorov-rbx 42a2805f85
Sync to upstream/release/568 (#865)
* A small subset of control-flow refinements have been added to
recognize type options that are unreachable after a
conditional/unconditional code block. (Fixes
https://github.com/Roblox/luau/issues/356).

Some examples:
```lua
local function f(x: string?)
    if not x then return end

    -- x is 'string' here
end
```
Throwing calls like `error` or `assert(false)` instead of 'return' are
also recognized.
Existing complex refinements like type/typeof and tagged union checks
are expected to work, among others.

To enable this feature, `LuauTinyControlFlowAnalysis` exclusion has to
be removed from `ExperimentalFlags.h`.
If will become enabled unconditionally in the near future.

* Linter has been integrated into the typechecker analysis so that
type-aware lint warnings can work in any mode
`Frontend::lint` methods were deprecated, `Frontend::check` has to be
used instead with `runLintChecks` option set.
Resulting lint warning are located inside `CheckResult`.

* Fixed large performance drop and increased memory consumption when
array is filled at an offset (Fixes
https://github.com/Roblox/luau/issues/590)
* Part of [Type error suppression
RFC](https://github.com/Roblox/luau/blob/master/rfcs/type-error-suppression.md)
was implemented making subtyping checks with `any` type transitive.

---
In our work on the new type-solver:
* `--!nocheck` mode no longer reports type errors
* New solver will not be used for `--!nonstrict` modules until all
issues with strict mode typechecking are fixed
* Added control-flow aware type refinements mentioned earlier

In native code generation:
* `LOP_NAMECALL` has been translated to IR
* `type` and `typeof` builtin fastcalls have been translated to
IR/assembly
* Additional steps were taken towards arm64 support
2023-03-17 12:20:37 -07:00
..
natvis Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
faillist.txt Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
flag-bisect.py Sync to upstream/release/563 (#833) 2023-02-10 11:40:38 -08:00
gdb_printers.py Sync to upstream/release/519 (#422) 2022-03-17 17:46:04 -07:00
heapgraph.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
heapstat.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
lldb_formatters.lldb Sync to upstream/release/548 (#699) 2022-10-06 17:23:29 -07:00
lldb_formatters.py Sync to upstream/release/547 (#690) 2022-09-29 15:23:10 -07:00
lvmexecute_split.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
numprint.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
patchtests.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
perfgraph.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
perfstat.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
stack-usage-reporter.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
svg.py Sync to upstream/release/514 (#357) 2022-02-11 11:02:09 -08:00
test_dcr.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00
tracegraph.py Sync to upstream/release/559 (#804) 2023-01-13 14:10:01 -08:00