Skip to content

Use cheaper init in thread_local#701

Merged
workingjubilee merged 1 commit intorust-lang:masterfrom
kornelski:const-cell
Apr 28, 2025
Merged

Use cheaper init in thread_local#701
workingjubilee merged 1 commit intorust-lang:masterfrom
kornelski:const-cell

Conversation

@kornelski
Copy link
Contributor

thread_local! has special case for const {} syntax, and avoids creating an extra lazy init function in such case.

@workingjubilee workingjubilee merged commit d8de324 into rust-lang:master Apr 28, 2025
41 checks passed
@kornelski kornelski deleted the const-cell branch April 29, 2025 06:31
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.

2 participants