Skip to content
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

Ensure stack when type checking and building MIR for large if expressions #74708

Merged
merged 2 commits into from
Jul 27, 2020

Conversation

kanru
Copy link
Contributor

@kanru kanru commented Jul 24, 2020

Fixes #74564

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @davidtwco (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 24, 2020
Copy link
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@davidtwco
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jul 24, 2020

📌 Commit f64e58c has been approved by davidtwco

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 24, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jul 24, 2020
Ensure stack when type checking and building MIR for large if expressions

Fixes rust-lang#74564
@mati865
Copy link
Contributor

mati865 commented Jul 24, 2020

Is is safe for rollups, perf wise?

@davidtwco
Copy link
Member

Is is safe for rollups, perf wise?

I'm not sure, I'd assume so?

@mati865
Copy link
Contributor

mati865 commented Jul 24, 2020

Docs are not that convincing 😅:

Should not be sprinkled around carelessly, as it causes a little bit of overhead.

@JohnTitor
Copy link
Member

Failed in rollup: #74719 (comment)
@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 24, 2020
@kanru
Copy link
Contributor Author

kanru commented Jul 25, 2020

Hmm, the test passed locally on my machine. I wonder what makes the rollup to fail 🤔

@JohnTitor
Copy link
Member

@kanru I can reproduce the failure on my local, you should rebase.

@kanru
Copy link
Contributor Author

kanru commented Jul 25, 2020

@kanru I can reproduce the failure on my local, you should rebase.

I can reproduce with stage 2. Investigating...

@davidtwco
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jul 26, 2020

📌 Commit 0e2ec8c has been approved by davidtwco

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 26, 2020
@davidtwco
Copy link
Member

@bors rollup=never (in case there is a perf impact)

@bors
Copy link
Contributor

bors commented Jul 26, 2020

⌛ Testing commit 0e2ec8c with merge c709862...

@bors
Copy link
Contributor

bors commented Jul 27, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: davidtwco
Pushing c709862 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 27, 2020
@bors bors merged commit c709862 into rust-lang:master Jul 27, 2020
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stack overflow in rustc, regression from 1.44
7 participants