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

Give more general access to the thread-local value #6

Closed
wants to merge 7 commits into from

Conversation

Zoxc
Copy link

@Zoxc Zoxc commented Feb 1, 2020

The new with function allows you to access the thread-local value multiple times without the expensive TLS lookup step.

@Zoxc Zoxc requested a review from cuviper February 1, 2020 22:04
@cuviper
Copy link
Member

cuviper commented Feb 3, 2020

Seems fine to me, if you don't actually need that restoration property of with.

@nikomatsakis
Copy link

Closing this pull request as Zoxc is stepping back from compiler development; see rust-lang/team#316.

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.

3 participants