-
-
Notifications
You must be signed in to change notification settings - Fork 755
refactor(transformer/using): remove unused call to enter_block_statement
#9698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(transformer/using): remove unused call to enter_block_statement
#9698
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #9698 will not alter performanceComparing Summary
|
Merge activity
|
…ment` (#9698) `ExplicitResourceManagement` has no `enter_block_statement` method.
fcb892e to
0903e7e
Compare
|
@overlookmotel would it be better if the transforms didn't implement the trait, and instead just had pub fn enter..., this way we'd catch these errors at compile time, rather than manually with our eyes |
|
Yes maybe. The idea was to impose some consistency/order on transformers by mandating that they implement all their "entry points" as an The only cost of making a mistake is bad code style. As the default methods in The mistake fixed in #9692 (which did have a perf impact) would not have been caught except by eye either way. So... hmm... maybe, maybe not! |

ExplicitResourceManagementhas noenter_block_statementmethod.