-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 2/4 -- Expr & Pat #66936
Conversation
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 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 |
I seem to be constructing some sort of infinite loop in the HIR graph. The stack overflow happens when hashing everything. The loop consists of a |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
61a4f1c
to
f1b7350
Compare
This comment has been minimized.
This comment has been minimized.
f1b7350
to
f23c50b
Compare
This comment has been minimized.
This comment has been minimized.
Did you ensure that the And did you resolve the infinite loop? |
84526d2
to
3c5f298
Compare
Rebased.
I did as much as I could. There are no unused allocation of HIR nodes, because of typing. However, typing does not guarantee against unused allocation of a pointer.
Yes. It was in the arena allocation code. Bug #67001 |
@@ -2931,16 +2938,20 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { | |||
} | |||
} | |||
|
|||
hir::PatKind::Slice(before.into(), slice, after.into()) | |||
hir::PatKind::Slice( |
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.
We can probably elide the intermediate allocations here by converting the code above into more functional style code, but we can leave this for another time.
c1cabd2
to
fb100e5
Compare
Rebased. |
@bors r=Zoxc p=5 |
📌 Commit fb100e5 has been approved by |
Allocate HIR on an arena 2/4 -- Expr & Pat This is the second PR in the series started by #66931 This time, commits don't really make sense on their own. They are mostly split by type of compile error. The additional diff is here: cjgillot/rust@hirene-preamble...hirene-expr
☀️ Test successful - checks-azure |
Rustup to rust-lang/rust#66936 changelog: none
Allocate HIR on an arena 3/4 -- Ty This is the third PR in the series started by #66931 and #66936 Once again, commits don't really make sense on their own. They are mostly split by type of compile error. The additional diff is here: cjgillot/rust@hirene-expr...hirene-ty
Allocate HIR on an arena 4/4 This is the fourth and last PR in the series started by #66931, #66936 and #66942. The last commits should compile on their own. The difference with the previous PR is given by cjgillot/rust@hirene-ty...hirene A few more cleanups may be necessary, please tell me. r? @eddyb like the other cc @Zoxc
This is the second PR in the series started by #66931
This time, commits don't really make sense on their own.
They are mostly split by type of compile error.
The additional diff is here: cjgillot/rust@hirene-preamble...hirene-expr