-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Remove some of the @
from the AST
#7615
Conversation
😍 |
This won't pass the tests as-is, since it unsuprisingly broke rustdoc (and it'll probably fail some other tests that I haven't run yet) I just wanted to get it up for feedback. |
Wonderful. r=me with p=100 on anything that has this form, assuming it doesn't introduce lots of new deep-copy-making. Especially keen on seeing the |
@cmr, not the change I was hoping for, but oh well. The extra time at the end is odd, but I'm going to cop out and blame noise. |
Also, makes the pretty-printer use & instead of @ as much as possible, which will help with later changes, though in the interim has produced some... interesting constructs.
In an ideal world, the AST would be completely sendable, this gets us a step closer. It removes the local heap allocations for `view_item`, `Path`, `Lifetime` `trait_ref` `OptVec<TyParamBounds>` and `Ty`. There are also a few other smaller changes I made as things went along.
Apparently, this adds 300 MB to the memory usage, but I guess it's a case of gets-worse-before-it-gets-better. |
In an ideal world, the AST would be completely sendable, this gets us a step closer.
It removes the local heap allocations for
view_item
,Path
,Lifetime
trait_ref
OptVec<TyParamBounds>
andTy
. There are also a few other smaller changes I made as things went along.