Skip to content

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