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

Only compute is_freeze for layout-constrained ADTs #87737

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

LeSeulArtichaut
Copy link
Contributor

Places are usually shallow and quick to visit. By contrast, computing is_freeze can be much costlier, involving inference and trait solving. Making sure to call is_freeze only when necessary should be beneficial for performance in most cases.

See this comparison from #87710.

r? @oli-obk

Places are usually shallow and quick to visit. By contrast, computing
`is_freeze` can be much costlier, involving inference and trait
solving. Making sure to call `is_freeze` only when necessary should be
beneficial for performance in most cases.
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2021
@oli-obk
Copy link
Contributor

oli-obk commented Aug 5, 2021

@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Aug 5, 2021

📌 Commit 2b169cc has been approved by oli-obk

@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 Aug 5, 2021
@bors
Copy link
Contributor

bors commented Aug 5, 2021

⌛ Testing commit 2b169cc with merge 61a941b...

@bors
Copy link
Contributor

bors commented Aug 5, 2021

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing 61a941b to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 5, 2021
@bors bors merged commit 61a941b into rust-lang:master Aug 5, 2021
@rustbot rustbot added this to the 1.56.0 milestone Aug 5, 2021
@LeSeulArtichaut LeSeulArtichaut deleted the unsafeck-less-freeze branch August 25, 2021 14:49
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.

5 participants