Repository navigation
chore: type checker epoch cleanup - #7743
Draft
francesco-stacks wants to merge 6 commits into
Draft
francesco-stacks wants to merge 6 commits into
francesco-stacks wants to merge 6 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Small follow-up to #7742
TypingContext.epoch. It held a fixed epoch per checker (Epoch2_05/Epoch21), not the real one. Since feat: count callable identifiers in cost and memory charges from Epoch 4.1 #7742, the 2.1 checker sizes charges with its own epoch, so nothing should read the field.FunctionType::check_argsdispatcher. Each checker already knows its path, so v2_05 callscheck_args_2_05and v2_1 callscheck_args_2_1directly.analysis_typecheck_costandtotal_type_sizeto*_v2_05, so 2.1+ code can't pick up legacy sizes through the short names.Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/property-testing.md)changelog.d/README.md). If this PR breaksanything for node operators or users, or requires them to manually do
anything (such as adjust a setting), use the breaking category.
rpc/openapi.yamlfor RPC endpoints,event-dispatcher.mdfor new events)clarity-benchmarkingrepo