-
-
Notifications
You must be signed in to change notification settings - Fork 495
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(isolated_declarations, linter, minifier, prettier, semantic, transformer): remove unnecessary ref
/ ref mut
syntax
#8643
refactor(isolated_declarations, linter, minifier, prettier, semantic, transformer): remove unnecessary ref
/ ref mut
syntax
#8643
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 #8643 will not alter performanceComparing Summary
|
Merge activity
|
… transformer): remove unnecessary `ref` / `ref mut` syntax (#8643) While working on #8641, I found a lot of places where we unnecessarily use `ref` / `ref mut` in match arms. In many cases, we're creating double-references (turning a `&T` into a `&&T`). The compiler should be smart enough to remove them for us, but there doesn't seem much point in explicitly creating double-references when we don't actually want them, and relying on compiler to optimize them out again.
c83b9d1
to
54d0fac
Compare
961b755
to
e66da9f
Compare
While working on #8641, I found a lot of places where we unnecessarily use
ref
/ref mut
in match arms.In many cases, we're creating double-references (turning a
&T
into a&&T
). The compiler should be smart enough to remove them for us, but there doesn't seem much point in explicitly creating double-references when we don't actually want them, and relying on compiler to optimize them out again.