Skip to content

Commit 314222b

Browse files
committed
Remove leftover Rust script (facebook#33314)
For now we removed Rust from the codebase, remove this leftover script. Also remove some dupes and Rust related files from `.gitignore`. DiffTrain build for [d38c7e1](facebook@d38c7e1)
1 parent 729bd0e commit 314222b

24 files changed

+707
-612
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.2.0-native-fb-c6c2a52a-20250519
1+
19.2.0-native-fb-d38c7e10-20250520

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<28c22d0ece713d9785cf5d25d3946b93>>
10+
* @generated SignedSource<<6354e4bbab6aa803cd18acb3e6b94bb8>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.2.0-native-fb-c6c2a52a-20250519";
407+
exports.version = "19.2.0-native-fb-d38c7e10-20250520";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<bf91b7580639db14361d4216e3a87d7d>>
10+
* @generated SignedSource<<c0320e4a35d3eef5b2194342ed1d4a32>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-c6c2a52a-20250519";
206+
exports.version = "19.2.0-native-fb-d38c7e10-20250520";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<bf91b7580639db14361d4216e3a87d7d>>
10+
* @generated SignedSource<<c0320e4a35d3eef5b2194342ed1d4a32>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-c6c2a52a-20250519";
206+
exports.version = "19.2.0-native-fb-d38c7e10-20250520";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 74 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<9b4af32d9f53d4ac82128e9bfa64ca35>>
10+
* @generated SignedSource<<3d29db32a0fa1a5c960c5feea3e179bf>>
1111
*/
1212

1313
/*
@@ -6406,6 +6406,20 @@ __DEV__ &&
64066406
}
64076407
};
64086408
}
6409+
function validateSuspenseListNestedChild(childSlot, index) {
6410+
var isAnArray = isArrayImpl(childSlot);
6411+
childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot);
6412+
return isAnArray || childSlot
6413+
? ((isAnArray = isAnArray ? "array" : "iterable"),
6414+
console.error(
6415+
"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",
6416+
isAnArray,
6417+
index,
6418+
isAnArray
6419+
),
6420+
!1)
6421+
: !0;
6422+
}
64096423
function initializeUpdateQueue(fiber) {
64106424
fiber.updateQueue = {
64116425
baseState: fiber.memoizedState,
@@ -10507,20 +10521,6 @@ __DEV__ &&
1050710521
propagationRoot
1050810522
);
1050910523
}
10510-
function validateSuspenseListNestedChild(childSlot, index) {
10511-
var isAnArray = isArrayImpl(childSlot);
10512-
childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot);
10513-
return isAnArray || childSlot
10514-
? ((isAnArray = isAnArray ? "array" : "iterable"),
10515-
console.error(
10516-
"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",
10517-
isAnArray,
10518-
index,
10519-
isAnArray
10520-
),
10521-
!1)
10522-
: !0;
10523-
}
1052410524
function initSuspenseListRenderState(
1052510525
workInProgress,
1052610526
isBackwards,
@@ -10550,6 +10550,15 @@ __DEV__ &&
1055010550
revealOrder = nextProps.revealOrder,
1055110551
tailMode = nextProps.tail;
1055210552
nextProps = nextProps.children;
10553+
var suspenseContext = suspenseStackCursor.current,
10554+
shouldForceFallback = 0 !== (suspenseContext & ForceSuspenseFallback);
10555+
shouldForceFallback
10556+
? ((suspenseContext =
10557+
(suspenseContext & SubtreeSuspenseContextMask) |
10558+
ForceSuspenseFallback),
10559+
(workInProgress.flags |= 128))
10560+
: (suspenseContext &= SubtreeSuspenseContextMask);
10561+
push(suspenseStackCursor, suspenseContext, workInProgress);
1055310562
if (
1055410563
void 0 !== revealOrder &&
1055510564
"forwards" !== revealOrder &&
@@ -10612,12 +10621,29 @@ __DEV__ &&
1061210621
!1 !== nextProps
1061310622
)
1061410623
if (isArrayImpl(nextProps))
10615-
for (var i = 0; i < nextProps.length; i++) {
10616-
if (!validateSuspenseListNestedChild(nextProps[i], i)) break a;
10624+
for (
10625+
suspenseContext = 0;
10626+
suspenseContext < nextProps.length;
10627+
suspenseContext++
10628+
) {
10629+
if (
10630+
!validateSuspenseListNestedChild(
10631+
nextProps[suspenseContext],
10632+
suspenseContext
10633+
)
10634+
)
10635+
break a;
1061710636
}
10618-
else if (((i = getIteratorFn(nextProps)), "function" === typeof i)) {
10619-
if ((i = i.call(nextProps)))
10620-
for (var step = i.next(), _i = 0; !step.done; step = i.next()) {
10637+
else if (
10638+
((suspenseContext = getIteratorFn(nextProps)),
10639+
"function" === typeof suspenseContext)
10640+
) {
10641+
if ((suspenseContext = suspenseContext.call(nextProps)))
10642+
for (
10643+
var step = suspenseContext.next(), _i = 0;
10644+
!step.done;
10645+
step = suspenseContext.next()
10646+
) {
1062110647
if (!validateSuspenseListNestedChild(step.value, _i)) break a;
1062210648
_i++;
1062310649
}
@@ -10627,40 +10653,31 @@ __DEV__ &&
1062710653
revealOrder
1062810654
);
1062910655
reconcileChildren(current, workInProgress, nextProps, renderLanes);
10630-
nextProps = suspenseStackCursor.current;
10631-
if (0 !== (nextProps & ForceSuspenseFallback))
10632-
(nextProps =
10633-
(nextProps & SubtreeSuspenseContextMask) | ForceSuspenseFallback),
10634-
(workInProgress.flags |= 128);
10635-
else {
10636-
if (null !== current && 0 !== (current.flags & 128))
10637-
a: for (current = workInProgress.child; null !== current; ) {
10638-
if (13 === current.tag)
10639-
null !== current.memoizedState &&
10640-
scheduleSuspenseWorkOnFiber(
10641-
current,
10642-
renderLanes,
10643-
workInProgress
10644-
);
10645-
else if (19 === current.tag)
10656+
if (
10657+
!shouldForceFallback &&
10658+
null !== current &&
10659+
0 !== (current.flags & 128)
10660+
)
10661+
a: for (current = workInProgress.child; null !== current; ) {
10662+
if (13 === current.tag)
10663+
null !== current.memoizedState &&
1064610664
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
10647-
else if (null !== current.child) {
10648-
current.child.return = current;
10649-
current = current.child;
10650-
continue;
10651-
}
10652-
if (current === workInProgress) break a;
10653-
for (; null === current.sibling; ) {
10654-
if (null === current.return || current.return === workInProgress)
10655-
break a;
10656-
current = current.return;
10657-
}
10658-
current.sibling.return = current.return;
10659-
current = current.sibling;
10665+
else if (19 === current.tag)
10666+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
10667+
else if (null !== current.child) {
10668+
current.child.return = current;
10669+
current = current.child;
10670+
continue;
1066010671
}
10661-
nextProps &= SubtreeSuspenseContextMask;
10662-
}
10663-
push(suspenseStackCursor, nextProps, workInProgress);
10672+
if (current === workInProgress) break a;
10673+
for (; null === current.sibling; ) {
10674+
if (null === current.return || current.return === workInProgress)
10675+
break a;
10676+
current = current.return;
10677+
}
10678+
current.sibling.return = current.return;
10679+
current = current.sibling;
10680+
}
1066410681
if ((workInProgress.mode & ConcurrentMode) === NoMode)
1066510682
workInProgress.memoizedState = null;
1066610683
else
@@ -27010,11 +27027,11 @@ __DEV__ &&
2701027027
};
2701127028
(function () {
2701227029
var isomorphicReactPackageVersion = React.version;
27013-
if ("19.2.0-native-fb-c6c2a52a-20250519" !== isomorphicReactPackageVersion)
27030+
if ("19.2.0-native-fb-d38c7e10-20250520" !== isomorphicReactPackageVersion)
2701427031
throw Error(
2701527032
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2701627033
(isomorphicReactPackageVersion +
27017-
"\n - react-dom: 19.2.0-native-fb-c6c2a52a-20250519\nLearn more: https://react.dev/warnings/version-mismatch")
27034+
"\n - react-dom: 19.2.0-native-fb-d38c7e10-20250520\nLearn more: https://react.dev/warnings/version-mismatch")
2701827035
);
2701927036
})();
2702027037
("function" === typeof Map &&
@@ -27051,10 +27068,10 @@ __DEV__ &&
2705127068
!(function () {
2705227069
var internals = {
2705327070
bundleType: 1,
27054-
version: "19.2.0-native-fb-c6c2a52a-20250519",
27071+
version: "19.2.0-native-fb-d38c7e10-20250520",
2705527072
rendererPackageName: "react-dom",
2705627073
currentDispatcherRef: ReactSharedInternals,
27057-
reconcilerVersion: "19.2.0-native-fb-c6c2a52a-20250519"
27074+
reconcilerVersion: "19.2.0-native-fb-d38c7e10-20250520"
2705827075
};
2705927076
internals.overrideHookState = overrideHookState;
2706027077
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27192,5 +27209,5 @@ __DEV__ &&
2719227209
listenToAllSupportedEvents(container);
2719327210
return new ReactDOMHydrationRoot(initialChildren);
2719427211
};
27195-
exports.version = "19.2.0-native-fb-c6c2a52a-20250519";
27212+
exports.version = "19.2.0-native-fb-d38c7e10-20250520";
2719627213
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<6c2730f8acf26ff9a5980f9a5f4b64a7>>
10+
* @generated SignedSource<<1ea37ce5ddfa52042522c10069a6447f>>
1111
*/
1212

1313
/*
@@ -7407,35 +7407,36 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
74077407
var nextProps = workInProgress.pendingProps,
74087408
revealOrder = nextProps.revealOrder,
74097409
tailMode = nextProps.tail;
7410-
reconcileChildren(current, workInProgress, nextProps.children, renderLanes);
7411-
nextProps = suspenseStackCursor.current;
7412-
if (0 !== (nextProps & 2))
7413-
(nextProps = (nextProps & 1) | 2), (workInProgress.flags |= 128);
7414-
else {
7415-
if (null !== current && 0 !== (current.flags & 128))
7416-
a: for (current = workInProgress.child; null !== current; ) {
7417-
if (13 === current.tag)
7418-
null !== current.memoizedState &&
7419-
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
7420-
else if (19 === current.tag)
7410+
nextProps = nextProps.children;
7411+
var suspenseContext = suspenseStackCursor.current,
7412+
shouldForceFallback = 0 !== (suspenseContext & 2);
7413+
shouldForceFallback
7414+
? ((suspenseContext = (suspenseContext & 1) | 2),
7415+
(workInProgress.flags |= 128))
7416+
: (suspenseContext &= 1);
7417+
push(suspenseStackCursor, suspenseContext);
7418+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
7419+
if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
7420+
a: for (current = workInProgress.child; null !== current; ) {
7421+
if (13 === current.tag)
7422+
null !== current.memoizedState &&
74217423
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
7422-
else if (null !== current.child) {
7423-
current.child.return = current;
7424-
current = current.child;
7425-
continue;
7426-
}
7427-
if (current === workInProgress) break a;
7428-
for (; null === current.sibling; ) {
7429-
if (null === current.return || current.return === workInProgress)
7430-
break a;
7431-
current = current.return;
7432-
}
7433-
current.sibling.return = current.return;
7434-
current = current.sibling;
7424+
else if (19 === current.tag)
7425+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
7426+
else if (null !== current.child) {
7427+
current.child.return = current;
7428+
current = current.child;
7429+
continue;
74357430
}
7436-
nextProps &= 1;
7437-
}
7438-
push(suspenseStackCursor, nextProps);
7431+
if (current === workInProgress) break a;
7432+
for (; null === current.sibling; ) {
7433+
if (null === current.return || current.return === workInProgress)
7434+
break a;
7435+
current = current.return;
7436+
}
7437+
current.sibling.return = current.return;
7438+
current = current.sibling;
7439+
}
74397440
if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;
74407441
else
74417442
switch (revealOrder) {
@@ -17094,14 +17095,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1709417095
};
1709517096
var isomorphicReactPackageVersion$jscomp$inline_2017 = React.version;
1709617097
if (
17097-
"19.2.0-native-fb-c6c2a52a-20250519" !==
17098+
"19.2.0-native-fb-d38c7e10-20250520" !==
1709817099
isomorphicReactPackageVersion$jscomp$inline_2017
1709917100
)
1710017101
throw Error(
1710117102
formatProdErrorMessage(
1710217103
527,
1710317104
isomorphicReactPackageVersion$jscomp$inline_2017,
17104-
"19.2.0-native-fb-c6c2a52a-20250519"
17105+
"19.2.0-native-fb-d38c7e10-20250520"
1710517106
)
1710617107
);
1710717108
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17123,10 +17124,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1712317124
};
1712417125
var internals$jscomp$inline_2536 = {
1712517126
bundleType: 0,
17126-
version: "19.2.0-native-fb-c6c2a52a-20250519",
17127+
version: "19.2.0-native-fb-d38c7e10-20250520",
1712717128
rendererPackageName: "react-dom",
1712817129
currentDispatcherRef: ReactSharedInternals,
17129-
reconcilerVersion: "19.2.0-native-fb-c6c2a52a-20250519"
17130+
reconcilerVersion: "19.2.0-native-fb-d38c7e10-20250520"
1713017131
};
1713117132
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1713217133
var hook$jscomp$inline_2537 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17224,4 +17225,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1722417225
listenToAllSupportedEvents(container);
1722517226
return new ReactDOMHydrationRoot(initialChildren);
1722617227
};
17227-
exports.version = "19.2.0-native-fb-c6c2a52a-20250519";
17228+
exports.version = "19.2.0-native-fb-d38c7e10-20250520";

0 commit comments

Comments
 (0)