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

Use large stack on expander thread #12891

Merged
merged 1 commit into from Jul 27, 2022
Merged

Conversation

umanwizard
Copy link
Contributor

I have verified that this fixes #12884 for me.

Hat tip to @bjorn3 for identifying the cause of the issue.

@lnicola
Copy link
Member

lnicola commented Jul 27, 2022

Since you're there, can you also give the thread a name?

And by the way, what does this thread do?

@lnicola
Copy link
Member

lnicola commented Jul 27, 2022

Ah, 32ee097

@lnicola
Copy link
Member

lnicola commented Jul 27, 2022

Could also use a cargo fmt.

@umanwizard
Copy link
Contributor Author

umanwizard commented Jul 27, 2022

Er, I ran (lsp-format-buffer) on this -- are my cargo fmt settings wedged somehow? Does it not look right?

Edit: Nevermind, apparently I didn't and just thought I did. Sorry for the noise.

.join();
}) {
Ok(handle) => handle.join(),
Err(e) => std::panic::resume_unwind(Box::new(e)),
Copy link
Member

Choose a reason for hiding this comment

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

I might be missing something, but wouldn't unwrap be fine here?

Sorry for all the nitpicks.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Does that still apply if this is a simple io::Error? I'd have to test.

Copy link
Member

Choose a reason for hiding this comment

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

Well, whatever 😆.

@bors r+

@lnicola
Copy link
Member

lnicola commented Jul 27, 2022

@bors delegate+

@bors
Copy link
Collaborator

bors commented Jul 27, 2022

✌️ @brennanvincent can now approve this pull request

@bors
Copy link
Collaborator

bors commented Jul 27, 2022

⌛ Testing commit f83738e with merge 4087535...

@bors
Copy link
Collaborator

bors commented Jul 27, 2022

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 4087535 to master...

@bors bors merged commit 4087535 into rust-lang:master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proc-macro process stack overflow
4 participants