-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Allocate HIR on an arena #57173
Allocate HIR on an arena #57173
Conversation
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try |
[WIP] Allocate HIR on an arena Blocked on #56864
This comment has been minimized.
This comment has been minimized.
☀️ Test successful - checks-travis |
@rust-timer build 6e789d4 |
Success: Queued 6e789d4 with parent 729d3f0, comparison URL. |
Finished benchmarking try commit 6e789d4 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
) -> CFGIndex { | ||
fn pats_all<'b, 'h: 'b, I: Iterator<Item=&'b P<'h, hir::Pat<'h>>>>(&mut self, | ||
pats: I, | ||
pred: CFGIndex) -> CFGIndex { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intrigued by this change, the previous formatting was correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few of these changes were formatting is reverted to the formatting at the time I created the commit. Totally could use some rustfmt
help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clean the indenting back to what it was here?
use serialize::{Encodable, Decodable, Encoder, Decoder}; | ||
|
||
use rustc_data_structures::stable_hasher::{StableHasher, StableHasherResult, | ||
HashStable}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
a15bed1
to
2f2a2e2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #60544) made this pull request unmergeable. Please resolve the merge conflicts. |
This is no longer blocked, right? |
Still blocked on #59205 |
pub struct LoweringContext<'a> { | ||
macro_rules! p { | ||
($this:expr, $e:expr) => ({ | ||
P::alloc($this.arena, $e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this could be just $this.alloc($e)
and maybe then we wouldn't need a macro?
Then again, I think the macro allows nested allocations (e.g. p!(self, Foo(p!(self, Bar(...))))
) without borrow conflicts, since $this.arena
can just be copied.
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☔ The latest upstream changes (presumably #61825) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #61868) made this pull request unmergeable. Please resolve the merge conflicts. |
The PR that this was blocked on was closed so unblocking it |
Blocked on
#56864#59205(closed unmerged)