Skip to content

Add has_capacity as a proxy for is_singleton #46

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

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Add has_capacity as a proxy for is_singleton #46

merged 1 commit into from
Dec 3, 2023

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Feb 27, 2023

This is useful since LLVM can omit the destructor if it knows !has_capacity(). It can be used to make rust-lang/rust#108359 cleaner.

@Gankra Gankra merged commit 1b79c91 into Gankra:main Dec 3, 2023
@Gankra
Copy link
Owner

Gankra commented Dec 3, 2023

published in 0.2.13

@Zoxc Zoxc deleted the has_cap branch December 7, 2023 14:25
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