Skip to content

Commit 53f4238

Browse files
Sync to upstream Luau 0.731 (#1569)
1 parent 71ab151 commit 53f4238

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010

1111
- Fixed `@self` string-require aliases resolving from the filesystem instead of the sourcemap tree for non-DataModel roots ([#1511](https://github.com/JohnnyMorganz/luau-lsp/issues/1511))
1212

13+
### Changed
14+
15+
- Sync to upstream Luau 0.731
16+
1317
## [1.69.0] - 2026-07-14
1418

1519
### Added

luau

Submodule luau updated from 6e9b580 to f8ca77a

src/Workspace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Luau::CheckResult WorkspaceFolder::checkStrict(
358358
// retain the type graph if the module is not marked dirty.
359359
// We do a manual check and dirty marking to fix this
360360
auto module = getModule(moduleName, forAutocomplete);
361-
if (module && module->internalTypes.types.empty()) // If we didn't retain type graphs, then the internalTypes arena is empty
361+
if (module && module->internalTypes->types.empty()) // If we didn't retain type graphs, then the internalTypes arena is empty
362362
frontend.markDirty(moduleName);
363363

364364
Luau::FrontendOptions options{/* retainFullTypeGraphs: */ true, forAutocomplete, /* runLintChecks: */ true};

src/platform/roblox/RobloxLuauExt.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicInstanceIsA::handleOld
118118

119119
auto type = Luau::follow(tfun->type);
120120

121-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
121+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
122122
Luau::TypePackId booleanPack = arena.addTypePack({typeChecker.booleanType});
123123
return Luau::WithPredicate<Luau::TypePackId>{booleanPack, {Luau::IsAPredicate{std::move(*lvalue), expr.location, type}}};
124124
}
@@ -180,7 +180,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicInstanceClone::handleO
180180
if (!index)
181181
return std::nullopt;
182182

183-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
183+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
184184
auto instanceType = typeChecker.checkExpr(scope, *index->expr);
185185
return Luau::WithPredicate<Luau::TypePackId>{arena.addTypePack({instanceType.type})};
186186
}
@@ -214,7 +214,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicInstanceFromExisting::
214214
if (expr.args.size < 1)
215215
return std::nullopt;
216216

217-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
217+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
218218
auto instanceType = typeChecker.checkExpr(scope, *expr.args.data[0]);
219219
return Luau::WithPredicate<Luau::TypePackId>{arena.addTypePack({instanceType.type})};
220220
}
@@ -262,7 +262,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicInstanceFindFirstXWhic
262262

263263
auto type = Luau::follow(tfun->type);
264264

265-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
265+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
266266
Luau::TypeId nillableClass = Luau::makeOption(typeChecker.builtinTypes, arena, type);
267267
return Luau::WithPredicate<Luau::TypePackId>{arena.addTypePack({nillableClass})};
268268
}
@@ -326,7 +326,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicEnumItemIsA::handleOld
326326

327327
auto type = Luau::follow(tfun->type);
328328

329-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
329+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
330330
Luau::TypePackId booleanPack = arena.addTypePack({typeChecker.booleanType});
331331
return Luau::WithPredicate<Luau::TypePackId>{booleanPack, {Luau::IsAPredicate{std::move(*lvalue), expr.location, type}}};
332332
}
@@ -476,7 +476,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicQueryDescendants::hand
476476
classTypes.push_back(Luau::follow(tfun->type));
477477
}
478478

479-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
479+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
480480

481481
Luau::TypeId elementType;
482482
if (classTypes.size() == 1)
@@ -593,7 +593,7 @@ std::optional<Luau::WithPredicate<Luau::TypePackId>> MagicTypeLookup::handleOldS
593593

594594
auto type = Luau::follow(tfun->type);
595595

596-
Luau::TypeArena& arena = typeChecker.currentModule->internalTypes;
596+
Luau::TypeArena& arena = *typeChecker.currentModule->internalTypes;
597597
Luau::TypePackId classTypePack = arena.addTypePack({type});
598598
return Luau::WithPredicate<Luau::TypePackId>{classTypePack};
599599
}

0 commit comments

Comments
 (0)