@@ -235,11 +235,7 @@ pub enum StaticCheckErrorKind {
235235 /// Failure in cost-tracking due to an unexpected condition or invalid state.
236236 /// The `String` wraps the specific reason for the failure.
237237 CostComputationFailed ( String ) ,
238- // Time checker errors
239- /// Type-checking time exceeds the allowed budget, halting analysis to ensure responsiveness.
240- ExecutionTimeExpired ,
241238 /// Contract-analysis time exceeds the allowed budget, halting analysis to ensure responsiveness.
242- /// Distinct from `ExecutionTimeExpired` so an analysis-phase timeout is separable end-to-end.
243239 AnalysisTimeExpired ,
244240 /// The read-only checker recursed too deeply while checking native function calls.
245241 ReadOnlyCheckerRecursionLimitExceeded ,
@@ -558,7 +554,7 @@ pub enum RuntimeCheckErrorKind {
558554 /// The `String` wraps the specific reason for the failure.
559555 CostComputationFailed ( String ) ,
560556 // Time checker errors
561- /// Type-checking time exceeds the allowed budget, halting analysis to ensure responsiveness.
557+ /// Runtime (eval) execution time exceeds the allowed budget, halting execution to ensure responsiveness.
562558 ExecutionTimeExpired ,
563559
564560 /// Value exceeds the maximum allowed size for type-checking or serialization.
@@ -930,7 +926,6 @@ impl From<CostErrors> for StaticCheckErrorKind {
930926 "Unexpected interpreter failure in cost computation" . into ( ) ,
931927 ) ,
932928 CostErrors :: Expect ( s) => StaticCheckErrorKind :: Unreachable ( s) ,
933- CostErrors :: ExecutionTimeExpired => StaticCheckErrorKind :: ExecutionTimeExpired ,
934929 }
935930 }
936931}
@@ -953,7 +948,6 @@ impl From<CostErrors> for RuntimeCheckErrorKind {
953948 "Unexpected interpreter failure in cost computation" . into ( ) ,
954949 ) ,
955950 CostErrors :: Expect ( s) => RuntimeCheckErrorKind :: Unreachable ( s) ,
956- CostErrors :: ExecutionTimeExpired => RuntimeCheckErrorKind :: ExecutionTimeExpired ,
957951 }
958952 }
959953}
@@ -1182,7 +1176,6 @@ impl DiagnosableError for StaticCheckErrorKind {
11821176 StaticCheckErrorKind :: CostBalanceExceeded ( a, b) => format ! ( "contract execution cost exceeded budget: {a:?} > {b:?}" ) ,
11831177 StaticCheckErrorKind :: MemoryBalanceExceeded ( a, b) => format ! ( "contract execution cost exceeded memory budget: {a:?} > {b:?}" ) ,
11841178 StaticCheckErrorKind :: CostComputationFailed ( s) => format ! ( "contract cost computation failed: {s}" ) ,
1185- StaticCheckErrorKind :: ExecutionTimeExpired => "execution time expired" . into ( ) ,
11861179 StaticCheckErrorKind :: AnalysisTimeExpired => "analysis time expired" . into ( ) ,
11871180 StaticCheckErrorKind :: ReadOnlyCheckerRecursionLimitExceeded => "read-only checker exceeded maximum allowed recursion depth" . into ( ) ,
11881181 StaticCheckErrorKind :: InvalidTypeDescription => "supplied type description is invalid" . into ( ) ,
0 commit comments